Quanlse/remoteOptimizer.py
def remoteOptimizeCr(ham: QHam, aBound: Tuple[float, float] = None, tg: float = 200, maxIter: int = 5,
                     targetInfidelity: float = 0.01) -> Tuple[QJob, float]:
    """
    Optimize a superconducting Cross-Resonance gate by Quanlse Cloud Service.

    :param ham: the QHamiltonian object.
    :param aBound: the optimization bound of pulse amplitude.
    :param tg: gate time.
    :param maxIter: max number of iteration.
    :param targetInfidelity: the target infidelity.
    :return: a tuple containing the return Hamiltonian and infidelity.
    """
    args = [ham.dump()]
    kwargs = {
        "aBound": aBound,
        "tg": tg,
        "maxIter": maxIter,
        "targetInfidelity": targetInfidelity
    }
    origin = rpcCall("CR", args, kwargs)
    return QJob.load(origin["job"]), origin["inf"]

    Optimize a superconducting Cross-Resonance gate by Quanlse Cloud Service.

    :param ham: the QHamiltonian object.
    :param aBound: the optimization bound of pulse amplitude.
    :param tg: gate time.
    :param maxIter: max number of iteration.
    :param targetInfidelity: the target infidelity.
    :return: a tuple containing the return Hamiltonian and infidelity.
    
Optimize a superconducting Cross-Resonance gate by Quanlse Cloud Service.
Optimize a superconducting Cross - Resonance gate by Quanlse Cloud Service .
def remoteOptimizeCr(ham: QHam, aBound: Tuple[float, float] = None, tg: float = 200, maxIter: int = 5,
                     targetInfidelity: float = 0.01) -> Tuple[QJob, float]:
    args = [ham.dump()]
    kwargs = {
        "aBound": aBound,
        "tg": tg,
        "maxIter": maxIter,
        "targetInfidelity": targetInfidelity
    }
    origin = rpcCall("CR", args, kwargs)
    return QJob.load(origin["job"]), origin["inf"]
def remoteOptimizeCr ( ham : QHam , aBound : Tuple [ float , float ] = None , tg : float = 200 , maxIter : int = 5 , targetInfidelity : float = 0.01 ) -> Tuple [ QJob , float ] : args = [ ham . dump ( ) ] kwargs = { "aBound" : aBound , "tg" : tg , "maxIter" : maxIter , "targetInfidelity" : targetInfidelity } origin = rpcCall ( "CR" , args , kwargs ) return QJob . load ( origin [ "job" ] ) , origin [ "inf" ]
Optimize a superconducting Cross-Resonance gate by Quanlse Cloud Service.
Optimize a superconducting Cross - Resonance gate by Quanlse Cloud Service .
"""
    Optimize a superconducting Cross-Resonance gate by Quanlse Cloud Service.

    :param ham: the QHamiltonian object.
    :param aBound: the optimization bound of pulse amplitude.
    :param tg: gate time.
    :param maxIter: max number of iteration.
    :param targetInfidelity: the target infidelity.
    :return: a tuple containing the return Hamiltonian and infidelity.
    """
a tuple containing the return Hamiltonian and infidelity.
a tuple containing the return Hamiltonian and infidelity .
ham
QHam
the QHamiltonian object.
the QHamiltonian object .
aBound
Tuple[float, float]
the optimization bound of pulse amplitude.
the optimization bound of pulse amplitude .
tg
float
None
maxIter
int
max number of iteration.
max number of iteration .
targetInfidelity
float
the target infidelity.
the target infidelity .