Quanlse/Scheduler/Superconduct/GeneratorCloud.py
def generatorCloud(ham: 'QHamiltonian') -> SchedulerPulseGenerator:
    """
    Return a default pulse SchedulerPulseGenerator instance for the scheduler.

    :param ham: a Hamiltonian object
    :return: returned generator object
    """

    generator = SchedulerPulseGenerator(ham)

    # Add the generator for single qubit gates
    gateList1q = ['X', 'Y', 'Z', 'H', 'S', 'T', 'RX', 'RY', 'RZ', 'W', 'SQRTW', 'U']
    generator.addGenerator(gateList1q, generate1Q)

    # Add the generator for two-qubit gates
    generator.addGenerator(['CR'], generateCr)
    generator.addGenerator(['CZ'], generateCz)
    generator.addGenerator(['ISWAP'], generateISWAP)

    return generator

    Return a default pulse SchedulerPulseGenerator instance for the scheduler.

    :param ham: a Hamiltonian object
    :return: returned generator object
    
Return a default pulse SchedulerPulseGenerator instance for the scheduler.
Return a default pulse SchedulerPulseGenerator instance for the scheduler .
def generatorCloud(ham: 'QHamiltonian') -> SchedulerPulseGenerator:
    generator = SchedulerPulseGenerator(ham)
    gateList1q = ['X', 'Y', 'Z', 'H', 'S', 'T', 'RX', 'RY', 'RZ', 'W', 'SQRTW', 'U']
    generator.addGenerator(gateList1q, generate1Q)
    generator.addGenerator(['CR'], generateCr)
    generator.addGenerator(['CZ'], generateCz)
    generator.addGenerator(['ISWAP'], generateISWAP)
    return generator
def generatorCloud ( ham : 'QHamiltonian' ) -> SchedulerPulseGenerator : generator = SchedulerPulseGenerator ( ham ) gateList1q = [ 'X' , 'Y' , 'Z' , 'H' , 'S' , 'T' , 'RX' , 'RY' , 'RZ' , 'W' , 'SQRTW' , 'U' ] generator . addGenerator ( gateList1q , generate1Q ) generator . addGenerator ( [ 'CR' ] , generateCr ) generator . addGenerator ( [ 'CZ' ] , generateCz ) generator . addGenerator ( [ 'ISWAP' ] , generateISWAP ) return generator
Return a default pulse SchedulerPulseGenerator instance for the scheduler.
Return a default pulse SchedulerPulseGenerator instance for the scheduler .
"""
    Return a default pulse SchedulerPulseGenerator instance for the scheduler.

    :param ham: a Hamiltonian object
    :return: returned generator object
    """ # Add the generator for single qubit gates # Add the generator for two-qubit gates
returned generator object
returned generator object
ham
'QHamiltonian'
a Hamiltonian object
a Hamiltonian object