Quanlse/remoteOptimizer.py
def remoteIonOptimize1Qubit(axial: str, theta: float, tg: float) -> Tuple[float, float, ndarray]:
    """
    Optimize a superconducting iSWAP gate by Quanlse cloud service.

    :param axial: the rotating axial, 'ionRx' or 'ionRy'.
    :param theta: the angle of the rotation operation.
    :param tg: gate time.
    :return: a tuple containing the return Hamiltonian and infidelity.
    """
    args = [axial, theta, tg]
    kwargs = {}
    origin = rpcCall("Ion1Qubit", args, kwargs)
    return origin["a"], origin["b"], dictMatrixToNumpyMatrix(origin["qam"], complex)

    Optimize a superconducting iSWAP gate by Quanlse cloud service.

    :param axial: the rotating axial, 'ionRx' or 'ionRy'.
    :param theta: the angle of the rotation operation.
    :param tg: gate time.
    :return: a tuple containing the return Hamiltonian and infidelity.
    
Optimize a superconducting iSWAP gate by Quanlse cloud service.
Optimize a superconducting iSWAP gate by Quanlse cloud service .
def remoteIonOptimize1Qubit(axial: str, theta: float, tg: float) -> Tuple[float, float, ndarray]:
    args = [axial, theta, tg]
    kwargs = {}
    origin = rpcCall("Ion1Qubit", args, kwargs)
    return origin["a"], origin["b"], dictMatrixToNumpyMatrix(origin["qam"], complex)
def remoteIonOptimize1Qubit ( axial : str , theta : float , tg : float ) -> Tuple [ float , float , ndarray ] : args = [ axial , theta , tg ] kwargs = { } origin = rpcCall ( "Ion1Qubit" , args , kwargs ) return origin [ "a" ] , origin [ "b" ] , dictMatrixToNumpyMatrix ( origin [ "qam" ] , complex )
Optimize a superconducting iSWAP gate by Quanlse cloud service.
Optimize a superconducting iSWAP gate by Quanlse cloud service .
"""
    Optimize a superconducting iSWAP gate by Quanlse cloud service.

    :param axial: the rotating axial, 'ionRx' or 'ionRy'.
    :param theta: the angle of the rotation operation.
    :param tg: gate time.
    :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 .
axial
str
the rotating axial, 'ionRx' or 'ionRy'.
the rotating axial ' ionRx ' or ' ionRy ' .
theta
float
the angle of the rotation operation.
the angle of the rotation operation .
tg
float
None