Quanlse/Scheduler/Superconduct/GeneratorCloud.py
def generateISWAP(ham: 'QHamiltonian' = None, cirLine: CircuitLine = None,
                  scheduler: 'SchedulerSuperconduct' = None) -> QJob:
    """
    Default generator for ISWAP gate.

    :param ham: QHam object containing the system information
    :param cirLine: a CircuitLine object containing the gate information
    :param scheduler: the instance of Quanlse Scheduler Superconducting
    :return: returned QJob object
    """
    subHam = ham.subSystem(cirLine.qRegIndexList)
    job, inf = optISWAP(subHam, tg=50, targetInfidelity=0.01)
    print(f"Infidelity of {cirLine.data.name} on qubit {cirLine.qRegIndexList}: {inf}")
    subHam.job = job
    return subHam.outputInverseJob(ham.subSysNum, ham.sysLevel, ham.dt)

    Default generator for ISWAP gate.

    :param ham: QHam object containing the system information
    :param cirLine: a CircuitLine object containing the gate information
    :param scheduler: the instance of Quanlse Scheduler Superconducting
    :return: returned QJob object
    
Default generator for ISWAP gate.
Default generator for ISWAP gate .
def generateISWAP(ham: 'QHamiltonian' = None, cirLine: CircuitLine = None,
                  scheduler: 'SchedulerSuperconduct' = None) -> QJob:
    subHam = ham.subSystem(cirLine.qRegIndexList)
    job, inf = optISWAP(subHam, tg=50, targetInfidelity=0.01)
    print(f"Infidelity of {cirLine.data.name} on qubit {cirLine.qRegIndexList}: {inf}")
    subHam.job = job
    return subHam.outputInverseJob(ham.subSysNum, ham.sysLevel, ham.dt)
def generateISWAP ( ham : 'QHamiltonian' = None , cirLine : CircuitLine = None , scheduler : 'SchedulerSuperconduct' = None ) -> QJob : subHam = ham . subSystem ( cirLine . qRegIndexList ) job , inf = optISWAP ( subHam , tg = 50 , targetInfidelity = 0.01 ) print ( f"Infidelity of {cirLine.data.name} on qubit {cirLine.qRegIndexList}: {inf}" ) subHam . job = job return subHam . outputInverseJob ( ham . subSysNum , ham . sysLevel , ham . dt )
Default generator for ISWAP gate.
Default generator for ISWAP gate .
"""
    Default generator for ISWAP gate.

    :param ham: QHam object containing the system information
    :param cirLine: a CircuitLine object containing the gate information
    :param scheduler: the instance of Quanlse Scheduler Superconducting
    :return: returned QJob object
    """
returned QJob object
returned QJob object
ham
'QHamiltonian'
QHam object containing the system information
QHam object containing the system information
cirLine
CircuitLine
a CircuitLine object containing the gate information
a CircuitLine object containing the gate information
scheduler
'SchedulerSuperconduct'
the instance of Quanlse Scheduler Superconducting
the instance of Quanlse Scheduler Superconducting