Quanlse/remoteOptimizer.py
def remoteIonGeneralMS(gatePair: List[List[int]], args1: Tuple[int, int, float, float, str],
                       args2: Tuple[int, float, float]) -> Tuple[Dict[str, Any], ndarray]:
    """
    Generate general Molmer-Sorensen gate and GHZ state in trapped ion

    :param gatePair: the gate pair in ion chain.
    :param args1:
     args1[0]: the number of ions;
     args1[1]: the atom mass or atom specie;
     args1[2]: the XY trapped potential frequency;
     args1[3]: the Z trapped potential frequency;
     args1[4]: the mode of the phonon oscillation.
    :param args2:
     args2[0]: the pulse sequence number;
     args2[1]: the sample time;
     args2[2]: the laser detuning.
    :return: dict type result and ndarray type unitary.
    """
    args = [gatePair, args1, args2]
    kwargs = {}
    origin = rpcCall("IonGeneralMS", args, kwargs)
    return origin['result'], dictMatrixToNumpyMatrix(origin["unitary"], complex)

    Generate general Molmer-Sorensen gate and GHZ state in trapped ion

    :param gatePair: the gate pair in ion chain.
    :param args1:
     args1[0]: the number of ions;
     args1[1]: the atom mass or atom specie;
     args1[2]: the XY trapped potential frequency;
     args1[3]: the Z trapped potential frequency;
     args1[4]: the mode of the phonon oscillation.
    :param args2:
     args2[0]: the pulse sequence number;
     args2[1]: the sample time;
     args2[2]: the laser detuning.
    :return: dict type result and ndarray type unitary.
    
Generate general Molmer-Sorensen gate and GHZ state in trapped ion
Generate general Molmer - Sorensen gate and GHZ state in trapped ion
def remoteIonGeneralMS(gatePair: List[List[int]], args1: Tuple[int, int, float, float, str],
                       args2: Tuple[int, float, float]) -> Tuple[Dict[str, Any], ndarray]:
    args = [gatePair, args1, args2]
    kwargs = {}
    origin = rpcCall("IonGeneralMS", args, kwargs)
    return origin['result'], dictMatrixToNumpyMatrix(origin["unitary"], complex)
def remoteIonGeneralMS ( gatePair : List [ List [ int ] ] , args1 : Tuple [ int , int , float , float , str ] , args2 : Tuple [ int , float , float ] ) -> Tuple [ Dict [ str , Any ] , ndarray ] : args = [ gatePair , args1 , args2 ] kwargs = { } origin = rpcCall ( "IonGeneralMS" , args , kwargs ) return origin [ 'result' ] , dictMatrixToNumpyMatrix ( origin [ "unitary" ] , complex )
Generate general Molmer-Sorensen gate and GHZ state in trapped ion
Generate general Molmer - Sorensen gate and GHZ state in trapped ion
"""
    Generate general Molmer-Sorensen gate and GHZ state in trapped ion

    :param gatePair: the gate pair in ion chain.
    :param args1:
     args1[0]: the number of ions;
     args1[1]: the atom mass or atom specie;
     args1[2]: the XY trapped potential frequency;
     args1[3]: the Z trapped potential frequency;
     args1[4]: the mode of the phonon oscillation.
    :param args2:
     args2[0]: the pulse sequence number;
     args2[1]: the sample time;
     args2[2]: the laser detuning.
    :return: dict type result and ndarray type unitary.
    """
dict type result and ndarray type unitary.
dict type result and ndarray type unitary .
gatePair
List[List[int]]
the gate pair in ion chain.
the gate pair in ion chain .
args1
Tuple[int, int, float, float, str]
args1[0]: the number of ions;
args1[1]: the atom mass or atom specie;
args1[2]: the XY trapped potential frequency;
args1[3]: the Z trapped potential frequency;
args1[4]: the mode of the phonon oscillation.
args1 [ 0 ] : the number of ions ; args1 [ 1 ] : the atom mass or atom specie ; args1 [ 2 ] : the XY trapped potential frequency ; args1 [ 3 ] : the Z trapped potential frequency ; args1 [ 4 ] : the mode of the phonon oscillation .
args2
Tuple[int, float, float]
args2[0]: the pulse sequence number;
args2[1]: the sample time;
args2[2]: the laser detuning.
args2 [ 0 ] : the pulse sequence number ; args2 [ 1 ] : the sample time ; args2 [ 2 ] : the laser detuning .