Quanlse/remoteOptimizer.py
def remoteIonMS(ionNumber: int, atomMass: int, tg: float, omega: Tuple[float, float], ionIndex: Tuple[int, int],
                phononMode: str = 'axial', pulseWave: str = 'squareWave') -> Tuple[Any, Any]:
    """
    Generate the Molmer-Sorensen gate in trapped ion

    :param ionNumber: the number of ions.
    :param atomMass: the atomic mass of the ion.
    :param tg: gate time.
    :param omega: 1-dimensional angular frequency of the potential trap.
    :param ionIndex: the index of the two ions.
    :param phononMode: the mode of the phonon oscillation.
    :param pulseWave: the waveform of the laser.
    :return: dict type result and ndarray type unitary.
    """
    args = [ionNumber, atomMass, tg, omega, ionIndex]
    kwargs = {
        "phononMode": phononMode,
        "pulseWave": pulseWave,
    }
    origin = rpcCall("IonMS", args, kwargs)
    return origin['result'], dictMatrixToNumpyMatrix(origin["unitary"], complex)

    Generate the Molmer-Sorensen gate in trapped ion

    :param ionNumber: the number of ions.
    :param atomMass: the atomic mass of the ion.
    :param tg: gate time.
    :param omega: 1-dimensional angular frequency of the potential trap.
    :param ionIndex: the index of the two ions.
    :param phononMode: the mode of the phonon oscillation.
    :param pulseWave: the waveform of the laser.
    :return: dict type result and ndarray type unitary.
    
Generate the Molmer-Sorensen gate in trapped ion
Generate the Molmer - Sorensen gate in trapped ion
def remoteIonMS(ionNumber: int, atomMass: int, tg: float, omega: Tuple[float, float], ionIndex: Tuple[int, int],
                phononMode: str = 'axial', pulseWave: str = 'squareWave') -> Tuple[Any, Any]:
    args = [ionNumber, atomMass, tg, omega, ionIndex]
    kwargs = {
        "phononMode": phononMode,
        "pulseWave": pulseWave,
    }
    origin = rpcCall("IonMS", args, kwargs)
    return origin['result'], dictMatrixToNumpyMatrix(origin["unitary"], complex)
def remoteIonMS ( ionNumber : int , atomMass : int , tg : float , omega : Tuple [ float , float ] , ionIndex : Tuple [ int , int ] , phononMode : str = 'axial' , pulseWave : str = 'squareWave' ) -> Tuple [ Any , Any ] : args = [ ionNumber , atomMass , tg , omega , ionIndex ] kwargs = { "phononMode" : phononMode , "pulseWave" : pulseWave , } origin = rpcCall ( "IonMS" , args , kwargs ) return origin [ 'result' ] , dictMatrixToNumpyMatrix ( origin [ "unitary" ] , complex )
Generate the Molmer-Sorensen gate in trapped ion
Generate the Molmer - Sorensen gate in trapped ion
"""
    Generate the Molmer-Sorensen gate in trapped ion

    :param ionNumber: the number of ions.
    :param atomMass: the atomic mass of the ion.
    :param tg: gate time.
    :param omega: 1-dimensional angular frequency of the potential trap.
    :param ionIndex: the index of the two ions.
    :param phononMode: the mode of the phonon oscillation.
    :param pulseWave: the waveform of the laser.
    :return: dict type result and ndarray type unitary.
    """
dict type result and ndarray type unitary.
dict type result and ndarray type unitary .
ionNumber
int
the number of ions.
the number of ions .
atomMass
int
the atomic mass of the ion.
the atomic mass of the ion .
tg
float
None
omega
Tuple[float, float]
1-dimensional angular frequency of the potential trap.
1 - dimensional angular frequency of the potential trap .
ionIndex
Tuple[int, int]
the index of the two ions.
the index of the two ions .
phononMode
str
the mode of the phonon oscillation.
the mode of the phonon oscillation .
pulseWave
str
the waveform of the laser.
the waveform of the laser .