ms_phases
ions.ms_phases(drives, lamb_dicke_parameters, relative_detunings, sample_times=None, *, name=None)
Calculate the relative phases for all pairs of ions described by a Mølmer–Sørensen-type interaction when single-tone individually-addressed laser beams are used.
Use this function to calculate the acquired phases for all ion pairs at the final time of the drives, or at the sample times that you provide.
Parameters
- drives (list [Pwc or None ]) – The piecewise-constant drives, {γj}, one for each of the N ions. Drive values must be in rad/s and durations must be in seconds. All drives must have the same total duration, but can have different segmentations. This list must contain at least two elements (your system must have at least two ions). If an ion is not addressed, you can pass None for its drive (this leads to a more efficient calculation than passing a zero drive).
- lamb_dicke_parameters (np.ndarray) – The laser-ion coupling strength, {ηjkl}.
Its shape must be
(3, N, N)
, where the dimensions indicate, respectively, axis, collective mode, and ion. - relative_detunings (np.ndarray) – The difference {δjk=νjk−δ} (in Hz) between each motional
mode frequency and the laser detuning from the qubit transition frequency
ω0. Its shape must be
(3, N)
, where the dimensions indicate, respectively, axis and collective mode. - sample_times (np.ndarray or None , optional) – The times (in seconds) at which to calculate the relative phases, {ti}. If you provide it, it must be 1D, ordered, and contain at least one element. If you omit it, the phases are only calculated at the final time of the drives.
- name (str or None , optional) – The name of the node.
Returns
Acquired phases {ϕjk(ti)+ϕkj(ti)} for all ion pairs.
If you provide sample_times, the shape of the returned value is (T, N, N)
,
where the first dimension indicates time, and the second and third dimensions indicate
ions. Otherwise, the shape is (N, N)
, with the outer time dimension removed.
The relative phases are stored as a strictly lower triangular matrix.
See the notes part for details.
Return type
Tensor(real)
SEE ALSO
Graph.ions.ms_infidelity
: Final operational infidelity of a Mølmer–Sørensen gate.
Graph.ions.ms_phases_multitone
: Corresponding operation for a global multitone beam.
boulderopal.ions.obtain_ion_chain_properties
: Function to calculate the properties of an ion chain.
Notes
The internal and motional Hamiltonian of N ions is
H0=j=1∑3k=1∑Nℏνjk(ajk†ajk+21)+l=1∑N2ℏω0σz,l,where j indicates axis dimension (x, y, or z), k indicates collective mode, ajk is the annihilation operator, and σz,l is the Pauli Z operator for ion l.
The interaction Hamiltonian for Mølmer–Sørensen-type operations in the rotating frame with respect to H0 is
HI(t)=iℏj=1∑3k=1∑Nl=1∑Nσx,l(−βjkl∗(t)ajk+βjkl(t)ajk†),where σx,l is the Pauli X operator for ion l and
βjkl(t)=ηjkl2γl(t)exp(i2πδjkt)indicates the coupling between ion l and motional mode (j,k).
The corresponding unitary operation is given by 1
U(t)=exp[l=1∑Nσx,lBl(t)+il=1∑Nn=1∑l−1(ϕln(t)+ϕnl(t))σx,lσx,n],where
Bl(t)≡j=1∑3k=1∑N(ηjklαjkl(t)ajk†−ηjkl∗αjkl∗(t)ajk), \phi_{ln}(t) \equiv \mathrm{Im} \left[ \sum_{j=1}^{3} \sum_{k=1}^{N} \int_{0}^{t} d \tau_1 \int_{0}^{\tau_1} d \tau_2 \beta_{jkl}(\tau_1)\beta_{jkn}^{\ast}(\tau_2) \right] , αjkl(t)≡∫0tdτ2γl(τ)exp(i2πδjkτ).This function calculates the relative phases for all ions pairs at sample times {ti},
Φln(ti)=ϕln(ti)+ϕnl(ti),and stores them in a strictly lower triangular matrix. That is, Φln(ti) with l>n gives the relative phase between ions l and n, while Φln(ti)=0 for l≤n.
References
Examples
Refer to the How to optimize error-robust Mølmer–Sørensen gates for trapped ions user guide to find how to use this and related nodes.