Quanlse/Scheduler/Superconduct/GeneratorRBPulse.py
def generate1QClifford(ham: QHam = None, cirLine: CircuitLine = None, scheduler: 'SchedulerSuperconduct' = None)\
        -> QJob:
    """
    Default generator for single qubit gates.

    :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)

    # Use the pulses we generate based on the qubit chosen
    if cirLine.data.name in ['Cinv']:
        job, inf = opt1q(subHam, cirLine.data.getMatrix(), depth=6, targetInfid=0.0002)
    else:
        job, inf = opt1q(ham, cirLine.data.getMatrix(), depth=4, targetInfid=0.0001)

    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 single qubit gates.

    :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 single qubit gates.
Default generator for single qubit gates .
def generate1QClifford(ham: QHam = None, cirLine: CircuitLine = None, scheduler: 'SchedulerSuperconduct' = None)\
        -> QJob:
    subHam = ham.subSystem(cirLine.qRegIndexList)
    if cirLine.data.name in ['Cinv']:
        job, inf = opt1q(subHam, cirLine.data.getMatrix(), depth=6, targetInfid=0.0002)
    else:
        job, inf = opt1q(ham, cirLine.data.getMatrix(), depth=4, targetInfid=0.0001)
    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 generate1QClifford ( ham : QHam = None , cirLine : CircuitLine = None , scheduler : 'SchedulerSuperconduct' = None ) -> QJob : subHam = ham . subSystem ( cirLine . qRegIndexList ) if cirLine . data . name in [ 'Cinv' ] : job , inf = opt1q ( subHam , cirLine . data . getMatrix ( ) , depth = 6 , targetInfid = 0.0002 ) else : job , inf = opt1q ( ham , cirLine . data . getMatrix ( ) , depth = 4 , targetInfid = 0.0001 ) 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 single qubit gates.
Default generator for single qubit gates .
"""
    Default generator for single qubit gates.

    :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
    """ # Use the pulses we generate based on the qubit chosen
returned QJob object
returned QJob object
ham
QHam
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