# Control Hamiltonian

The generic problem treated by Q-CTRL involves the controllability (or performance) of a quantum system (single-qubit, multi-qubit, etc.), given available controls in the presence of relevant noise sources. The quantum system is described by

$H_{tot}(t) = H_{c}(t) + H_{n}(t),$

consisting of a control Hamiltonian, $H_{c}(t)$, describing perfect control of the system, e.g. via an ideal external driving field, and the noise Hamiltonian, $H_{n}(t)$, capturing undesirable time-varying interactions with a noise process. The evolution of the quantum system is described by the time evolution operator, $U_{tot}(t,0)$, obtained by solving the Schrödinger equation.

The generic time-dependent control Hamiltonian may be written as

\begin{align} H_{c}(t) = \left(\sum_{j = 1}^{n_{\gamma}}\gamma_{j}(t) C_{j} \hspace{0.15cm}+\hspace{0.15cm} \text{H.C.} \right) \hspace{0.15cm}+\hspace{0.15cm} \sum_{l = 1}^{n_{\alpha}}\alpha_{l}(t) A_{l} \hspace{0.15cm}+\hspace{0.15cm} D. \end{align}

To unpack this notation we introduce some nomenclature useful for defining various concepts in quantum control. Let $\mathcal{H}$ be a $d$-dimensional Hilbert space for the controlled quantum system. We define the control operators

\begin{align} &A_{l}, \hspace{0.15cm} C_{j}, \hspace{0.15cm} D\in\mathcal{H} \end{align}

formally separated into three classes:

\begin{align} &\text{shift operators:} \hspace{1cm} &&A_{l} = A_{l}^\dagger, &&\hspace{0.5cm}\forall l\in\{1,...,n_{\alpha}\}, \\ &\text{drive operators:} \hspace{1cm} &&C_{j}\ne C_j^\dagger, &&\hspace{0.5cm}\forall j\in\{1,...,n_{\gamma}\}, \\ &\text{drift operator:} \hspace{1cm} &&D = D^\dagger &&\hspace{0.5cm}\text{(Hermitian)}. \end{align}

The $A_{l}$ and $C_{j}$ are referred to as shift control operators and drive control operators, respectively. The operator $D$ is a time-independent operator, which we refer to as the drift operator. The corresponding time-dependent control functions $\alpha_{l}(t)$ and $\gamma_{j}(t)$ are the real and the complex control pulses, respectively. Thus

\begin{align} &\text{real pulses:} \hspace{1cm} &&\alpha_{l}(t) \in \mathbb{R}, && \forall l\in\{1,...,n_{\alpha}\}, \\ &\text{complex pulses:} \hspace{1cm} &&\gamma_{j}(t) \in\mathbb{C}, && \forall j\in\{1,...,n_{\gamma}\}. \end{align}

In this framework, the evolution of the quantum system may be viewed as a combination of dynamic rotations, each driven by real or complex pulses about the effective control axis defined by the associated operator. At times, it will be convenient to express the description of the quantum system more compactly. To do so, we vectorize the controls by defining

\begin{align} &\boldsymbol{\alpha} (t) = \begin{bmatrix} \alpha_{1}(t), & \alpha_{2}(t), & \dots & \alpha_{n_{\alpha}}(t) \end{bmatrix}, && \hspace{1cm} \boldsymbol{A}= \begin{bmatrix} A_{1} \\ A_{2} \\ \vdots \\ A_{n_{\alpha}} \end{bmatrix} \\ \\ &\boldsymbol{\gamma} (t) = \begin{bmatrix} \gamma_{1}(t), & \gamma_{2}(t), & \dots & \gamma_{n_{\gamma}}(t) \end{bmatrix}, && \hspace{1cm} \boldsymbol{C}= \begin{bmatrix} C_{1} \\ C_{2} \\ \vdots \\ C_{n_{\gamma}} \end{bmatrix} \end{align}

where real and complex pulses are listed as row vectors, and the corresponding operators are listed as column vectors. Using matrix notation we therefore write

\begin{align} &\sum_{l = 1}^{n_{\alpha}}\alpha_{l}(t) A_{l} = \boldsymbol{\alpha}(t) \boldsymbol{A} \\ & \sum_{j = 1}^{n_{\gamma}}\gamma_{j}(t) C_{j} = \boldsymbol{\gamma}(t) \boldsymbol{C} \end{align}

and express the control Hamiltonian as

\begin{align} H_{c}(t) = \boldsymbol{\alpha}(t) \boldsymbol{A} + \Big(\boldsymbol{\gamma}(t) \boldsymbol{C} + \text{H.C.}\Big) + D. \end{align}

Given a set of control operators, $\boldsymbol{A}$ and $\boldsymbol{C}$, the most general description of control is therefore specified by the set of functions $\boldsymbol{\alpha}(t)$ and $\boldsymbol{\gamma}(t)$, defined on the time interval $t\in[0,\tau]$ specifying the duration over which the control is applied. We refer to this structure as a control solution. In particular, we provide tools to evaluate control solutions, including a variety of familiar predefined control solutions. Below we apply this generic structure to some familiar special cases.

## Conventions

Here we introduce notational conventions followed by Q-CTRL to define complex control pulses, their decomposition, and their relationship to shift and drive operators. Since the following structure applies to every pulse-operator pair $(\gamma_{j}(t), C_{j})$, we drop the subscript $j$ for simplicity. The complex pulses $\gamma(t)\in\mathbb{C}$ may be written in polar or Cartesian form. Namely,

\begin{align} &\text{polar form:} &&\gamma(t) = \Omega(t)e^{+i\phi(t)} &&{}&&\hspace{3.5cm} \\ &\text{Cartesian form:} &&\gamma(t) = I(t) + iQ(t) \end{align}

allowing us to decompose the complex pulses into constituent control variables via the coordinate mappings

\begin{align} &\text{polar coordinates:} \hspace{1cm}\hspace{3.35cm} \Omega\phi: &&\gamma(t) \hspace{0.25cm} &&\mapsto&& \begin{bmatrix} \Omega(t), & \phi(t) \end{bmatrix} \\ &\text{Cartesian coordinates:} \hspace{1cm}\hspace{2.4cm} \text{IQ}\hspace{0.25cm}: &&\gamma(t) \hspace{0.25cm} &&\mapsto&& \begin{bmatrix} I(t), & Q(t) \end{bmatrix} \end{align}

where we establish the following definitions

\begin{align} &\text{drive modulus:} \hspace{1cm} &&\Omega(t) &&= &&|\gamma(t)| \\ &\text{drive phase:} \hspace{1cm} &&\phi(t) &&= &&\text{Arg}\left(\gamma(t)\right) \\ &\text{control x (in-phase):} \hspace{1cm} &&I(t) &&= &&\text{Re}\left(\gamma(t)\right) &&=&&\Omega(t) \cos(\phi(t)) \\ &\text{control y (in-quadrature):} \hspace{1cm} &&Q(t) &&= &&\text{Im}\left(\gamma(t)\right) &&=&&\Omega(t) \sin(\phi(t)) \end{align}

and note the drive phase $\phi(t) = +\text{Arg}(\gamma(t))$ is defined as the positive complex argument. The term in the control Hamiltonian corresponding to $\gamma(t)$ is therefore expressed as

\begin{align} \gamma(t) C + \text{H.C.} &= \gamma(t) C + \gamma^{*}(t)C^\dagger\\ &= \Big(I(t)+iQ(t)\Big)C + \Big(I(t)-iQ(t)\Big)C^\dagger\\ &= I(t)\left(C+C^\dagger\right) + Q(t)\left(iC-iC^\dagger \right)\\ &= I(t)A_{I} + Q(t)A_{Q}, \end{align}

where

\begin{align} A_{I} & = C+C^\dagger, \hspace{1cm} &&A_{I} = A_{I}^\dagger \\ \hspace{2cm} A_{Q} & = i(C-C^\dagger), \hspace{1cm} &&A_{Q} = A_{Q}^\dagger \end{align}

define shift operators. Each complex pulse-control pair $(\gamma(t), C)$ therefore decomposes into real pulse-control pairs $(I(t), A_{I})$ and $(Q(t), A_{Q})$. That is, the quadrature (Cartesian) controls $(I(t),Q(t))$ are equivalent to additional real pulses driving the shift operators $(A_{I},A_{Q})$ in the quantum system. These are related to the drive operator as

\begin{align} C = \frac{1}{2}\left(A_{I}-iA_{Q}\right) \end{align}

resembling a lowering operator with respect to the $(A_{I}, A_{Q})$ pair. The drive modulus $\Omega(t)$ sets the pulse-driven rotation rate, while the drive phase $\phi(t)$ sets the direction of the control axis, oriented between the control axes defined by $(A_{I}, A_{Q})$.

## Single-qubit control Hamiltonian

For a single qubit with transition frequency $\omega_0$ and bare Hamiltonian

\begin{align} H_\text{qubit} = \frac{\omega_0}{2}\sigma_z \end{align}

a near-resonant drive interaction is described in lab frame by the Hamiltonian

\begin{align} H_\text{drive}(t)&=\Omega(t)\cos(\omega_\text{LO}t+\phi(t))\sigma_{x}. \end{align}

where $\Omega(t)$ and $\phi(t)$ map to the amplitude (modified by the drive modulus) and phase of the near-resonant qubit driving field. Moving to the interaction picture rotating with the qubit frequency, and performing the rotating-wave approximation, the combined system $H_\text{qubit}+H_\text{drive}$ is described by the Hamiltonian

\begin{align}\label{} H_{int}(t)& = \frac{1}{2}\Omega(t)\cos{\phi(t)}\sigma_x + \frac{1}{2}\Omega(t)\sin{\phi(t)}\sigma_y + \frac{1}{2}\Delta(t)\sigma_z, \end{align}

where $\Delta(t)$ is the time-dependent detuning from resonance

\begin{align} \Delta(t) = \omega_{0}-\omega_\text{LO}(t) \end{align}

and the Pauli operators are defined by

\begin{align} \sigma_{x} &&=&&\left|0\rangle\hspace{-0.07cm}\langle 1\right|+\left|1\rangle\hspace{-0.07cm}\langle 0\right| &&=&& \begin{bmatrix} 0 & 1\\ 1 & 0 \\ \end{bmatrix},\\ \sigma_{y} &&=&&-i\left|0\rangle\hspace{-0.07cm}\langle 1\right|+i\left|1\rangle\hspace{-0.07cm}\langle 0\right| &&=&& \begin{bmatrix} 0 & -i\\ i & 0 \\ \end{bmatrix},\\ \sigma_{z} &&=&&\left|0\rangle\hspace{-0.07cm}\langle 0\right|-\left|1\rangle\hspace{-0.07cm}\langle 1\right| &&=&& \begin{bmatrix} 1 & 0\\ 0 & -1 \\ \end{bmatrix}. \end{align}

Absorbing the coupled $xy$ controls into a single pulse, $H_{int}(t)$ may be cast in the standard form used at Q-CTRL yielding the control Hamiltonian

\begin{align} H_{c}(t)& = \Big(\gamma_{xy}(t) C_{xy} + \text{H.C.}\Big) + \alpha_{z}(t)A_{z} \end{align}

where

\begin{align} \gamma_{xy}(t) &= \Omega(t)e^{+i\phi(t)}, &&C_{xy} = \frac{1}{2}\left|1\rangle\hspace{-0.07cm}\langle 0\right| = \frac{1}{4}(\sigma_x-i\sigma_y) \\ \alpha_{z}(t) &= \Delta(t), &&A_{z} = \frac{1}{2}\sigma_z \end{align}

The real pulse $\alpha_{z} = \Delta(t)$ appears as a quadrature-independent detuning modulation on $\sigma_{z}$ in the Hamiltonian, unlike controls on $\sigma_{x}$ and $\sigma_{y}$. For this reason it is more natural to cast this control in terms of a real pulse on a shift operator. Such variables are independent of the choice between ‘Cartesian’ and ‘polar’ coordinates.

In particular, we find

\begin{align} &\text{Rabi rate:} \hspace{1cm} &&\Omega(t) &&= &&|\gamma_{xy}(t)| \\ &\text{drive phase:} \hspace{1cm} &&\phi(t) &&= &&\text{Arg}\left(\gamma_{xy}(t)\right) \\ &\text{control x (in-phase):} \hspace{1cm} &&I(t) &&= &&\text{Re}\left(\gamma_{xy}(t)\right) &&=&&\Omega(t) \cos(\phi(t)) \\ &\text{control y (in-quadrature):} \hspace{1cm} &&Q(t) &&= &&\text{Im}\left(\gamma_{xy}(t)\right) &&=&&\Omega(t) \sin(\phi(t)) \end{align}

In the case of RF or microwave systems such as this, the $I-Q$ controls map to the $\sigma_{x}$ and $\sigma_{y}$ operators (again, accounting for the field-qubit coupling strength). This can be seen by recalling the controls $(I(t),Q(t))$ are equivalent to additional real pulses driving the shift operators $(A_{I},A_{Q})$ defined by

\begin{align} A_{I} && = && C_{xy}+C_{xy}^\dagger &&=&& \frac{1}{2}\sigma_{x}\\ \hspace{2cm} A_{Q} && =&& i(C_{xy}-C_{xy}^\dagger) &&=&& \frac{1}{2}\sigma_{y} \end{align}

That is, the control Hamiltonian may be expressed as

\begin{align} H_{c}(t) = \boldsymbol{\alpha}(t)\boldsymbol{A} = \frac{1}{2}\boldsymbol{\alpha}(t)\boldsymbol{\sigma}, \end{align}

where

\begin{align} \boldsymbol{\alpha}(t) = \begin{bmatrix} \alpha_{x}(t), & \alpha_{y}(t), &\alpha_{z}(t) \end{bmatrix}, \hspace{1cm} \boldsymbol{A} = \begin{bmatrix} A_{x} \\ A_{y} \\ A_{z} \end{bmatrix} =\frac{1}{2}\boldsymbol{\sigma}, \hspace{1cm} \boldsymbol{\sigma} = \begin{bmatrix} \sigma_{x} \\ \sigma_{y} \\ \sigma_{z} \end{bmatrix}, \end{align}

and the real pulses and corresponding shift operators are defined by

\begin{align} \alpha_{x}(t) &=I(t), && && A_{x} = \frac{1}{2}\sigma_{x}\\ \alpha_{y}(t) &=Q(t), && && A_{y} = \frac{1}{2}\sigma_{y}\\ \alpha_{z}(t) &= \Delta(t), && && A_{z} = \frac{1}{2}\sigma_{z} \end{align}

With these definitions, we may equivalently write

\begin{align} H_{c} = \frac{1}{2}\Omega'(t)\hat{\boldsymbol{n}}(t)\boldsymbol{\sigma}, \hspace{1.5cm} \hat{\boldsymbol{n}}(t) = \frac{\boldsymbol{\alpha}(t)}{|\boldsymbol{\alpha}(t)|}, \hspace{1.5cm} \Omega'(t) = {|{\boldsymbol{\alpha}(t)|}} \end{align}

where $\Omega’(t)$ is the modified Rabi rate describing the instantaneous rate of rotation (in angular frequency) about the rotation axis $\hat{\boldsymbol{n}}(t)\in\mathbb{R}^3$ associated with the rotation generator $\hat{\boldsymbol{n}}(t)\boldsymbol{\sigma} \equiv n_x(t)\sigma_x+n_y(t)\sigma_y+n_z(t)\sigma_z$. Details on the production of control solutions for this generic single-qubit Hamiltonian are presented in Single-Qubit Driven-Control Formats.

## Two-qubit parametric control Hamiltonian

Parametrically-driven two-qubit gates may be implemented between two capacitively-coupled transmon qubits consisting of one fixed- and one tunable-frequency transmon. A control flux drive $\Phi(t)$ is applied to the tunable-frequency transmon. This modulates the transition frequency $\omega_{T}(t)$ of the tuneable qubit and, via the capacitive coupling, generates a modulated effective two-qubit coupling. Target two-qubit gates are then driven by tuning the flux modulation resonantly with the desired transition. A detailed description of the underlying physical system and the derivation of the associated Hamiltonians can be found in Didier, 2017, Caldwell, 2018, and Reagor, 2018. Key relationships are summarized as follows.

### Overview of physical system

A flux drive $\Phi(t)$ with frequency $\omega_{p}$ and phase offset $\theta_{p}$ parametrically modulates the transition frequency of the tunable-frequency qubit, ideally resulting in the modulation

\begin{align} \omega_{T}(t) = \bar{\omega}_{T}+\tilde{\omega}_{T}\cos\left(2\omega_{p}t+2\theta_{p}\right) \end{align}

where $$\bar{\omega}_{T}$$ is the average shift in qubit frequency and $$\tilde{\omega}_{T}$$ is the amplitude of the modulation caused by the applied flux drive. The Hamiltonian for the system under this modulation, transforming to an interaction picture, takes the form

\begin{equation} \begin{aligned} H_{int}(t) &=g(t) \sum_{n=-\infty}^{\infty}J_{n}\left(\frac{\tilde{\omega}_{T}}{2\omega_{p}}\right)e^{+i(2\omega_{p}t+2\theta_{p})n}\\ &\times\Big\{ e^{-it\Delta}\left|10\rangle\hspace{-0.07cm}\langle 01\right| && \hspace{1cm} && \text{(iSWAP)}\\ &+\sqrt{2}e^{-i(\Delta +|\eta_{F}|)t}\left|20\rangle\hspace{-0.07cm}\langle 11\right| && \hspace{1cm} && (\text{CZ}_{20})\\ &+\sqrt{2}e^{-i(\Delta -|\eta_{T}|)t}\left|11\rangle\hspace{-0.07cm}\langle 02\right| && \hspace{1cm} && (\text{CZ}_{02})\\ &+2e^{-i(\Delta +|\eta_{F}|-|\eta_{T}|)t}\left|21\rangle\hspace{-0.07cm}\langle 12\right|+\text{H.C.}\Big\}. \end{aligned} \end{equation}

Here $g(t)$ describes the capacitive coupling between the transmon qubits; $\eta_{T}(\eta_{F}$) are the positively-defined anharmonicities for the tunable-frequency (fixed-frequency) transmons; $$\Delta = \bar{\omega}_{T} - \omega_{F}$$ is the detuning between the average transition frequency of the tunable-frequency qubit and the fixed transition frequency of the fixed-frequency qubit; and $J_{n}(x)$ is the $n$th-order Bessel function of the first kind. For typical experimental parameters, the time-dependent phase factors on the Hamiltonian operators above lead to rapidly-oscillating terms in the system evolution that effectively suppress the coupling rate to the associated transitions. Activation of a target transition is achieved by resonantly tuning the drive frequency to cancel the associated phase factor. In particular:

\begin{aligned} &\text{iSWAP:} &&|10\rangle \leftrightarrow |01\rangle &&2n\omega_{p} = \Delta\\ &\text{CZ}_{20}\text{:} &&|11\rangle \leftrightarrow |20\rangle &&2n\omega_{p} = \Delta+\eta_{F}\\ &\text{CZ}_{02}\text{:} &&|11\rangle \leftrightarrow |02\rangle &&2n\omega_{p} = \Delta-\eta_{T} \end{aligned}

### iSWAP subspace

The iSWAP interaction is turned on by resonantly driving the $$|01\rangle\hspace{-0.07cm}\langle 10|$$ term, for example by setting the 1st-order ($n=1$) resonance condition $\omega_{p} = \Delta/2$. In this case the remaining rapidly-oscillating terms may be ignored, and $H_{int}(t)$ reduces to the iSWAP control Hamiltonian

\begin{align} H_{c,\text{iSWAP}}(t) = \frac{1}{2} \Lambda(t) e^{+i \xi(t)} |10\rangle\hspace{-0.07cm}\langle 01| + \text{H.C.} \end{align}

where the parametric coupling rate $$\Lambda=2g(t)J_{1}\left(\frac{\bar{\omega}_{T}}{2\omega_{p}}\right)$$ and the parametric drive phase $$\xi = 2\theta_{p}$$.

Single-qubit controls in the the two-qubit space may be incorporated via additional Hamiltonian terms. For example controls on qubit 1 are simply expressed via the control Hamiltonian $$H_{c,\text{qubit1}}(t) = H^{(2\times 2)}_{c,\text{qubit1}}(t) \otimes \mathbb{I}$$ where $$H^{(2\times2)}_{c,\text{qubit1}}(t)$$ is any single-qubit control Hamiltonian on the 2-dimensional Hilbert space of qubit 1, and $\mathbb{I}$ is the identity associated with the 2-dimensional Hilbert space of qubit 2. In particular, a resonant drive on qubit 1 takes the form

\begin{align} H_{c,\text{qubit1}}(t)& = \left(\frac{1}{2} \Omega(t) e^{+i \phi(t)} \left|1\rangle\hspace{-0.07cm}\langle 0\right| + \text{H.C.} \right) \otimes\mathbb{I}. \end{align}

The full control Hamiltonian, $$H_{c}(t) = H_{c,\text{iSWAP}}(t) + H_{c,\text{qubit1}}(t)$$, including both iSWAP and single-qubit controls is therefore compactly expressed

\begin{align} H_{c}(t) = \boldsymbol{\gamma}(t) \boldsymbol{C} + \text{H.C.}, \hspace{2cm} \boldsymbol{\gamma} (t) = \begin{bmatrix} \gamma_{\text{iSWAP}}(t), & \gamma_{\text{qubit1}}(t) \end{bmatrix}, \hspace{2cm} \boldsymbol{C}= \begin{bmatrix} C_{\text{iSWAP}} \\ C_{\text{qubit1}} \end{bmatrix} \end{align}

where

\begin{align} \gamma_{\text{iSWAP}}(t) & = \Lambda(t) e^{+i \xi(t)}, && && C_{\text{iSWAP}} =\frac{1}{2}|10\rangle\hspace{-0.07cm}\langle 01| =\frac{1}{2} \begin{pmatrix} 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ \end{pmatrix}, \\ \\ \gamma_{\text{qubit1}}(t) & = \Omega(t) e^{+i \phi(t)}, && && C_{\text{qubit1}} =\frac{1}{2}\left|1\rangle\hspace{-0.07cm}\langle 0\right|\otimes\mathbb{I} =\frac{1}{2} \begin{pmatrix} 0 & 0 & 0 & 0\\ 0 & 0 & 0 & 0 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ \end{pmatrix}, \end{align}

with shift operator counterparts

\begin{align} A_{I,\text{iSWAP}} && = && C_{\text{iSWAP}}+C_{\text{iSWAP}}^\dagger && = && \frac{1}{2}\left(\left|10\rangle\hspace{-0.07cm}\langle 01\right|+ \left|01\rangle\hspace{-0.07cm}\langle 10\right|\right) &&=&& && \hspace{1cm} \frac{1}{2} \begin{pmatrix} 0 & 0 & 0 & 0\\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 0 \\ \end{pmatrix},\\ \hspace{2cm} A_{Q,\text{iSWAP}} && =&& i(C_{\text{iSWAP}}-C_{\text{iSWAP}}^\dagger) && = && \frac{i}{2}\left(\left|10\rangle\hspace{-0.07cm}\langle 01\right| -\left|01\rangle\hspace{-0.07cm}\langle 10\right|\right) && = && && \hspace{1cm} \frac{1}{2} \begin{pmatrix} 0 & 0 & 0 & 0\\ 0 & 0 & -i & 0 \\ 0 & i & 0 & 0 \\ 0 & 0 & 0 & 0 \\ \end{pmatrix},\\ \hspace{2cm} A_{I,\text{qubit1}} && = && C_{\text{qubit1}}+C_{\text{qubit1}}^\dagger && = && \frac{1}{2}\left(\left|1\rangle\hspace{-0.07cm}\langle 0\right|+ \left|0\rangle\hspace{-0.07cm}\langle 1\right|\right) \otimes\mathbb{I} &&=&& && \hspace{1cm} \frac{1}{2} \begin{pmatrix} 0 & 0 & 1 & 0\\ 0 & 0 & 0 & 1 \\ 1 & 0 & 0 & 0 \\ 0 & 1 & 0 & 0 \\ \end{pmatrix},\\ \hspace{2cm} A_{Q,\text{qubit1}} && =&& i(C_{\text{qubit1}}-C_{\text{qubit1}}^\dagger) && = && \frac{i}{2}\left(\left|1\rangle\hspace{-0.07cm}\langle 0\right| -\left|0\rangle\hspace{-0.07cm}\langle 1\right|\right) \otimes\mathbb{I} && = && && \hspace{1cm} \frac{1}{2} \begin{pmatrix} 0 & 0 & -i & 0\\ 0 & 0 & 0 & -i \\ i & 0 & 0 & 0 \\ 0 & i & 0 & 0 \\ \end{pmatrix}, \end{align}

and where we have restricted attention to the relevant $$(4\times 4)$$ iSWAP subspace, spanned by the eigenstates

\begin{align} \left|00\right\rangle, \hspace{0.25cm} \left|10\right\rangle, \hspace{0.25cm} \left|01\right\rangle, \hspace{0.25cm} \left|11\right\rangle. \end{align}

These iSWAP and single-qubit pulses yield the control parameters

\begin{align} &\text{parametric coupling rate:} \hspace{1cm} &&\Omega_\text{iSWAP}(t) &&=&& |\gamma_{\text{iSWAP}}(t)| &&\equiv&&\Lambda(t) \\ &\text{parametric drive phase:} \hspace{1cm} &&\phi_\text{iSWAP}(t) &&= &&\text{Arg}\left(\gamma_{\text{iSWAP}}(t)\right) &&\equiv&&\xi(t) \\ &\text{parametric control x (in-phase):} \hspace{1cm} &&I_{\text{iSWAP}}(t) &&= &&\text{Re}\left(\gamma_{\text{iSWAP}}(t)\right) &&=&&\Lambda(t) \cos(\xi(t)) \\ &\text{parametric control y (in-quadrature):} \hspace{1cm} &&Q_{\text{iSWAP}}(t)&&= &&\text{Im}\left(\gamma_{\text{iSWAP}}(t)\right) &&=&&\Lambda(t) \sin(\xi(t)) \\ \\ &\text{qubit 1 Rabi rate:} \hspace{1cm} &&\Omega_\text{qubit1}(t) &&= &&|\gamma_{\text{qubit1}}(t)| &&\equiv&&\Omega(t) \\ &\text{qubit 1 drive phase:} \hspace{1cm} &&\phi_\text{qubit1}(t) &&= &&\text{Arg}\left(\gamma_{\text{qubit1}}(t)\right) &&\equiv&&\phi(t) \\ &\text{qubit 1 control x (in-phase):} \hspace{1cm} &&I_{\text{qubit1}}(t) &&= &&\text{Re}\left(\gamma_{\text{qubit1}}(t)\right) &&=&&\Omega(t) \cos(\phi(t)) \\ &\text{qubit 1 control y (in-quadrature):} \hspace{1cm} &&Q_{\text{qubit1}}(t) &&= &&\text{Im}\left(\gamma_{\text{qubit1}}(t)\right) &&=&&\Omega(t) \sin(\phi(t)) \end{align}

Our formulation assumes these relationships are calibrated for a particular system and the effective control operators may be implemented.

## Mølmer-Sørensen control Hamiltonian

The Mølmer-Sørensen drive implements entangling gates between two trapped-ion qubits. An entangling phase is generated by engineering effective spin-spin couplings, mediated by shared motional modes, after irradiating the ions with a bichromatic laser. Phase- and amplitude-modulated qubit controls may be used to implement robust entangling gates, bringing the advantage of improved performance against relevant noise sources. A detailed description of the underlying physical system and the derivation of the associated Hamiltonians can be found in Milne, 2017. Key relationships are summarized as follows. For a system with $N$ ions and $M$ motional modes the Mølmer-Sørensen Hamiltonian takes the form ($\hbar=1$)

\begin{aligned} H(t) &= i\sum_{\mu=1}^{N} \hat{S}_{\varphi}^{(\mu)} \otimes \sum_{k=1}^{M} \left( \kappa_{k}^{(\mu)} \hat{a}_{k}^\dagger - (\kappa_{k}^{(\mu)})^{*} \hat{a}_{k} \right) \end{aligned}

where $$\hat{S}_{\varphi}^{(\mu)}$$ is the spin operator for the $\mu$th ion (embedded in the $N$-ion Hilbert space); $$\hat{a}_{k}$$ ($$\hat{a}_{k}^\dagger$$) are the annihilation (creation) operators for the $k$th mode (embedded in the $M$-mode Hilbert space); and $$\kappa_{k}^{(\mu)}$$ is a time-dependent scalar function defined by

\begin{aligned} \kappa_{k}^{(\mu)}(t) = -i\Omega(t)e^{-i\phi(t)}\eta_{k}^{(\mu)}e^{-i\delta_{k} t}. \end{aligned}

Here $\Omega(t)$ and $\phi(t)$ are the Rabi rate and drive phase for resonantly-driven qubit transitions; $\delta_{k}$ is a laser detuning parameter referenced from the $k$th mode; and $\eta_{k}^{(\mu)}$ is Lamb-Dicke parameter capturing the mode-laser coupling. The mapping between these control variables and the associated physical parameters is described below. Thus $\kappa_{k}^{(\mu)}(t)$ captures both the global qubit controls and mode-laser interactions. With some slight rearrangement this may be cast in the standard form used at Q-CTRL, resulting in the control Hamiltonian

\begin{aligned} H_{c}(t) &= \gamma_\text{MS}(t) C_\text{MS} +\text{H.C.} \end{aligned}

where the complex pulse $\gamma_\text{MS}(t)$ and drive operator $C_\text{MS}$ are defined as

\begin{aligned} \gamma_\text{MS}(t) & = \Omega(t)e^{+i\phi(t)}, \hspace{2cm} C_\text{MS} = \sum_{\mu=1}^{N} \sum_{k=1}^{M} \eta_{k}^{(\mu)}e^{+i\delta_{k} t} \hat{S}_{\varphi}^{(\mu)} \otimes \hat{a}_{k}. \end{aligned}

The control parameters for Mølmer-Sørensen drives are therefore defined

\begin{align} &\text{Rabi rate:} \hspace{1cm} &&\Omega(t) &&= &&|\gamma_{\text{MS}}(t)| \\ &\text{drive phase:} \hspace{1cm} &&\phi(t) &&= &&\text{Arg}\left(\gamma_{\text{MS}}(t)\right) \\ &\text{control x (in-phase):} \hspace{1cm} &&I(t) &&= &&\text{Re}\left(\gamma_{\text{MS}}(t)\right) &&=&&\Omega(t) \cos(\phi(t)) \\ &\text{control y (in-quadrature):} \hspace{1cm} &&Q(t) &&= &&\text{Im}\left(\gamma_{\text{MS}}(t)\right) &&=&&\Omega(t) \sin(\phi(t)) \end{align}

Here the parameters $I(t)$ and $Q(t)$ are the real control pulses for shift operators terms associated with the position and momentum quadratures in phase space.

Let the bichromat laser have phase offsets $\varphi_{r}$ and $\varphi_{b}$ for the red and blue sidebands respectively (see below). Tuning these optical phases sets the operator basis for engineering the effecitve spin-spin couplings, by defining the spin operator

\begin{aligned} \hat{S}_{\varphi} = \cos(\varphi)\hat{S}_{x} + \sin(\varphi)\hat{S}_{y}, \hspace{1cm} \varphi = \frac{\varphi_{b}+\varphi_{r}}{2} \end{aligned}

The spin operators are defined in terms of the Pauli operators as

\begin{aligned} \hat{S}_{x} = \frac{1}{2}{\hat{\sigma}}_{x}, \hspace{1cm} \hat{S}_{y} = \frac{1}{2}{\hat{\sigma}}_{y}, \hspace{1cm} \hat{S}_{z} = \frac{1}{2}{\hat{\sigma}}_{z}. \end{aligned}

All Mølmer-Sørensen controls assume the optical phases for red and blue sidebands have been tuned such to have equal magnitude but opposite sign. That is, $\varphi_{b} = -\varphi_{r}$, in which case $\varphi = 0$ and the spin operator reduces to ${\hat{S}}{\varphi}\rightarrow\frac{1}{2}{\hat{\sigma}}{x}$.

### Physical parameters

Here we define the relationship between the control parameters appearing in the Mølmer-Sørensen control Hamiltonian, and the physical parameters associated with underlying ion-laser interactions. These details are presented with a view to clarifying the notation and (importantly) sign conventions used above.

Qubit transitions $$|0\rangle\leftrightarrow|1\rangle$$ are mediated by a virtual level $$|v\rangle$$ in a two-photon Raman transition, driven by two separate Raman lasers (R1 and R2) with distinct frequencies, wavevectors and phases. We assume the convention R1 drives the higher-energy transition $|0\rangle\leftrightarrow |v\rangle$ and R2 nominally drives the lower-energy transition $|1\rangle\leftrightarrow |v\rangle$. That is, the laser frequencies satisfy $\omega^\text{(R1)}>\omega^\text{(R2)}$. Spin-motional coupling is engineered by simultaneously driving red-sideband (RSB) and blue-sideband (BSB) transitions in the dressed qubit-oscillator picture. This may be done by replacing the nominal carrier frequency of R2 with a bichromat beam with frequency components $\omega^\text{(R2)}\pm\delta^\text{(SB)}$ where $\delta^{(\text{SB})}$ is the absolute value of the bichromat frequency detunings from $\omega^\text{(R2)}$. This may be done by adding sidebands (SB) to R2 and suppressing the component at the carrier frequency. We refer to $\delta^{(\text{SB})}$ simply as the laser detuning. Below we identify the relevant laser frequencies, transition frequencies, and detuning parameters. These are always measured in angular frequency units.

\begin{aligned} &\text{transition frequency, qubit:} && && \omega_\text{qubit} \\ &\text{motional frequency, mode k:} && && \omega_{k}\\ &\text{transition frequency, RSB:} && && \omega_{r,k} = \omega_\text{qubit} -\omega_{k}\\ &\text{transition frequency, BSB:} && && \omega_{b,k} = \omega_\text{qubit} +\omega_{k} \\ \\ &\text{carrier frequency, R1:} && && \omega^{(\text{R1})} \\ &\text{carrier frequency, R2:} && && \omega^{(\text{R2})}\\ &\text{carrier detuning, Raman lasers:} && && \delta^{(\text{c})} = \omega^{(\text{R1})}-\omega^{(\text{R2})} \\ \\ &\text{bichromat frequencies, on R2:} && && \omega^{(\text{R2\pmSB})} = \omega^{(\text{R2})}\pm\delta^\text{(SB)}\\ &\text{bichromat detunings, from R1:} && && \delta^{(\pm)} = \omega^{(\text{R1})}-\omega^{(\text{R2\mpSB})} = \delta^{(\text{c})} \pm\delta^\text{(SB)}\\ &\text{bichromat phase (-\delta^\text{(SB)} component)}: && && \varphi_{r}(t)\\ &\text{bichromat phase (+\delta^\text{(SB)} component)}: && && \varphi_{b}(t) \end{aligned}

To engineer Mølmer-Sørensen interactions the nominal carrier detuning $\delta^{(c)}$ is tuned resonantly with the qubit transition frequency, though the spectral component of R2 at the carrier frequency is suppressed, such that only the $(\pm)$ bichromat components drive transitions. The RSB transition is driven by the $(-)$ component of the bichromat laser, red-detuned from $\omega_{r,k}$ by an additional amount $\delta_{k}$; and the BSB transition is driven by the $(+)$ component of the bichromat laser, blue-detuned from $\omega_{b,k}$ by the same amount $\delta_{k}$. Thus

\begin{aligned} \delta^{(c)} = \omega_\text{qubit}, && && \delta^{(-)} = \omega_{r,k}-\delta_{k}, && && \delta^{(+)}=\omega_{b,k}+\delta_{k}. \end{aligned}

Substituting in the expressions for $\delta^{(\pm)}$, $\omega_{r,k}$ and $\omega_{b,k}$ defined above, and using the carrier-resonance condition $\delta^{(c)} = \omega_\text{qubit}$, we obtain

\begin{aligned} &\text{laser detuning:} && && \delta^\text{(SB)} &&=&& \omega_{k}+\delta_{k}\\ &\text{relative detuning, mode k:} && && \delta_{k} &&=&& \delta^\text{(SB)} - \omega_{k} \end{aligned}

The bichromat phases set the basis for engineering spin-spin coupling, and also govern the drive phase in the complex control pulse. We define:

\begin{aligned} &\text{spin phase:} && && \varphi(t) &&=&& \frac{\varphi_{b}(t)+\varphi_{r}(t)}{2}\\ &\text{drive phase:} && && \phi(t) &&=&& \frac{\varphi_{b}(t)-\varphi_{r}(t)}{2} \end{aligned}

The spin-motional coupling also requires momentum exchange in the ion-laser interactions. This is imparted by the difference wavevector, simply referred to as the laser wavevector, due to intersecting the two Raman beams. We define:

\begin{aligned} &\text{wavevector, R1:} && && \vec{k}^{\text{(R1)}} = \frac{2\pi}{\lambda^\text{(R1)}}\hat{n}^{\text{(R1)}} \\ &\text{wavevector, R2:} && && \vec{k}^{\text{(R2)}}=\frac{2\pi}{\lambda^\text{(R2)}}\hat{n}^{\text{(R2)}}\\ &\text{difference wavevector:} && && \Delta\vec{k} = \vec{k}^{\text{(R1)}} - \vec{k}^{\text{(R2)}}, && && |\Delta\vec{k}| = \frac{2\pi}{\lambda}\left|\hat{n}^{\text{(R1)}}-\hat{n}^{\text{(R2)}}\right| \end{aligned}

where the $\hat{n}$ are the unit vectors describing the direction of the wave vectors. For an optically driven Raman transition to $|v\rangle$, and a microwave qubit, the relative detunings are very small: $\delta^{(c)}/\omega^\text{(R1)}\ll1$ and $\delta^{(c)}/\omega^\text{(R2)}\ll1$. In this case the effective wavelength is well approximated as $\lambda\approx\lambda^\text{(R1)}\approx\lambda^\text{(R2)}$.