This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

Pulse optimization for high-precision motional-mode characterization in trapped-ion quantum computers

Qiyao Liang [email protected] Duke Quantum Center, Duke University, Durham, NC 27701, USA Department of Electrical Engineering and Computer Science, Massachusetts Institute of Technology, Cambridge, MA 02139, USA    Mingyu Kang Duke Quantum Center, Duke University, Durham, NC 27701, USA Department of Physics, Duke University, Durham, NC 27708, USA    Ming Li Current affiliation: Atom Computing, Inc., USA 19 Pomona Ave, El Cerrito, CA 94530, USA    Yunseong Nam Department of Physics, University of Maryland, College Park, MD 20742, USA
Abstract

High-fidelity operation of quantum computers requires precise knowledge of the physical system through characterization. For motion-mediated entanglement generation in trapped ions, it is crucial to have precise knowledge of the motional-mode parameters such as the mode frequencies and the Lamb-Dicke parameters. Unfortunately, the state-of-the-art mode-characterization schemes do not easily render the mode parameters in a sufficiently accurate and efficient fashion for large-scale devices, due to the unwanted excitation of adjacent modes in the frequency space when targeting a single mode, an effect known as the cross-mode coupling. Here, we develop an alternative scheme that leverages the degrees of freedom in pulse design for the characterization experiment such that the effects of the cross-mode coupling is actively silenced. Further, we devise stabilization methods to accurately characterize the Lamb-Dicke parameters even when the mode frequencies are not precisely known due to experimental drifts or characterization inaccuracies. We extensively benchmark our scheme in simulations of a three-ion chain and discuss the parameter regimes in which the shaped pulses significantly outperform the traditional square pulses.

I Introduction

With the advent of promises to deliver a quantum computer of scale beyond the capability of conventional computers, comes the responsibility to indeed manufacture one that can reliably be tuned for its normal operations. Without the ability to tune, a quantum computer may produce unpredictable and erroneous results. This necessitates the development of methods that can efficiently and accurately characterize the system parameters, as a prerequisite for its high-fidelity operations.

In this paper, we aim to address this challenge for a trapped-ion quantum computer. In particular, our focus is to enhance the accuracy of motional-mode parameter estimation Kang et al. (2023a), as these parameters are essential for designing and performing high-fidelity two-qubit operations Cirac and Zoller (1995); Mølmer and Sørensen (1999); Sørensen and Mølmer (1999); Blümel et al. (2021, 2021); Li et al. (2022). An accurate characterization of mode parameters can provide several additional benefits as well. First, the overhead in gate calibrations caused by incorrect parameter estimates Maksymov et al. (2021); Gerster et al. (2022) can be reduced. Second, gate pulses can be more efficient in terms of control-signal power, gate duration, and robustness than pulses designed with inaccurate motional-mode parameters Blümel et al. (2021, 2021).

In a characterization experiment, a model is used to predict the physical parameters being characterized via fitting to some measured quantities. A major bottleneck to achieving high-accuracy characterization is the mismatch between the model’s predictions and experimental outcomes Kang et al. (2023a), resulting from various sources of experimental imperfections and/or model violations. Ref. Kang et al. (2023a) presents improved fitting models as well as parallelized characterization protocols to address some of these mismatches. To achieve further improvement in the accuracy of mode-parameter characterization, here, we investigate a complementary approach to the characterization tools developed in Kang et al. (2023a) by leveraging the control degrees of freedom that are already readily available for the quantum gate implementation on the hardware level.

Specifically, we use pulse optimization, which is a widely used tool in quantum optimal control Werschnik and Gross (2007). Indeed, many pulse-shaping paradigms have been developed, in particular for the purpose of designing high-fidelity single-qubit and two-qubit gates Khaneja et al. (2005); Caneva et al. (2011); Maximov et al. (2008). For trapped ions, the pulse shaping techniques are standard and have been previously adopted to accomplish amplitude-modulated (AM) Zhu et al. (2006); Roos (2008); Kim et al. (2009); Choi et al. (2014); Debnath et al. (2016); Figgatt et al. (2019), frequency-modulated (FM) Leung et al. (2018); Landsman et al. (2019); Wang et al. (2020); Kang et al. (2021, 2023b), and phase-modulated (PM) Shapira et al. (2018); Milne et al. (2020); Green and Biercuk (2015); Lu et al. (2019) entangling gates. Here, we devise pulse shaping paradigms to eliminate the effect of dominant error sources in the characterization process, which in turn can help improve the performance of multi-qubit gates Katz et al. (2023a, b) and parallel gates Figgatt et al. (2019); Bentley et al. (2020); Grzesiak et al. (2020). We note that a recent work explored pulse shaping for system parameter characterization in a single-qubit setup Stace et al. (2022).

The rest of the paper is structured as follows. In Sec. II, we provide necessary preliminary information for concretely defining our mode characterization problem. We then formalize the problem in Sec. III, where we focus on the cross-mode coupling and detuning errors, to be detailed in the section, as the two dominant sources of error in the mode characterization. In Sec. IV, we explore pulse shaping, where we exploit the degrees of freedom in modulating the beams that illuminate the ions to engineer the response of the system, such that the previously discussed two errors are minimized. In Sec. V we demonstrate the viability of our proposed pulse shaping schemes via extensive numerical simulations on a three-ion chain. Finally, we discuss the applications and potential limitations of our proposed scheme in Sec. VI and provide outlook in Sec. VII.

II Preliminaries

In a typical trapped-ion quantum computer, a qubit is encoded in two internal states of an ion. As NN ions form a linear Coulomb crystal, the collective motion of the ions can be decomposed into 3N3N normal modes, each of which is described as a quantum harmonic oscillator. A pair of qubits within the ion chain can be entangled via a state-dependent force, frequently using lasers. Such force couples the ions’ internal states to the motional modes, typically strongly coupling to a subset of NN^{\prime} modes, where the motional modes serve as a “bus” that establishes the communication between the target pair of ions that we want to entangle.

To produce an ideal entangling gate, two criteria must be satisfied; first, the residual entanglement between the qubits and the motional modes must be removed at the end of the gate; second, the degree of entanglement between the target pair of qubit states must reach a pre-specified amount. Indeed, accurate knowledge of the motional-mode parameters, mode frequencies and mode-ion coupling strengths (Lamb-Dicke parameters), is necessary to exactly satisfy the criteria. In practice though, the parameters are inevitably known only to finite accuracy, due, e.g., to faulty characterization or experimental drifts. This necessitates gate pulse design methods to construct solutions that are robust to parameter offsets, albeit at the cost of a significantly higher power or longer pulse length Blümel et al. (2021, 2021); Kang et al. (2023b); Shapira et al. (2018); Milne et al. (2020); Jia et al. (2023); Valahu et al. (2022). Despite much effort, readily available rough theoretical estimates of the mode parameters, calculated using minimal knowledge of the system configurations such as the voltages applied to the trap Wineland et al. (1998), have been proven to be insufficient for high-fidelity quantum operations, as evidenced in Ref. Blümel et al. (2021) (see also footnote [35] of Ref. Kang et al. (2023a)).

It is thus not surprising that spectroscopic methods Mavadia et al. (2014); Goodwin et al. (2016); Stutter et al. (2018); Hrmo (2018); Welzel et al. (2018); Joshi et al. (2019); Hrmo et al. (2019); Jarlaud et al. (2020); Feng et al. (2020); Chen et al. (2020); Sosnova et al. (2021) have been employed to better estimate the mode parameters. Briefly, in all these methods, one starts by initializing the ion’s internal and motional state to the ground state |0,0j,p|0,0\rangle_{j,p^{*}} following the standard initialization and cooling procedures. Here |a,bj,p|a,b\rangle_{j,p^{*}} denotes the composite state of the computational basis state |aj|a\rangle_{j} of ion jj with a{0,1}a\in\{0,1\} and the motional Fock state |bp|b\rangle_{p^{*}} of mode pp^{*} with phonon number bb, and pp^{*} is the index of the mode we aim to characterize. One then turns on the Hamiltonian

H^I,j(t)\displaystyle\hat{H}_{I,j}(t) =σ^j+exp(ip=1Nηj,p(a^peiωpt+a^peiωpt))gj(t)+h.c.,\displaystyle=\hat{\sigma}^{+}_{j}\exp{i\sum_{p=1}^{N^{\prime}}\eta_{j,p}(\hat{a}_{p}e^{-i\omega_{p}t}+\hat{a}_{p}^{\dagger}e^{i\omega_{p}t})}g_{j}(t)+h.c., (1)

by illuminating ion jj for a duration τ\tau with the pulse form gj(t)g_{j}(t) that in principle can be of any shape, where σ^j+:=|10|\hat{\sigma}^{+}_{j}:=\left|1\right>\left<0\right| acts on the computational basis state of ion jj, a^p\hat{a}_{p}^{\dagger} and a^p\hat{a}_{p} are the creation and annihilation operators acting on mode pp, ωp\omega_{p} is the frequency of mode pp, and ηj,p\eta_{j,p} is the Lamb-Dicke parameter that couples ion jj and mode pp, defined according to ηj,p:=bj,p|kj,p|/2mωp,\eta_{j,p}:=b_{j,p}|\vec{k}_{j,p}|/\sqrt{2m\omega_{p}}, where bj,pb_{j,p} is the jj-th element of the normalized eigenvector of mode pp, mm is the ion mass, and kj,p\vec{k}_{j,p} is the wavevector of the electric field that couples ion jj to mode pp, projected along the motional direction of mode pp. Here we assume |g(t)||g(t)| to be much smaller than the qubit frequency splitting.

Indeed in Mavadia et al. (2014); Goodwin et al. (2016); Stutter et al. (2018); Hrmo (2018); Welzel et al. (2018); Joshi et al. (2019); Hrmo et al. (2019); Jarlaud et al. (2020); Feng et al. (2020); Chen et al. (2020); Sosnova et al. (2021) gj(t)g_{j}(t) was chosen to be near-resonant to one of the blue-sideband (BSB) transition frequencies ωp\omega_{p^{*}}, i.e., gj(t)=Ajexp{i(μjt+ϕj)}g_{j}(t)={A}_{j}\exp\{-i(\mu_{j}t+\phi_{j})\} with the detuned drive frequency μj=ω~jωjqbt\mu_{j}=\tilde{\omega}_{j}-\omega_{j}^{\rm{qbt}} \approx ωp\omega_{p^{*}}, where AjA_{j} is the Rabi frequency of the resonant qubit-state transition, ϕj\phi_{j} is the laser phase, ω~j\tilde{\omega}_{j} is the frequency of the laser’s electric field, and ωjqbt\omega_{j}^{\rm{qbt}} is the frequency separation between the two internal states of qubit jj. The ion-mode system then undergoes the so-called BSB transition, where a Rabi flop between the states |0,0j,p|0,0\rangle_{j,p^{*}} and |1,1j,p|1,1\rangle_{j,p^{*}} occurs. Since the final |1j|1\rangle_{j}-state population of ion jj at time τ\tau has dependence on ωp\omega_{p^{*}} and ηj,p\eta_{j,p^{*}} according to (1), one can then extract the values of the mode parameters by measuring the population through statistics accumulated over multiple shots and comparing the theoretical predictions implied by (1) with the measurements.

We consider the aforementioned, conventional spectroscopy method using gj(t)=Ajexp{iμjt+iϕj}g_{j}(t)={A}_{j}\exp\{-i\mu_{j}t+i\phi_{j}\} as our baseline, with which we compare our characterization method using pulse shaping, to be developed in later sections. Note the baseline uses a single-tone pulse, where the drive frequency μj\mu_{j} is near-resonant with the frequency ωp\omega_{p^{*}} of the target mode pp^{*}. We denote such non-modulated pulses as square pulses.

III Challenges to Accurate and Efficient Mode Characterization

In theory, if one can simulate (1) efficiently and exactly, the mode parameters ωp\omega_{p} and ηj,p\eta_{j,p} for all jj and pp can in principle be estimated to within the model violation. However, such a simulation becomes a computationally prohibitive task as the system size increases. Traditionally, the so-called single-mode BSB model Wineland et al. (1998) has thus been employed to enable a scalable simulation, effectively focusing on a single mode and a single ion only, at the cost of introducing further, non-insignificant model-violation errors.

In practice, additional considerations need to be given. Recall the agreement between the model predictions and the experimental results in the BSB transition population is at the core of the mode-parameter estimation and the population has dependencies on both ωp\omega_{p} and ηj,p\eta_{j,p}. Inaccurate estimation of ωp\omega_{p}, a known parameter to fluctuate and drift Kang et al. (2023b), would thus result in inherent inaccuracy in estimating ηj,p\eta_{j,p} and vice versa.

To resolve the theoretical and practical issues then, two complementary approaches may be considered. The first approach involves finding more sophisticated theoretical models that better approximate the system while still remaining computationally feasible and developing tailor-made experimental protocols that better separate the effect of the uncertainties in ωp\omega_{p} from that of the uncertainties in ηj,p\eta_{j,p} in the various BSB populations induced empirically. This approach has indeed been studied in detail in Ref. Kang et al. (2023a), however using a square pulse. In a contrasting and complementary approach, which is the one explored and investigated here, active “noise canceling” can be considered, via pulse shaping: By deliberately constructing a non-square, shaped pulse to eliminate significant model-violation terms or desensitize the BSB-transition population with respect to parameter change, significant improvement in the mode-parameter estimation can be achieved.

In this section, we concretely lay out the necessary technical details for understanding our pulse shaping method and its benefits. By showing the approximations used to arrive at the simple, single-mode BSB model, we can pinpoint the terms responsible for the model-violation errors. Further, we can explicitly express the sensitivity term. Note, in the forthcoming discussion, for simplicity, we consider the case of illuminating one ion at a time for one target mode, thus omitting the reference to ion jj wherever contextually clear; Parallelization by simultaneously illuminating multiple ions and targeting multiple modes Kang et al. (2023a) may be considered but is beyond the scope of this paper.

To start, we reiterate that, when the mode characterization is performed for a trapped-ion quantum computer, experimental evolution is compared to that implied by the simulated Hamiltonian. Specifically, a series of experimentally observed BSB-transition population PP is compared with that expected from the simulation, denoted 𝒫{\mathcal{P}}, to reveal the mode parameters of interest. As a result, the discrepancy between PP and 𝒫\mathcal{P} directly leads to errors in characterizing the mode parameters.

Multi-mode and Single-mode BSB Hamiltonian – To obtain 𝒫\mathcal{P} at scale beyond a handful number of ions, we first apply a series of approximations to the Hamiltonian in (1) to arrive at the single-mode BSB Hamiltonian, better amenable to a scalable simulation. Assuming small ηp(ηj,p)\eta_{p}({\leftarrow}\eta_{j,p}), we linearize the Hamiltonian in (1) by performing a first-order Taylor expansion on the exponential term in (1). Then, a series of rotating-wave approximation (RWA) is applied to remove the frequency components that are far off-resonant from all mode frequencies (see Appendix B for details). Here we assume a more general form of the pulse function g(t)g(t) that have frequency componenet(s) near the mode frequencies only. These approximations combine to give the NN^{\prime}-mode BSB Hamiltonian

H^I(t)=ip=0N1ηpeiωptg(t)σ^+a^p+h.c.\hat{H}^{\prime}_{I}(t)=i\sum_{p=0}^{N^{\prime}-1}\eta_{p}e^{i\omega_{p}t}g(t)\hat{\sigma}^{+}\hat{a}^{\dagger}_{p}+h.c. (2)

Next, as only mode pp^{*} is targeted, we may apply a stronger RWA to further remove the frequencies of the non-target modes, assuming |ηpA||ωpμ|pp|\eta_{p}A|\ll|\omega_{p}-\mu|\;\forall p\neq p^{*}. This results in the single-mode BSB Hamiltonian

H^I,p(t)=iηpeiωptg(t)σ^+a^p+h.c.\hat{H}^{\prime}_{I,p^{*}}(t)=i\eta_{p^{*}}e^{i\omega_{p^{*}}t}g(t)\hat{\sigma}^{+}\hat{a}^{\dagger}_{p^{*}}+h.c. (3)

See detailed derivations and approximations used to arrive at (2) and (3) in Appendix B. We note that the simpler model in (3) demands far less computational cost in its simulation, whereas the cost for simulating the more complicated model in (2) grows exponentially with the number of modes NN^{\prime}. Nonetheless, the second RWA that we apply leading to (3) no longer holds when |ηpA||\eta_{p}A|’s are of comparable magnitudes to the finite mode-frequency spacings |ωpωp||\omega_{p^{*}}-\omega_{p}|, which constitutes the heart of the problem that we describe next.

We are now ready to discuss our problem details that base the comparison between PP and 𝒫{\mathcal{P}}, both of which we obtain by simulation in this paper. Starting with PP, recall the most complete theoretical model considered herein is (1). Comparing (1) and (2), one can see that the leading-order difference is O(η2)O(\eta^{2}), which is indeed the well-known Debye-Waller (DW) effect Wineland and Itano (1979); Wineland et al. (1998). Briefly, it affects the population PP by reducing the effective BSB Rabi frequency – the spread of the ion’s position wavepacket, captured in (1) but not in (2), leads to this reduction. Since our goal is to silence the leading-order, significant model-violation terms, which we show to be O(η)O(\eta) in the paragraphs to come later, for our purposes, it suffices to consider the evolution implied by (2) as our simulated experiment that generates the (simulated) experimental population PP. Further, the DW effect is known to be re-capturable by using a more advanced model that predicts the BSB population without adding significant computational cost Kang et al. (2023a). As for the model-based, approximate BSB population 𝒫{\mathcal{P}}, we obtain it from simulating the evolution implied by the Hamiltonian in (3) over duration τ\tau.

Elimination targets for pulse shaping – The source of discrepancy between PP and 𝒫{\mathcal{P}} forms the elimination target by our pulse shaping. Such an elimination is in general not achievable via a simple square pulse. By bringing PP and 𝒫{\mathcal{P}} closer via shaping the pulses, we can enable significantly better mode-parameter estimation. To this end, the elimination targets are:

(1) Cross Mode Coupling (CMC) error: Note an important difference between (2) and (3) is that former captures the coupling of internal ion states to modes ppp\neq p^{*}, an effect hereafter referred to as the CMC, whereas the latter does not. Specifically, the leading-order CMC error may be quantified as

θpCMC=Θp(1):=0τg(t)eiωpt𝑑t(pp),\theta^{\rm CMC}_{p}=\Theta_{p}^{(1)}:=\int_{0}^{\tau}g(t)e^{i\omega_{p}t}dt\quad\quad(p\neq p^{*}), (4)

where Θp(1)\Theta_{p}^{(1)} is the first-order Magnus integral, since the first-order Magnus-approximated evolution operator U^(1)\hat{U}^{(1)} for (2) is

U^(1):=exp(Ω^1)=exp(p=0N1ηpΘp(1)σ^+a^ph.c.)\hat{U}^{(1)}:=\exp(\hat{\Omega}_{1})=\exp\left(\sum_{p=0}^{N^{\prime}-1}\eta_{p}\Theta_{p}^{(1)}\hat{\sigma}^{+}\hat{a}_{p}^{\dagger}-h.c.\right) (5)

and we used Ω^1\hat{\Omega}_{1} to denote the first-order Magnus term. Note this approximation is valid when |ηpg(t)||\eta_{p^{*}}g(t)| is small compared to 1/τ1/\tau. By eliminating all θpCMC\theta_{p}^{\rm CMC} defined in (4) using pulse shaping, the first-order CMC effect may be suppressed, leaving the second-order Magnus term

Ω^2=p,p=0N1ηpηpΘp,p(2)(σ^za^pa^p+σ^σ^+δp,p)h.c.,\hat{\Omega}_{2}=\sum_{p,p^{\prime}=0}^{N^{\prime}-1}\eta_{p}\eta_{p^{\prime}}\Theta_{p,p^{\prime}}^{(2)}\left(\hat{\sigma}_{z}\hat{a}^{\dagger}_{p}\hat{a}_{p^{\prime}}+\hat{\sigma}_{-}\hat{\sigma}_{+}\delta_{p,p^{\prime}}\right)-h.c., (6)

where

Θp,p(2)=120τ𝑑t10t1𝑑t2g(t1)g(t2)eiωpt1eiωpt2\Theta_{p,p^{\prime}}^{(2)}=\frac{1}{2}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}g(t_{1})g^{*}(t_{2})\>e^{i\omega_{p}t_{1}}\>e^{-i\omega_{p^{\prime}}t_{2}} (7)

is the second-order Magnus integral, as the post-suppression leading-order CMC error.

(2) Detuning error: In our model Hamiltonian, ωp\omega_{p} are considered static. However, experimental imperfections, either from faulty characterization or drifts during the experiment Maksymov et al. (2022), give rise to inexactness or detuning of the mode frequencies ωp\omega_{p}. This manifests in our model as

θpdet(δp)\displaystyle\theta^{\rm{det}}_{p}(\delta_{p}) :=0τei(ωp+δp)tg(t)𝑑t0τeiωptg(t)𝑑t\displaystyle:=\int_{0}^{\tau}e^{i(\omega_{p}+\delta_{p})t}g(t)dt-\int_{0}^{\tau}e^{i\omega_{p}t}g(t)dt
=κ=1δpκκ!κωpκΘp(1),\displaystyle=\sum_{\kappa=1}^{\infty}\frac{\delta_{p}^{\kappa}}{\kappa!}\frac{\partial^{\kappa}}{\partial\omega_{p}^{\kappa}}\Theta_{p}^{(1)}, (8)

which is the difference incurred in the first-order Magnus integral due to the detuning ωpωp+δp\omega_{p}\rightarrow\omega_{p}+\delta_{p}. For the target mode pp^{*}, the difference leads to off resonance of the BSB transition, which directly causes error in estimating ηj,p\eta_{j,p^{*}}. For the non-target modes, the detuning leads to changes in the CMC terms in (4), hence imperfect removal of the CMC effects via pulse shaping, which ultimately results in the characterization error for ηj,p\eta_{j,p^{*}}. Since the precise value of θpdet\theta_{p}^{\rm{det}} cannot be learned when δp\delta_{p} is not known precisely, we aim to suppress θpdet(δp)\theta_{p}^{\rm{det}}(\delta_{p}) via minimizing the first KK leading-order derivatives (κK\kappa\leq K) of Θp(1)\Theta_{p}^{(1)} within the Taylor expansion terms of (8).

To recap, we emphasize that the quantities (4) and (8) are in general nonzero for the non-modulated pulse of the form g(t)=A¯eiμt+iϕg(t)=\bar{A}e^{-i\mu t+i\phi}. In our work, we deliberately design g(t)g(t) to remove (4) and (8), such that the accuracy of mode characterization is significantly improved. Note that the residual errors in the characterization would then be due to the contributions from the second- and higher-order Magnus terms as mentioned earlier, in addition to other high-order Hamiltonian terms unaccounted for in our model. Indeed, an example may be the aforementioned DW effect. In the rest of our paper, we therefore neglect the DW effect and focus on the larger, leading-order effects such as the CMC and detuning error that we actively silence using our pulse shaping.

IV Method

In this section, we present pulse-shaping techniques for suppressing the CMC and the detuning errors by removing (4) and (8), respectively. To summarize, we aim to obtain the following goals:

  1. Goal 1

    Suppress the CMC by imposing Θp(1)=0\Theta_{p}^{(1)}=0 for all ppp\neq p^{*};

  2. Goal 2

    Maximize |Θp(1)||\Theta_{p^{*}}^{(1)}| while keeping the average Rabi frequency of the pulse the same, such that maximal change in the qubit population (observable in our experiment) is reached with a reasonable power requirement;

  3. Goal 3

    Achieve Goal 1 and Goal 2 and estimate ηj,p\eta_{j,p^{*}} well even in the presence of uncertainties in ωp\omega_{p}’s by stabilizing the conditions with respect to changes in ωp\omega_{p}’s.

Briefly, to eliminate the CMC error, we first assume ωp\omega_{p}’s are fully known, a condition which we relax later when introducing the detuning errors. Our Goal 1 is then to obtain θpCMC=0\theta_{p}^{\rm CMC}=0 in (4) for all ppp\neq p^{*}. This way, the non-target modes are decoupled from the illuminated ion up to the first order.

In principle, a pulse that achieves Goal 1 can, for example, be far detuned from all of the mode frequencies. This would result in a minimal target-mode signal (qubit population) or, said differently, a pulse solution with a prohibitively large power. To address this, we maximize the target mode’s response (Goal 2) by maximizing |Θp(1)||\Theta_{p^{*}}^{(1)}| while keeping the pulse power requirement constant, to be more concretely defined later.

Relaxing now the perfect knowledge assumption for ωp\omega_{p}’s, we notice that the precise integral values Θp(1)\Theta_{p}^{(1)} used to achieve Goal 1 and Goal 2, for both p=pp{=}p^{*} and ppp{\neq}p^{*}, will change if a detuning error occurs. To prevent a significant change, we can stabilize all Θp(1)\Theta_{p}^{(1)}’s with respect to their respective mode frequencies ωp\omega_{p}’s such that θpdet\theta_{p}^{\rm det} in (8) is suppressed to (near) zero for a small range of detuning, with a varying degree of stabilization KK. In other words, for Goal 3, we can minimize the derivatives of Θp(1)\Theta_{p}^{(1)} with respect to ωp\omega_{p} for all modes pp.

In what follows, we focus on achieving all three goals stated above by appropriately shaping g(t)g(t). To start, we expand g(t)g(t) using a Fourier basis, i.e.,

g(t)=nAnei2πnτt+iϕn=nAnei2πnτt,g(t)=\sum_{n}A^{\prime}_{n}e^{-i\frac{2\pi n}{\tau}t+i\phi_{n}}=\sum_{n}A_{n}e^{-i\frac{2\pi n}{\tau}t}, (9)

where nn indexes the Fourier basis and An:=AneiϕnA_{n}:=A_{n}^{\prime}e^{i\phi_{n}} is a complex coefficient of each Fourier component. While a complete Fourier basis comprising an infinite number of basis components may be considered, in practice, a Fourier basis consisting of NbasisN_{\rm{basis}} components, concentrated around motional mode frequencies ωp\omega_{p}’s, suffices. The average Rabi frequency A¯\bar{A} of pulse g(t)g(t) is then defined as A¯:=n|An|2\bar{A}:=\sqrt{\sum_{n}|A_{n}|^{2}}. Inserting (9) into Θp(1)\Theta_{p}^{(1)} defined in (4), we obtain

Θp(1)=nAn0τexp{i(ωp2πnτ)t}𝑑t,\displaystyle\Theta^{(1)}_{p}=\sum_{n}A_{n}\int_{0}^{\tau}\exp\left\{i\left(\omega_{p}-\frac{2\pi n}{\tau}\right)t\right\}dt, (10)

which we can then summarize into a N×1N^{\prime}\times 1 column vector Θ(1)\vec{\Theta}^{(1)}. Extracting the Rabi frequency coefficients AnA_{n} from the above expression and summarizing again as a column vector A\vec{A}, we can succinctly express Θ(1)\vec{\Theta}^{(1)} as

Θ(1)=𝐌A,\displaystyle\vec{\Theta}^{(1)}=\mathbf{M}\vec{A}, (11)

where 𝐌\mathbf{M} is a matrix of dimension N×NbasisN^{\prime}\times N_{\rm{basis}} with the matrix elements

Mp,n=0τexp{i(ωp2πnτ)t}𝑑t.\displaystyle M_{p,n}=\int_{0}^{\tau}\exp\left\{i\left(\omega_{p}-\frac{2\pi n}{\tau}\right)t\right\}dt. (12)

The goal here becomes then to determine the appropriate Fourier expansion coefficients A\vec{A} that achieve the three goals listed above.

Step 1 (Goal 1): CMC suppression – Here, we aim to ensure the inner product between each row of 𝐌\mathbf{M} and A\vec{A} is zero for all ppp{\neq}p^{*}, such that θpCMC=0,pp\theta_{p}^{\text{CMC}}{=}0,\,\,\forall p{\neq}p^{*}. To achieve this, we remove the pp^{*}-th row vector from 𝐌\mathbf{M}, denote this matrix as 𝐌\mathbf{M}^{\prime}, and find the null space of 𝐌\mathbf{M}^{\prime}. We characterize this space 𝓢(1)\boldsymbol{\mathcal{S}}^{(1)} by a spanning set of vectors 𝒮(1)\mathcal{S}^{(1)}, and denote 𝐍\mathbf{N} as the matrix whose columns consist of vectors in 𝒮(1)\mathcal{S}^{(1)}. These nullspace vectors then satisfy the CMC nulling conditions of all ppp\neq p^{*} and serve as the spanning vectors of the space over which we maximize the signal of the target mode p=pp=p^{*}. The size of the nullspace is the number of basis functions, subtracted the number of nulling conditions applied N1N^{\prime}-1. The null-space dimension marks the degrees of freedom we have left to work with for the signal maximization, of which there needs to be a sufficient number to warrant convergence in the pulse shape. This implies that the pulse length has to be sufficiently long such that the frequency resolution 2πn/τ2\pi n/\tau is small enough to generate sufficiently many frequency basis components.

Step 2 (Goal 2): Maximizing signal strength – To maximize the signal strength of the target mode pp^{*}, we first minimize the average power of the pulse to achieve |Θp(1)|=1|\Theta_{p^{*}}^{(1)}|=1. We then scale the obtained, minimal-power pulse solution vector by Rabi-frequency scaling factor α\alpha, such that |Θp(1)||\Theta_{p^{*}}^{(1)}| reaches a desired value, in this case α\alpha. More specifically, our starting point is the projection of the pp^{*}-th row vector v\vec{v}^{\dagger} of 𝐌\mathbf{M} onto the nullspace 𝐍\mathbf{N}. We then find the eigenvector ξ\vec{\xi} with the largest eigenvalue λmax>0\lambda_{\rm max}>0 of the positive-definite matrix 𝐍vv𝐍\mathbf{N}^{\dagger}\vec{v}\vec{v}^{\dagger}\mathbf{N}. The normalized pulse solution is obtained by projecting ξ\vec{\xi} onto the nullspace 𝐍\mathbf{N} then normalizing by λmax\sqrt{\lambda_{\rm max}}. After rescaling by a factor of α\alpha, we obtain the pulse solution A\vec{A}, given by

A=αλmax𝐍ξ.\displaystyle\vec{A}=\frac{\alpha}{\sqrt{\lambda_{\rm max}}}\mathbf{N}\vec{\xi}. (13)

It is worth mentioning that our choice of α\alpha is restricted by the conditions of the RWA approximations. As a result, we mainly operate in the small α\alpha regime.

(Optional) Modified Step 1 (Goal 3): Stabilization against detuning – We now admit that we have inaccuracies in ωp\omega_{p}’s such that ωpωp+δp\omega_{p}\rightarrow\omega_{p}+\delta_{p}, p\forall p. The resulting error contribution θpdet\theta_{p}^{\rm det}, given in (8), can be suppressed by adding the following constraints to the null-space conditions:

κωpκΘp(1)=0p,κ{1,..,K},\frac{\partial^{\kappa}}{\partial\omega_{p}^{\kappa}}\Theta_{p}^{(1)}=0\quad\quad\forall p,\>\kappa\in\{1,..,K\}, (14)

where KK is the moment of stabilization, which corresponds to the highest order of derivatives that are nulled.

Specifically, these constraints are appended as additional KNKN^{\prime} rows to the matrix 𝐌\mathbf{M}^{\prime}, where each row contains the nulling condition for each pair of pp and κ\kappa. As 𝐌\mathbf{M}^{\prime} originally has N1N^{\prime}-1 rows, the appended matrix entries in the expanded 𝐌\mathbf{M}^{\prime} are given by

MκN1+p,n=κωpκ0τexp{i(ωp2πn/τ)t}𝑑t,\displaystyle M^{\prime}_{\kappa N^{\prime}-1+p,n}=\frac{\partial^{\kappa}}{\partial\omega_{p}^{\kappa}}\int_{0}^{\tau}\exp\left\{i(\omega_{p}-2\pi n/\tau)t\right\}dt, (15)

where p=1,..,Np=1,..,N^{\prime} and κ=1,..,K\kappa=1,..,K. Then, we find the set of null space vectors 𝒮(1)\mathcal{S}^{(1)} corresponding to the expanded 𝐌\mathbf{M}^{\prime} and proceed to perform the same signal maximization procedure as described in Step 2.

We note in passing that performing stabilization against detuning as described in Modified Step 1 is optional. Should the rough ωp\omega_{p} values known a priori to the characterization be sufficiently accurate for the purpose of characterization, the need for these constraints are obviated.

Remarks – Due to its role in the rescaling of |Θp(1)||\Theta_{p^{*}}^{(1)}|, hereafter, we use α\alpha interchangeably as the absolute value of the first-order Magnus integral for mode pp^{*} for both shaped and square pulses. The rescaled pulse roughly induces a qubit population inversion 𝒫sin2(ηp|Θp(1)|)\mathcal{P}\approx\sin^{2}(\eta_{p^{*}}|\Theta_{p^{*}}^{(1)}|) (see Appendix B.3 for details) and, in the perturbative regime where |ηpΘp(1)|1|\eta_{p^{*}}\Theta_{p^{*}}^{(1)}|\ll 1, 𝒫|ηpΘp(1)|2=(ηpα)2\mathcal{P}\approx|\eta_{p^{*}}\Theta_{p^{*}}^{(1)}|^{2}=(\eta_{p^{*}}\alpha)^{2}. The pulse, if it happens to be that its Fourier coefficients for a tight band of frequencies near ωp\omega_{p^{*}} dominate in their modulus, would roughly have an average power of A¯α/τ\bar{A}\approx\alpha/\tau [see (10)].

V Results

Refer to caption
Figure 1: Square and shaped pulses with moments of stabilization K{0,1,2,3}K\in\{0,1,2,3\}, for N=N=3N=N^{\prime}=3, α=1\alpha=1, and τ=100μ\tau=100\mus. Top: Re[g(t)]\real[g(t)] of each pulse as a function of time tt. Bottom: Modulus of the Fourier coefficients |An||A_{n}| of each pulse as a function of frequency fn=n/τf_{n}=n/\tau. The yellow dashed vertical lines represent the non-target mode frequencies and the red solid line represents the target mode frequency.

In this section, we demonstrate the viability of our pulse-shaping techniques proposed via numerical simulations of a three-ion chain. To benchmark the performance of our pulse-shaping characterization tools as compared to their traditional square-pulse counterparts, we simulate the bright-state populations PP and 𝒫\mathcal{P} induced by the multi-mode Hamiltonian (2) and the single-mode Hamiltonian (3), respectively, – see Appendix A of Ref. Kang et al. (2023a) for the simulation implementation detail – where the initial qubit state is |0\ket{0} and all motional modes are initially in the ground state. We then use the fractional difference between the induced qubit populations by the two models :=|P𝒫|/𝒫\mathcal{E}:=|P-\mathcal{P}|/\mathcal{P}, hereafter referred frequently as the fractional population error, resulting from the CMC and detuning error, as a proxy for the characterization error.

It is worth noting that since Psin2(ηpα)P\approx\sin^{2}(\eta_{p^{*}}\alpha) (see Appendix B.3), P(ηpα)2P\approx(\eta_{p^{*}}\alpha)^{2} in the small-population regime, so the fractional error in PP in relation to the fractional error in ηp\eta_{p^{*}} is given by dPP2dηpηp\frac{dP}{P}\approx\frac{2d\eta_{p^{*}}}{\eta_{p^{*}}}. Thus, in the presence of fitting errors or experimental imperfections, \mathcal{E} serves as a lower bound to the fractional characterization uncertainty of ηp\eta_{p^{*}}. Computing the proxy error \mathcal{E} for both shaped and square pulses can hence help us reveal the parameter regime in which shaped pulses offer an advantage over square pulses.

Specifically, to see how the parameter regime may be found, we can consider the leading-order errors that remain after pulse shaping and contribute significantly to {\mathcal{E}}, which can be broken down as follows. First, residual CMC errors of order O(η2)O(\eta^{2}) or higher remain due to the second- or higher-order Magnus terms. Second, detuning errors arise from higher-order contributions of the first-order Magnus integral δpκκ!κωpκΘp(1)\frac{\delta_{p}^{\kappa}}{\kappa!}\frac{\partial^{\kappa}}{\partial\omega_{p}^{\kappa}}\Theta_{p}^{(1)} (κ>K\kappa>K), where KK is the moment of stabilization. Third, additional detuning errors arise from non-target higher-order Magnus integrals. Thus, the dependence of \mathcal{E} to various parameters such as pulse power, pulse duration, and detuning can be predicted based on the residual error sources listed above. Indeed, we aim to identify parameter choices that result in smaller \mathcal{E} for shaped pulses compared to that for square pulses by carefully examining each dependence.

We note in passing that, for a linear chain of three ions indexed by j{0,1,2}j\in\{0,1,2\} (labeled from left to right) with three modes indexed by p{0,1,2}p\in\{0,1,2\} (labeled in the ascending order of mode frequencies), we focus throughout this section on ion j=2j=2, probing the largest-frequency mode p=2p^{*}=2, as a concrete example; This choice is arbitrary and other ion-mode pairs can be considered straightforwardly in our procedures. Further, we use a realistic set of values of ωp\omega_{p} and ηj,p\eta_{j,p}, reported in Appendix A, for our simulated experiments (three-mode Hamiltonian) throughout this section.

Figure 1 shows an example square pulse and shaped pulses with various moments of stabilization KK, for the aforementioned example choice of the ion and the mode. The pulse components in the frequency domain are mostly concentrated near the target-mode frequency ωp=ω2\omega_{p^{*}}{=}\omega_{2}. The small wiggles around the non-target mode frequencies ω0\omega_{0} and ω1\omega_{1} can be interpreted as signatures of active cancellation of the CMC error. Similar features are observed for other choices of ion-mode pairs (not shown).

The rest of the section is organized as follows. We first study the \mathcal{E} scaling of square and shaped pulses without stabilization due to the CMC effect in Sec. V.1. We then study the \mathcal{E} scaling of square and shaped pulses with various degrees of stabilization in the presence of both errors, due to CMC and detuning, in Sec. V.2. Finally, we compare \mathcal{E} between various shaped and square pulses across all parameter regimes in Sec. V.3.

V.1 Fractional population error due to CMC

We first analyze how \mathcal{E} due to the CMC depends on the Rabi frequency scaling factor α\alpha and the pulse length τ\tau. Here the detuning error and stabilization are not considered. We note that intuitively, the CMC error comes from non-zero spectral decomposition of pulse components at non-target mode frequencies, as shown for a square pulse in Fig. 1. The magnitude of the CMC error due to non-target mode pp is then roughly determined by A¯/|ωpωp|\bar{A}/|\omega_{p^{*}}-\omega_{p}|, where A¯\bar{A} is the average Rabi frequency of the pulse as defined in Sec. IV.

Refer to caption
Figure 2: Fractional qubit-population error \mathcal{E} for square and shaped (without stabilization) pulses as a function of (a) Rabi frequency scaling α\alpha when τ=150\tau=150μ\mus and (b) pulse length τ\tau with the fixed value of α=1\alpha=1.
Refer to caption
Figure 3: Performance metrics of square pulses and shaped pulses with various moments of stabilization. For all pulses, α=1\alpha=1. (a) Average Rabi frequencies for various values of gate time τ\tau. The blue line marking A¯/2π=α/2πτ=1/2πτ\bar{A}/2\pi=\alpha/2\pi\tau=1/2\pi\tau for square pulses (not visible) coincides with the orange line for moment-0 shaped pulses at the scale shown. (b) Deviation in the first-order Magnus integral of target mode p=2p^{*}=2 for various values of mode-frequency detuning δ\delta. (c) Fractional population errors at δ=2π×100\delta=2\pi\times 100 Hz as a function of pulse length τ\tau. (d) Fractional population errors {\mathcal{E}} at τ=1000\tau=1000μ\mus as a function of detuning δ\delta. The blue curve for square pulses mostly coincides with the orange curve for moment-0 shaped pulses. (c) and (d) share the figure legends of (d).

Figures 2(a) and (b) compare the population error \mathcal{E} solely due to the CMC, between square and shaped pulses, as a function of varying α\alpha and τ\tau, respectively. First, in Fig. 2(a), we observe that for the square pulses g(t)=A¯eiωptg(t)=\bar{A}e^{-i\omega_{p^{*}}t}, \mathcal{E} remains constant with increasing α\alpha (except for the dip at α2.3\alpha\approx 2.3 that will be explained later). This is because the major contribution to 𝒫\mathcal{P} and |P𝒫||P-\mathcal{P}| comes from |Θp(1)|2|\Theta_{p^{*}}^{(1)}|^{2} and |Θp(1)|2|\Theta_{p}^{(1)}|^{2} (ppp\neq p^{*}), respectively, which are both proportional to A¯2α2\bar{A}^{2}\propto\alpha^{2}. Meanwhile, for the shaped pulses, \mathcal{E} is proportional to α2\alpha^{2} when α3\alpha\lesssim 3. This is because for shaped pulses, Θp(1)=0\Theta_{p}^{(1)}=0 for ppp\neq p^{*}, so the major contribution to |P𝒫||P-\mathcal{P}| comes from |Θp,p(2)|2|\Theta^{(2)}_{p,p^{\prime}}|^{2} [(p,p)(p,p)(p,p^{\prime})\neq(p^{*},p^{*})] that is proportional to A¯4α4{\bar{A}}^{4}\propto\alpha^{4}; see Appendix B for details. Due to this difference in the scaling behavior of \mathcal{E} with respect to α\alpha, shaped pulses are guaranteed to outperform square pulses when α\alpha is chosen to be sufficiently small, say, α1\alpha\lesssim 1.

Figure 2(b) shows that when α=1\alpha{=}1 is fixed, \mathcal{E} of both square and shaped pulses are roughly proportional to τ2\tau^{-2}. This agrees with the observation that (i) A¯τα=1\bar{A}\tau\approx\alpha=1, (ii) |Θp(1)|2|\Theta_{p}^{(1)}|^{2} (ppp\neq p^{*}) of the square pulse is proportional to A¯2τ2\bar{A}^{2}\propto\tau^{-2}, and (iii) the dominant term of |Θp,p(2)|2|\Theta_{p,p^{\prime}}^{(2)}|^{2} of the shaped pulse (when τ|ωpωp|1\tau\gg|\omega_{p^{*}}-\omega_{p^{\prime}}|^{-1}) is proportional to (A¯2τ)2τ2(\bar{A}^{2}\tau)^{2}\propto\tau^{-2} (see Appendix B for details). As \mathcal{E} of the square and shaped pulses have the same scaling behavior with respect to τ\tau, we expect the advantage of shaped pulses when α\alpha is small to hold for all pulse lengths.

We note that, as α\alpha and τ\tau of the square pulses are varied, as evidenced in Fig. 2, \mathcal{E} is sharply suppressed at certain “sweet-spot” values of α\alpha and τ\tau, sometimes by more than an order of magnitude compared to the neighboring values. For Fig. 2(a), a likely cause of this dip for the square pulses is the cancellation between the first-order and the higher-order CMC contributions to the qubit population (see Appendix B.2 for details). For Fig. 2(b), the dips occur for the most part when the first-order Magnus integral Θp(1)\Theta_{p}^{(1)} in (4) evaluates to zero for non-target modes, i.e., Θp(1)=0\Theta_{p}^{(1)}=0 when ωpωp=2πl/τ\omega_{p}-\omega_{p^{*}}=2\pi l/\tau for arbitrary integer ll. We note that the fact that some of the square pulses have \mathcal{E}’s that fall below those of shaped pulses indicates that similar phenomena might be occurring for high-order contributions to CMC error as well. Shaped pulses on the other hand do not have these dips due to the multiple frequency components of the pulse, as the different components are unlikely to be naturally orchestrated to accidentally cancel higher-order Magnus integrals at a given τ\tau.

While it may be desirable to choose α\alpha and τ\tau at these “sweet spot” values for our mode characterization, in practice, we cannot perform a priori calculations to find the sweet spots, as the mode parameters are yet to be characterized and subject to drifts during the experiment. Thus, actively nulling the first-order contribution of the non-target modes by using a shaped pulse is a more reliable method of suppressing \mathcal{E}, and thereby increasing the accuracy of ηp\eta_{p} estimation.

We further anticipate the shaped pulses to outperform the square pulses in fending off the CMC error for up to about tens of qubits. Note, due to the nulling conditions whose number scale linearly in the number of ions, shaped pulses in general demand larger power requirement than square pulses. Just as in the gate pulse shaping Blümel et al. (2021), the extra power demand becomes pronounced when there are insufficient frequency components in the pulse Fourier basis near each mode frequency that needs to be nulled during the CMC suppression. Since the post-suppression CMC error in the shaped pulse is dominated by the second-order Magnus term that scales quadratically in A¯\bar{A}, too large of a power requirement can cause more harm than good. For τ100μ\tau\gtrsim 100\mus with mode frequencies within a band of 0.3\sim 0.3MHz, a typical operating condition of trapped-ion quantum computers today, we can expect a relative abundance of the number of Fourier basis components over the number of mode frequencies within the band for up to tens of ions. As reported in Appendix E, we confirm explicitly up to a seven-ion chain that the power requirements remain virtually the same between the square and shaped pulses.

V.2 Fractional population errror due to detuning

We compare in this section square pulses to shaped pulses with stabilization in the presence of detuning errors. To start, Fig. 3(a) shows the average Rabi frequencies A¯\bar{A} required for these pulses to reach |Θp(1)|=1|\Theta_{p^{*}}^{(1)}|=1 with various pulse lengths τ\tau. We see that for all pulses A¯\bar{A} is inversely proportional to τ\tau. In particular, A¯\bar{A} increases with a larger moment of stabilization. This is because, as seen from the bottom panels of Fig. 1, pulses with a larger moment of stabilization have larger off-resonant frequency components, which in turn require a larger resonant frequency component to induce the same amount of qubit population inversion, as compared to pulses with smaller off-resonant components.

We next compare the performance of square and shaped pulses with stabilization as a function of mode-frequency detuning. For simplicity, we consider a uniform detuning model ωpωp+δ\omega_{p}\rightarrow\omega_{p}+\delta for all pp (assuming |δ||ωpωp|p,p|\delta|\ll|\omega_{p}-\omega_{p^{\prime}}|\;\forall p,p^{\prime}), although the advantage of shaped pulses applies for non-uniform detuning as well. Figure 3(b) shows the magnitude of the difference between the first-order Magnus integrals with and without the detuning, |Θp(1)(δ)Θp(1)(0)||\Theta_{p^{*}}^{(1)}(\delta)-\Theta_{p^{*}}^{(1)}(0)|, as a function of δ\delta. As expected, shaped pulses with a greater moment of stabilization offers a wider detuning range over which |Θp(1)(δ)Θp(1)(0)||\Theta_{p^{*}}^{(1)}(\delta)-\Theta_{p^{*}}^{(1)}(0)| is kept within a small, pre-determined threshold.

To study the effects of the detuning error in conjunction with the CMC error, we show in Figs. 3(c) and (d) a generalized version of the fractional population error (δ)\mathcal{E}(\delta), defined according to

(δ)\displaystyle\mathcal{E}(\delta) :=|P(δ)𝒫(δ=0)|/𝒫(δ=0),\displaystyle:=|P(\delta)-\mathcal{P}(\delta=0)|/\mathcal{P}(\delta=0),

where P(δ)P(\delta) [𝒫(δ)\mathcal{P}(\delta)] is the bright-state population induced by (2) [(3)] under ωpωp+δ\omega_{p}\rightarrow\omega_{p}+\delta. Specifically for Fig. 3(c), we show (δ)\mathcal{E}(\delta) as a function of pulse length τ\tau, while fixing the detuning at 2π×1002\pi\times 100Hz. Figure 3(d) shows (δ)\mathcal{E}(\delta) as a function of δ\delta, while fixing the pulse length at τ=860μ\tau=860\mus.

Recall from Fig. 2(b) \mathcal{E}, in the absence of any detuning and resulting from the CMC, decreased as τ2\tau^{-2} for both square and shaped pulses. When δ\delta is no longer absent, an erroneous phase that accumulates over the pulse duration τ\tau emerges, which contributes to (δ)\mathcal{E}(\delta) as an increasing function of τ\tau. Therefore, there is a tug-of-war between the two competing scaling trends in τ\tau, the CMC-induced vs. the detuning-induced. There arises a minimum (δ)\mathcal{E}(\delta) for some combinations of of τ\tau and δ\delta.

Figure 3(c) shows (δ)\mathcal{E}(\delta) as a function of τ\tau, where the transient τ\tau-scaling behavior due to the tug-of-war is pronounced for moment-2 and 3 shaped pulses. Indeed, shaped pulses with higher moments of stabilization has a larger CMC error, owing to their larger power requirement (see Fig. 3(a)), hence the stronger CMC signature when τ\tau is small. While not as pronounced in our specific example cases, the transient τ\tau-scaling does appear in lower-moment shaped pulses and square pulses as well (see Appendix D), especially for small δ\delta or large A¯\bar{A}.

A tug-of-war analogy between different errors is also applicable for the observed scaling behavior of (δ){\mathcal{E}}(\delta) with respect to detuning, shown in Fig. 3(d). When δ\delta is small and CMC error dominates, moment-0 shaped pulses, and in our particular choice of parameters square pulses as well (recall the \mathcal{E} “dips” for square pulses in Fig. 2(b); different pulse lengths change the performance of square pulses dramatically), outperform the rest. This is so, since higher-moment shaped pulses have larger high-order CMC error, as they demand increased power requirement. As δ\delta increases and detuning error begins to dominate, higher-moment shaped pulses show superior performance as a result of stabilization, with the exception of moment-1 shaped pulses, which we address next.

In both Figs. 3(c) and (d), moment-1 shaped pulses tend to perform the worst in (δ)\mathcal{E}(\delta) scaling with respect to both τ\tau and δ\delta, despite that the first-order derivative of Θp(1)\Theta_{p^{*}}^{(1)} is nulled as evidenced in Fig. 3(b). The discrepancy between our objective quantity θpdet=Θp(1)(δ)Θp(1)(0)\theta_{p^{*}}^{\rm{det}}=\Theta_{p^{*}}^{(1)}(\delta)-\Theta_{p^{*}}^{(1)}(0) to null and (δ)\mathcal{E}(\delta) is indeed elaborated in detail in Appendix B.4, which explains the poor performance by moment-1 pulses. To summarize, this discrepancy results in better performance of shaped pulses with even-moment stabilization because the leading-order terms of \mathcal{E} have even order dependencies on δ\delta (quadratic, quartic, etc.). As a result, odd-moment stabilizations of θpdet\theta_{p^{*}}^{\rm{det}} do not have the intended effect of additionally stabilizing (δ)\mathcal{E}(\delta), while the stabilizations incur power increase (hence increased CMC contributions from the second-order Magnus terms). In the case of Figs. 3(c) and (d), square pulses and moment-0 shaped pulses thus mostly outperform moment-1 shaped pulses, and moment-2 pulses outperform moment-3 pulses in some regimes.

V.3 Fractional population error comparison between square and shaped pulses

Recall our goal is to identify the optimal choice of pulse parameters, such as square vs. shaped, moments of stabilization, or duration, such that the mode characterization for a given system, specified by its rough mode spacings and detuning stability, is achieved with the lowest error. To this end, Fig. 4 shows which pulses out of square and moments-KK shaped pulses, K{0,1,2,3}K\in\{0,1,2,3\}, perform the best in terms of the fractional population errors (δ)\mathcal{E}(\delta), in the presence of both CMC and detuning errors for various values of pulse length τ\tau and detuning δ\delta. As expected, shaped pulses outperform square pulses in most parameter regimes, where higher-moment shaped pulses tend to perform best for long pulse lengths unless the detuning error is minuscule (|δ|α/τ|\delta|\ll\alpha/\tau) and lower-moment pulses tend to perform best for short pulse lengths over a sizable range of detuning errors.

We refer the readers to Appendix D for a full comparison of (δ)\mathcal{E}(\delta) between all of the pulses considered in Fig. 4, beyond just the best performing one, for various values of τ\tau and δ\delta. In summary, we observe that, for a moderate amount of mode-frequency uncertainty |δ|2π×80|\delta|\lesssim 2\pi\times 80Hz and mode spacings ω2ω1=2π×68.0\omega_{2}-\omega_{1}=2\pi\times 68.0kHz and ω1ω0=2π×96.8\omega_{1}-\omega_{0}=2\pi\times 96.8kHz, moment-2 pulses of length τ1000μ\tau\geq 1000\mus achieve the smallest population error (104(δ)10310^{-4}\lesssim\mathcal{E}(\delta)\lesssim 10^{-3}) among all the pulses considered across all pulse lengths τ\tau, for the case of three ions and three modes. Our detailed findings reported in Appendix D are in line with the scaling trends summarized in Figs. 2 and 3, making an optimal choice of pulse parameters based on the uncertainty in the mode-frequency estimation (which results in unwanted detuning) and the available pulse power/duration possible, at least roughly. We expect similar scaling behaviors to hold for larger numbers of ions, which our pulse shaping tool can be readily applied to (see Appendix E).

Refer to caption
Figure 4: Color represents the pulse that achieves the smallest fractional qubit-population error (δ)\mathcal{E}(\delta), where the error is due to both the CMC and detuning, for various values of pulse duration τ\tau and mode-frequency detuning δ\delta. For each pulse duration, the candidates of pulses are square pulse and shaped pulses with moments of stabilization 0 to 3. For all pulses, α=1\alpha=1.

VI Discussion

VI.1 Efficiency of mode characterization

As much as accuracy is important in mode characterization, its efficiency also needs to be considered Kang et al. (2023a). In an experimental setup, the parameters to be characterized inevitably drift over time. Therefore, quickly and frequently updating the parameters is necessary for efficient and accurate operation of a quantum computer Maksymov et al. (2022). However, in order to estimate ηj,p\eta_{j,p} with low uncertainty, the BSB transition needs to be performed to a sufficiently large degree (by using longer pulse length τ\tau or larger average Rabi frequency A¯\bar{A}), and this needs to be repeated for sufficiently many shots. In particular, the requirement for large number of shots is a major bottleneck for efficient mode characterization, as for each shot, cooling, state preparation, and measurement need to be performed in addition to the BSB transition Kang et al. (2023a).

As an example, we consider estimating ηp\eta_{p^{*}} with uncertainty Δη\Delta\eta. Then, the difference in qubit population due to the change in ηp\eta_{p^{*}} by Δη\Delta\eta should exceed the shot noise; thus, the estimation is successful only if

d𝒫dηpΔη𝒫(1𝒫)S,\frac{d\mathcal{P}}{d\eta_{p^{*}}}\Delta\eta\geq\sqrt{\frac{\mathcal{P}(1-\mathcal{P})}{S}}, (16)

where SS is the number of shots. As briefly mentioned in Sec. IV, in the limit of small |ηpΘp(1)|=|ηp|α|\eta_{p^{*}}\Theta^{(1)}_{p^{*}}|=|\eta_{p^{*}}|\alpha, 𝒫(ηpα)2\mathcal{P}\approx\left(\eta_{p^{*}}\alpha\right)^{2}, and thus, up to a leading order in ηpα\eta_{p^{*}}\alpha, we obtain

S(2αΔη)2.S\geq\left(2\alpha\Delta\eta\right)^{-2}. (17)

Therefore, in order to achieve uncertainty Δη\Delta\eta with fewer shots, it is desirable to use a pulse of larger α\alpha, which requires larger pulse power or a longer pulse length. We remind the readers that α\alpha is fixed to 1 for the analysis in Figs. 2(b) and 3.

The limitation of the proposed pulse-shaping method is that the shaped pulses are guaranteed to achieve smaller errors than the square pulses only in the regime of α1\alpha\lesssim 1, as shown for the CMC error in Fig. 2(a). This is because for larger α\alpha, the contribution from the second- and higher-order Magnus terms to the qubit population dominates that from the first-order Magnus terms that can be silenced by pulse shaping. Therefore, the applicability of our pulse-shaping method is limited to the case where performing a large number of shots is feasible and the uncertainty in the mode-parameter estimation due to the shot noise is dominated by the inaccuracy due to the CMC and detuning errors.

A possible solution one can think of is to further silence the effect of the second-order Magnus terms by pulse shaping. A method for nulling second-order Magnus terms is proposed in Appendix C. However, based on the method, it is not feasible to silence all the second-order Magnus terms due to the positive-definiteness of the nulling condition matrices describing Θp,p(2)\Theta_{p,p^{\prime}}^{(2)} for p=pp=p^{\prime} (details in Appendix C).

Furthermore, we leave to future research whether removing the CMC and detuning errors by pulse shaping can be done without the Lamb-Dicke approximation (|ηp|1|\eta_{p}|\ll 1), similar to the works on pulse shaping for ultrafast two-qubit gates García-Ripoll et al. (2003); Steane et al. (2014); Wong-Campos et al. (2017); Schäfer et al. (2018). This potentially retains the advantage of pulse shaping for larger α\alpha and thus for an efficient mode characterization with fewer shots.

The efficiency of mode characterization can be further improved by employing parallelization; that is, probing NN values of ηj,p\eta_{j,p} simultaneously by driving BSB transition on all NN ions, each ion assigned to a different mode Kang et al. (2023a). This can reduce the number of operations required to characterize all N×NN\times N^{\prime} values of ηj,p\eta_{j,p} from O(N2)O(N^{2}) to O(N)O(N). While naïvely using the shaped pulses proposed in Sec. IV in parallel successfully removes the CMC errors up to first order in each ηj,p\eta_{j,p}, various higher-order CMC errors that are different from those analyzed above may arise. This is because the off-resonant contribution of the BSB transition that probes mode p1p_{1} to the population of mode p2p1p_{2}\neq p_{1} may interfere with the resonant contribution of the BSB transition that probes mode p2p_{2} in parallel. The resulting errors in qubit populations, as well as a method of removing such errors by modifying the pulse-shaping scheme, need to be considered when parallelization is employed in future work.

VI.2 Additional sources of errors

In this paper, we identify the CMC and the detuning of mode frequencies as sources of errors in the mode characterization and remove their effects by pulse shaping. Yet there are several other sources of errors that need to be addressed for performing accurate mode characterization.

First, while we assume that the motional mode is initially at the ground state, in practice mode pp can initially be in a state of phonon number np1n_{p}\geq 1 with small but nonzero probability due to imperfect cooling. This is important for characterizing ηp\eta_{p} using BSB transitions, as the sideband Rabi frequency is proportional to ηpnp+1\eta_{p}\sqrt{n_{p}+1}. If the temperature, or the average phonon number n¯p\bar{n}_{p}, of the motional state after cooling is known, the qubit population can be computed by taking a weighted average over the distribution of initial phonon number npn_{p}, where the distribution is straightforward to obtain from n¯p\bar{n}_{p} assuming thermal distribution. The uncertainty in n¯p\bar{n}_{p} may limit the accuracy of ηp\eta_{p} estimation. Nonetheless, using shaped pulses does not pose additional difficulties compared to using square pulses.

Second, the qubit population is also related to ηp\eta_{p}’s by the Debye-Waller effect, as briefly explained in Sec. III. In the context of trapped ions, this effect refers to reduction in the Rabi frequency due to the nonzero width of the ion’s position wavepacket, which spreads more as the ion is more strongly coupled to the motional modes Wineland and Itano (1979); Wineland et al. (1998). While this effect is at most second order in ηp\eta_{p} and therefore ignored in the linearized Hamiltonian in (2) and (3), it may have a significant impact on the qubit population especially in long ion chains, as all NN^{\prime} modes contribute to this Rabi-frequency reduction. Thus, the qubit population after the BSB transition with respect to mode pp^{*} depends on the values of all ηp\eta_{p}’s (p=1,,Np=1,\ldots,N^{\prime}).

To estimate ηp\eta_{p^{*}} accurately, the reduction factors from all NN^{\prime} modes need to be included in the model that predicts the qubit population. However, fitting the measured qubit populations to the model’s predictions with all ηp\eta_{p}’s as fitting parameters takes a prohibitively long computational time. Therefore, an iterative fitting routine, where the values of ηp\eta_{p}’s obtained from the previous iterations of fitting are used in the current iteration for estimating ηp\eta_{p^{*}}, is necessary. The algorithm for this fitting routine can be found in Appendix B of Ref. Kang et al. (2023a), which is designed for square pulses but can be straightforwardly extended to shaped pulses as well. Moreover, to briefly mention, some of the methods developed in Ref. Kang et al. (2023a) to characterize the sign of the ηp\eta_{p}’s are compatible with our proposed pulse shaping scheme.

Finally, there are various other experimental imperfections that may cause errors in ηp\eta_{p} characterization. Examples of such imperfections are miscalibration of the pulse parameters, anharmonicity of the motional modes, optical crosstalk, and fluctuations of the mode parameters over time. The magnitudes of characterization errors as a result of the above-listed experimental imperfections need to be taken into account when determining the target uncertainty Δη\Delta\eta in estimating ηp\eta_{p}. The target uncertainty Δη\Delta\eta may then be used for determining various parameters of the mode-characterization protocol, such as α\alpha, τ\tau, and SS, aiming for as efficient mode characterization as possible; see Sec. 6.1 of Ref. Kang et al. (2023a) for a detailed discussion that applies to both square and shaped pulses.

VII Outlook

We devised a pulse-shaping scheme for high-accuracy characterization of the motional-mode parameters of trapped-ion quantum computers. We have extensively tested the effectiveness of our scheme in minimizing the CMC and detuning errors via simulations on a three-ion chain. Our results showed an improvement in the accuracy of ηj,p\eta_{j,p} estimation, even when the mode frequencies were not well known.

Our pulse-shaping scheme helps address one of the many engineering challenges for building large trapped-ion quantum computers. As the number of qubits within a trap increases, an accurate and efficient mode characterization in the presence of other motional modes becomes increasingly challenging. By leveraging the degrees of freedom in pulse design for these experiments, our methodology offers one potential path forward to overcoming this bottleneck, namely, accurately probing mode parameters in the presence of model violations and experimental imperfections. One of the exciting future directions may be to explore parallel pulse shaping, where multiple ions are addressed simultaneously to characterize mode parameters more efficiently.

The accurate and efficient characterization of these mode parameters holds the key to high-fidelity trapped-ion operations, such as parallel entangling gates Bentley et al. (2020); Grzesiak et al. (2020). Briefly, these gates are implemented by illuminating each ion by custom-designed pulse shapes such that the induced interactions between the internal states of the ion qubits match those intended as quantum gates acting over multiple pairs of qubits simultaneously. Such interactions are, just as in a single two-qubit gate between two ion qubits, mediated by motional modes of the ion chain. As such, the parallel entangling gates intricately depends on the precise knowledge of the mode parameters for their high-fidelity implementation. Provided that these parallel gates have been proven to be versatile in enabling efficient quantum computing over a wide class of quantum programs Grzesiak et al. (2022); Bravyi et al. (2022), the improvement achieved in characterizing mode parameters enabled by our methodology is expected to play a crucial role in realizing efficient quantum computation.

Our methodology of applying pulse shaping and other optimal control techniques for characterization tasks may readily be adopted to be applicable for different quantum computer architectures as well. Systems that rely on spectroscopic system parameter characterization like trapped ions can likely benefit from pulse shaping in their characterization by effectively eliminating significant model violations. We hope our work, which opens a large trade space of system-level optimization for exploration and exploitation, will help boost the effort of building a large-scale quantum computer.

Acknowledgements

Q.L. and M.K. thank Kenneth R. Brown for helpful suggestions. M.K. was supported by the Army Research Office, W911NF-21-1-0005.

References

Appendix A Values of mode parameters

The motional-mode frequencies and Lamb-Dicke parameters used in the simulations of Sec. V are given in Table 1. The values are obtained from a mode-structure model of equidistantly spaced ions trapped in an HOA2.0 trap Maunz (2016).

p=0p=0 p=1p=1 p=2p=2
ωp/2π\omega_{p}/2\pi
(MHz)
2.9574 3.0542 3.1222
ηj=0,p\eta_{j=0,p} 0.0457-0.0457 0.07760.0776 0.06250.0625
ηj=1,p\eta_{j=1,p} 0.09090.0909 2.77×106-2.77\times 10^{-6} 0.06290.0629
ηj=2,p\eta_{j=2,p} 0.0457-0.0457 0.0776-0.0776 0.06250.0625
Table 1: Values of mode parameters for N=N=3N=N^{\prime}=3.

Appendix B Magnus Term Derivations

In this section, we derive the Magnus terms and analyze their scaling trends with respect to parameters such as the average Rabi frequency A¯\bar{A}, pulse length τ\tau, and detuning δp\delta_{p} of the mode frequency. We start with (1), the interaction Hamiltonian when the jj-th ion is illuminated by a laser of pulse gj(t)g_{j}(t). As we consider the case where only one ion is illuminated at a time, we omit index jj for brevity.

In order to analyze high-order terms and their scaling trends with respect to the parameters of our interest, we keep up to the second-order Taylor expansion term in expanding the exponential within (1)

exp(ipηp(a^peiωpt+a^peiωpt))X^0+X^1+X^2,\displaystyle\exp{i\sum_{p}\eta_{p}(\hat{a}_{p}e^{-i\omega_{p}t}+\hat{a}_{p}^{\dagger}e^{i\omega_{p}t})}\approx\hat{X}_{0}+\hat{X}_{1}+\hat{X}_{2}, (18)

where ηp:=ηj,p\eta_{p}:=\eta_{j,p}, and

X^0=I^,\displaystyle\hat{X}_{0}=\hat{I}, (19)
X^1(t)=ipηp(a^peiωpt+a^peiωpt),\displaystyle\hat{X}_{1}(t)=i\sum_{p}\eta_{p}(\hat{a}_{p}e^{-i\omega_{p}t}+\hat{a}_{p}^{\dagger}e^{i\omega_{p}t}), (20)
X^2(t)=12[pηp(a^peiωpt+a^peiωpt)]2\displaystyle\hat{X}_{2}(t)=-\frac{1}{2}\left[\sum_{p}\eta_{p}(\hat{a}_{p}e^{-i\omega_{p}t}+\hat{a}_{p}^{\dagger}e^{i\omega_{p}t})\right]^{2} (21)

are the zeroth-, first-, and second-order Taylor expansion terms in ηp\eta_{p}. Here, a^p\hat{a}_{p} (a^p\hat{a}^{\dagger}_{p}) is the annihilation (creation) operator on mode pp. We neglect higher-order terms X^n(t)\hat{X}_{n}(t) in the Taylor series expansion assuming either of the following two situations. For terms that have the same frequencies as the target mode, we can treat them as the Debye-Waller terms that have been discussed in detail in Sec. III of the main text. For terms that have non-zero frequency differences from the target mode frequencies, we assume that the norm of the corresponding Hamiltonian terms are much smaller than these frequency differences.

We then write out the approximated full unitary corresponding to the Hamiltonian (1) through Magnus expansion, keeping up to the second-order term

U^exp(Ω^1+Ω^2),\displaystyle\hat{U}\approx\exp{\hat{\Omega}_{1}+\hat{\Omega}_{2}},

where

Ω^1\displaystyle\hat{\Omega}_{1} =i0τ𝑑tH^I(t)iσ^+0τg(t)(1+X^1(t)+X^2(t))𝑑th.c.\displaystyle=-i\int_{0}^{\tau}dt\hat{H}_{I}(t)\approx-i\hat{\sigma}^{+}\int_{0}^{\tau}g(t)\left(1+\hat{X}_{1}(t)+\hat{X}_{2}(t)\right)dt-h.c. (22)
Ω^2\displaystyle\hat{\Omega}_{2} =120τ𝑑t10t1𝑑t2[H^I(t1),H^I(t2)]\displaystyle=-\frac{1}{2}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}\left[\hat{H}_{I}(t_{1}),\>\hat{H}_{I}(t_{2})\right]
120τdt10t1dt2[σ^+g(t1)(1+X^1(t1)+X^2(t1))+h.c.,σ^+g(t2)(1+X^1(t2)+X^2(t2))+h.c.]\displaystyle\approx-\frac{1}{2}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}\left[\hat{\sigma}^{+}g(t_{1})(1+\hat{X}_{1}(t_{1})+\hat{X}_{2}(t_{1}))+h.c.,\quad\hat{\sigma}^{+}g(t_{2})(1+\hat{X}_{1}(t_{2})+\hat{X}_{2}(t_{2}))+h.c.\right] (23)

are the first- and second-order Magnus terms. As a reminder, σ^+\hat{\sigma}^{+} (σ^\hat{\sigma}^{-}) is the raising (lowering) operator on the qubit.

Here we assume the pulse to be in the form g(t)=nAneiωntg(t)=\sum_{n}A_{n}e^{-i\omega_{n}t} over a duration of pulse length τ\tau, where ωn=2πnτ\omega_{n}=\frac{2\pi n}{\tau} is the frequency of the pulse component with Rabi frequency AnA_{n}. We consider pulses with low power, i.e., |An|ωp,ωn|A_{n}|\ll\omega_{p},\omega_{n}, such that perturbative equations apply. We are interested in the scaling trends of the qubit population and its error with respect to parameters such as α\alpha, τ\tau, and δp\delta_{p}. Thus, we analyze the contributions to the qubit population from the Taylor expansion terms up to second order (X^0\hat{X}_{0}, X^1\hat{X}_{1}, and X^2\hat{X}_{2}). We define

Ω^1(r)\displaystyle\hat{\Omega}_{1}^{(r)} =iσ^+0τg(t)X^r(t)𝑑th.c.,\displaystyle=-i\hat{\sigma}^{+}\int_{0}^{\tau}g(t)\hat{X}_{r}(t)dt-h.c., (24)
Ω^2(r,s)\displaystyle\hat{\Omega}_{2}^{(r,s)} =120τdt10t1dt2[σ^+g(t1)X^r(t1)+h.c.,σ^+g(t2)X^s(t2)+h.c.,],\displaystyle=-\frac{1}{2}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}\left[\hat{\sigma}^{+}g(t_{1})\hat{X}_{r}(t_{1})+h.c.,\>\>\hat{\sigma}^{+}g(t_{2})\hat{X}_{s}(t_{2})+h.c.,\right], (25)

such that Ω^1r=02Ω^1(r)\hat{\Omega}_{1}\approx\sum_{r=0}^{2}\hat{\Omega}_{1}^{(r)} and Ω^2r=02s=02Ω^2(r,s)\hat{\Omega}_{2}\approx\sum_{r=0}^{2}\sum_{s=0}^{2}\hat{\Omega}_{2}^{(r,s)}. In our following treatment of Ω^1\hat{\Omega}_{1} and Ω^2\hat{\Omega}_{2}, we assume that the norm of some of the terms Ω^1(r)\hat{\Omega}_{1}^{(r)} and Ω^2(r,s)\hat{\Omega}_{2}^{(r,s)} are small in comparison to the differences between the frequencies of those terms and the target mode frequency. As a result, we apply the RWA to eliminate them within the Magnus integrals. The specific terms that we rotate away are described in the subsequent sections.

B.1 First-order Magnus terms

Here we evaluate the first-order Magnus term Ω^1\hat{\Omega}_{1}. We consider pulses with low power (|An|ωp,ωn|A_{n}|\ll\omega_{p},\omega_{n}) that are near-resonant to the blue-sideband frequencies; that is, |An||A_{n}| is non-negligible only for nn such that |ωpωn|ωp|\omega_{p}-\omega_{n}|\ll\omega_{p} for some pp. Then, we obtain

0τg(t)𝑑t0\displaystyle\int_{0}^{\tau}g(t)dt\approx 0\quad Ω^1(0)0,\displaystyle\Rightarrow\quad\hat{\Omega}_{1}^{(0)}\approx 0,
0τg(t)X^2(t)𝑑t0\displaystyle\int_{0}^{\tau}g(t)\hat{X}_{2}(t)dt\approx 0\quad Ω^1(2)0,\displaystyle\Rightarrow\quad\hat{\Omega}_{1}^{(2)}\approx 0,

by the rotating wave approximation (RWA) described previously following (24) and (25). Thus, Ω^1Ω^1(1)\hat{\Omega}_{1}\approx\hat{\Omega}_{1}^{(1)}, where (taking into account that small detuning ωpωp+δp\omega_{p}\rightarrow\omega_{p}+\delta_{p} may occur to the mode frequency) Ω^1(1)\hat{\Omega}_{1}^{(1)} is given by

Ω^1(1)\displaystyle\hat{\Omega}_{1}^{(1)} =iσ^+0τg(t)X^1(t)𝑑th.c.\displaystyle=-i\hat{\sigma}^{+}\int_{0}^{\tau}g(t)\hat{X}_{1}(t)dt-h.c.
=σ^+pηpnAn0τ𝑑t(a^pei(ωp+ωn+δp)t+a^pei(ωpωn+δp)t)h.c.\displaystyle=\hat{\sigma}^{+}\sum_{p}\eta_{p}\sum_{n}A_{n}\int_{0}^{\tau}dt\left(\hat{a}_{p}e^{-i(\omega_{p}+\omega_{n}+\delta_{p})t}+\hat{a}_{p}^{\dagger}e^{i(\omega_{p}-\omega_{n}+\delta_{p})t}\right)-h.c.
σ^+pηpa^pnAn0τ𝑑tei(ωpωn+δp)th.c.\displaystyle\approx\hat{\sigma}^{+}\sum_{p}\eta_{p}\hat{a}_{p}^{\dagger}\sum_{n}A_{n}\int_{0}^{\tau}dte^{i(\omega_{p}-\omega_{n}+\delta_{p})t}-h.c.
=pηpΘp(1)σ^+a^ph.c.\displaystyle=\sum_{p}\eta_{p}\Theta_{p}^{(1)}\hat{\sigma}^{+}\hat{a}_{p}^{\dagger}-h.c. (26)

In arriving at (B.1), we used the RWA from |ηpAn||ωp+ωn+δp||\eta_{p}A_{n}|\ll|\omega_{p}+\omega_{n}+\delta_{p}| in between line 2 and 3 above and defined Θp(1):=nΘp,n(1)\Theta_{p}^{(1)}:=\sum_{n}\Theta^{(1)}_{p,n}, where

Θp,n(1):=An0τ𝑑tei(ωpωn+δp)t=2Aneiωp,nτ/2sin(ωp,nτ/2)ωp,n,\Theta^{(1)}_{p,n}:=A_{n}\int_{0}^{\tau}dte^{i(\omega_{p}-\omega_{n}+\delta_{p})t}=2A_{n}e^{i\omega_{p,n}\tau/2}\frac{\sin(\omega_{p,n}\tau/2)}{\omega_{p,n}}, (27)

and ωp,n:=ωpωn+δp\omega_{p,n}:=\omega_{p}-\omega_{n}+\delta_{p}.

We discuss how |Θp(1)||\Theta_{p}^{(1)}| scales with various parameters. First, we consider the average Rabi frequency A¯:=n|An|2\bar{A}:=\sqrt{\sum_{n}|A_{n}|^{2}}. From (27), α:=|Θp(1)|\alpha:=|\Theta_{p^{*}}^{(1)}| is proportional to the average Rabi frequency A¯\bar{A}. Indeed, when obtaining the pulse solution, α\alpha is the Rabi-frequency scaling factor that is multiplied uniformly to the components AnA_{n} of the pulse solution that is normalized such that |Θp(1)|=1|\Theta_{p^{*}}^{(1)}|=1; see (13). For ppp^{\prime}\neq p^{*}, |Θp(1)||\Theta_{p^{\prime}}^{(1)}| is proportional to A¯\bar{A} as well.

Next, we consider the pulse length τ\tau. For the case of perfectly resonant square pulse g(t)=A¯exp{iωpt+iϕ}g(t)=\bar{A}\exp\{-i\omega_{p^{*}}t+i\phi\}, we may take the limit ωp,nτ0\omega_{p^{*},n}\tau\rightarrow 0 in (27) and obtain |Θp(1)|=A¯ττ|\Theta_{p^{*}}^{(1)}|=\bar{A}\tau\propto\tau. For shaped pulses, taking the limit ωp,nτ0\omega_{p^{*},n}\tau\rightarrow 0 is not applicable for all nn with non-negligible |An||A_{n}|; however, we expect |Θp(1)|A¯τ|\Theta_{p^{*}}^{(1)}|\approx\bar{A}\tau for shaped pulses with similar spectrum of |An||A_{n}| to square pulse (see moment-0 pulse of Fig. 1 for example). For ppp^{\prime}\neq p^{*}, if we take the same limit ωp,nτ0\omega_{p^{*},n}\tau\rightarrow 0 in (27), then ωp,nωpωp\omega_{p^{\prime},n}\rightarrow\omega_{p^{\prime}}-\omega_{p^{*}}, so |Θp(1)||\Theta_{p^{\prime}}^{(1)}| oscillates with angular frequency (ωpωp)/2(\omega_{p^{\prime}}-\omega_{p^{*}})/2 as τ\tau is increased (unless |Θp(1)||\Theta_{p^{\prime}}^{(1)}| is actively suppressed to zero by pulse shaping). This is shown by the dips in Fig. 2(b) for square pulses.

Finally, we consider the detuning δp\delta_{p}. Assuming small detuning |δp|1/τ|\delta_{p}|\ll 1/\tau, Taylor expansion of (27) with respect to δp\delta_{p} includes non-zero terms for all orders of δp\delta_{p}. Thus, for a pulse with KK-th order stabilization, the leading-order contribution of δp\delta_{p} to |Θp(1)||\Theta_{p}^{(1)}| is proportional to δpK+1\delta_{p}^{K+1}, where K=0K=0 applies to square pulse or shaped pulse with no stabilization.

B.2 Second-order Magnus terms

Here we evaluate the second-order Magnus term Ω^2\hat{\Omega}_{2}. Similarly to the case of Ω^1\hat{\Omega}_{1}, we find that Ω^2(r,s)\hat{\Omega}_{2}^{(r,s)} is negligibly small for (r,s)=(0,0)(r,s)=(0,0), (0,1)(0,1), (1,0)(1,0), (0,2)(0,2), and (2,0)(2,0) by the the same RWA as described after (24) and (25). Thus, up to leading order, Ω^2Ω^2(1,1)\hat{\Omega}_{2}\approx\hat{\Omega}_{2}^{(1,1)}, where, in the presence of detuning ωpωp+δp\omega_{p}\rightarrow\omega_{p}+\delta_{p},

Ω^2(1,1)\displaystyle\hat{\Omega}_{2}^{(1,1)} =120τdt10t1dt2[iσ^+g(t1)pηp(a^pei(ωp+δp)t1+a^pei(ωp+δp)t1)+h.c.,\displaystyle=-\frac{1}{2}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}\Big{[}i\hat{\sigma}^{+}g(t_{1})\sum_{p}\eta_{p}(\hat{a}_{p}e^{-i(\omega_{p}+\delta_{p})t_{1}}+\hat{a}_{p}^{\dagger}e^{i(\omega_{p}+\delta_{p})t_{1}})+h.c.,
iσ^+g(t2)pηp(a^pei(ωp+δp)t2+a^pei(ωp+δp)t2)+h.c.]\displaystyle\quad\quad\quad\quad\quad\quad\quad\quad\quad\quad i\hat{\sigma}^{+}g(t_{2})\sum_{p^{\prime}}\eta_{p^{\prime}}(\hat{a}_{p^{\prime}}e^{-i(\omega_{p^{\prime}}+\delta_{p^{\prime}})t_{2}}+\hat{a}_{p^{\prime}}^{\dagger}e^{i(\omega_{p^{\prime}}+\delta_{p^{\prime}})t_{2}})+h.c.\Big{]}
=12p,pηpηpn,nAnAn0τ𝑑t10t1𝑑t2eiωp,nt1eiωp,nt2(σ^za^pa^p+σ^σ^+δp,p)h.c.\displaystyle=\frac{1}{2}\sum_{p,p^{\prime}}\eta_{p}\eta_{p^{\prime}}\sum_{n,n^{\prime}}A_{n}A_{n^{\prime}}^{*}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}e^{i\omega_{p,n}t_{1}}e^{-i\omega_{p^{\prime},n^{\prime}}t_{2}}(\hat{\sigma}^{z}\hat{a}_{p}^{\dagger}\hat{a}_{p^{\prime}}+\hat{\sigma}^{-}\hat{\sigma}^{+}\delta_{p,p^{\prime}})-h.c.
=p,pηpηpΘp,p(2)(σ^za^pa^p+σ^σ^+δp,p)h.c.\displaystyle=\sum_{p,p^{\prime}}\eta_{p}\eta_{p^{\prime}}\Theta_{p,p^{\prime}}^{(2)}(\hat{\sigma}^{z}\hat{a}_{p}^{\dagger}\hat{a}_{p^{\prime}}+\hat{\sigma}^{-}\hat{\sigma}^{+}\delta_{p,p^{\prime}})-h.c. (28)

Here, σ^z\hat{\sigma}^{z} is the Pauli-Z operator on the qubit, δp,p\delta_{p,p^{\prime}} is the Kronecker delta symbol, and Θp,p(2):=n,nΘp,p,n,n(2)\Theta_{p,p^{\prime}}^{(2)}:=\sum_{n,n^{\prime}}\Theta_{p,p^{\prime},n,n^{\prime}}^{(2)} where

Θp,p,n,n(2)\displaystyle\Theta_{p,p^{\prime},n,n^{\prime}}^{(2)} :=AnAn0τ𝑑t10t1𝑑t2eiωp,nt1eiωp,nt2\displaystyle:=A_{n}A_{n^{\prime}}^{*}\int_{0}^{\tau}dt_{1}\int_{0}^{t_{1}}dt_{2}e^{i\omega_{p,n}t_{1}}e^{-i\omega_{p^{\prime},n^{\prime}}t_{2}}
=AnAn2ωp,nωp,n(ωp,nωp,n)(ωp,nωp,nei(ωp,nωp,n)τ+(ωp,nωp,n)eiωp,nτ).\displaystyle=\frac{A_{n}A_{n^{\prime}}^{*}}{2\omega_{p,n}\omega_{p^{\prime},n^{\prime}}(\omega_{p,n}-\omega_{p^{\prime},n^{\prime}})}\left(\omega_{p^{\prime},n^{\prime}}-\omega_{p,n}e^{i(\omega_{p,n}-\omega_{p^{\prime},n^{\prime}})\tau}+(\omega_{p,n}-\omega_{p^{\prime},n^{\prime}})e^{i\omega_{p,n}\tau}\right). (29)

With all other parameters fixed, |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| is proportional to A¯2\bar{A}^{2} as Θp,p,n,n(2)AnAn\Theta_{p,p^{\prime},n,n^{\prime}}^{(2)}\propto A_{n}A^{*}_{n^{\prime}}. This Θp,p(2)\Theta_{p,p^{\prime}}^{(2)} [(p,p)(p,p)(p,p^{\prime})\neq(p^{*},p^{*})] is the second-order contribution to the CMC error for square pulses. Note that the first-order contribution Θp(1)\Theta_{p^{\prime}}^{(1)} (ppp^{\prime}\neq p^{*}) is proportional to A¯\bar{A}. This explains the dip in the population-error curve for square pulses in Fig. 2(a). As αA¯\alpha\propto\bar{A} is increased from a small value (with fixed τ\tau), |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| is initially smaller than |Θp(1)||\Theta_{p^{\prime}}^{(1)}| but grows faster. At the point where the magnitude of |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| roughly matches |Θp(1)||\Theta_{p^{\prime}}^{(1)}|, the effects of first- and second-order CMC to the population error may cancel each other out, which, as we pointed out in the main text, is a likely cause of the dip for square pulses in Fig. 2(a). On the other hand, for shaped pulses, Θp,p(2)\Theta_{p,p^{\prime}}^{(2)} is the leading-order contribution to the CMC error, as |Θp(1)||\Theta_{p^{\prime}}^{(1)}| is suppressed to zero for all ppp^{\prime}\neq p^{*}.

The scaling behavior of |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| with respect to τ\tau is rather complicated. We find three categories of mode pairs (p,p)(p,p^{\prime}) such that the pair(s) in the same category exhibit similar scaling behavior: (i) (p=p,pp)(p=p^{*},p^{\prime}\neq p^{*}) or (pp,p=p)(p\neq p^{*},p^{\prime}=p^{*}) or (p,p=pp)(p,p^{\prime}=p\neq p^{*}), (ii) (p=p,p=p)(p=p^{*},p^{\prime}=p^{*}), and (iii) (pp,pp)(p\neq p^{*},p^{\prime}\neq p^{*}) where ppp\neq p^{\prime}.

First, consider the case where p=pp=p^{*} and ppp^{\prime}\neq p^{*}. Similarly to the first-order Magnus integral above, we may take the limit ωp,nτ0\omega_{p^{*},n}\tau\rightarrow 0, which is valid for square pulse and shaped pulses of similar spectrum to square pulse. This leads to

Θp,p,n,n(2)iAnAn(τ2ωp,neiωp,nτ/2sin(ωp,nτ/2)ωp,n2).\Theta_{p^{*},p^{\prime},n,n^{\prime}}^{(2)}\rightarrow iA_{n}A^{*}_{n^{\prime}}\left(\frac{\tau}{2\omega_{p^{\prime},n^{\prime}}}-e^{-i\omega_{p^{\prime},n^{\prime}}\tau/2}\frac{\sin(\omega_{p^{\prime},n^{\prime}}\tau/2)}{\omega_{p^{\prime},n^{\prime}}^{2}}\right). (30)

It is reasonable to consider pulse lengths that are much longer than the inverse of the spacing between the mode frequencies (albeit much shorter than the inverse of the mode-frequency value). In such case, for the types of pulses considered here, τ|ωp,n|1\tau\gg|\omega_{p^{\prime},n^{\prime}}|^{-1} for all nn^{\prime} such that |An||A_{n^{\prime}}| is non-negligible. Then, the first term, which is proportional to τ\tau, dominates the second term. Thus, for the types of pulses and the regime of pulse lengths considered here, |Θp,p(2)||\Theta_{p^{*},p^{\prime}}^{(2)}| is roughly proportional to τ\tau. Similar calculations show that |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| is roughly proportional to τ\tau when ppp\neq p^{*}, p=pp^{\prime}=p^{*} and p=ppp=p^{\prime}\neq p^{*} as well.

Second, consider p=p=pp=p^{\prime}=p^{*}. Then, from (30), we take the limit ωp,nτ0\omega_{p^{\prime},n^{\prime}}\tau\rightarrow 0 again and obtain

Θp,p,n,n(2)eiωp,nτ/4AnAnτ24.\Theta_{p^{*},p^{*},n,n^{\prime}}^{(2)}\rightarrow-e^{-i\omega_{p^{\prime},n^{\prime}}\tau/4}A_{n}A^{*}_{n^{\prime}}\frac{\tau^{2}}{4}.

Thus, |Θp,p(2)||\Theta_{p^{*},p^{*}}^{(2)}| is roughly proportional to τ2\tau^{2}.

Third, consider ppp\neq p^{*} and ppp^{\prime}\neq p^{*} where ppp\neq p^{\prime}. In such case, for all nn and nn^{\prime} such that |An||A_{n}| and |An||A_{n^{\prime}}| are both non-negligible, ωp,n\omega_{p,n}, ωp,n\omega_{p^{\prime},n^{\prime}}, and ωp,nωp,n\omega_{p,n}-\omega_{p^{\prime},n^{\prime}} in (B.2) are all nonzero. Thus, as τ\tau is increased, we expect from (B.2) that |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| oscillates with a roughly constant amplitude (τ0\propto\tau^{0}).

Figure 5 plots the values of |ηpηpΘp,p(2)||\eta_{p}\eta_{p^{\prime}}\Theta_{p,p^{\prime}}^{(2)}| of the moment-0 shaped pulses targeting mode p=2p^{*}=2 for various pulse lengths. We emphasize that α\alpha is fixed to 1 in these plots. As αA¯τ\alpha\approx\bar{A}\tau for moment-0 shaped pulses (see Appendix B.1), the proportionality to τβ\tau^{\beta} when A¯\bar{A} is fixed shows up as the proportionality to τβ2\tau^{\beta-2} in these plots, where the additional proportionality to τ2\tau^{-2} comes from |Θp,p(2)|A¯2|\Theta_{p,p^{\prime}}^{(2)}|\propto\bar{A}^{2}. As expected from the above discussion, with fixed α\alpha, |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| is roughly proportional to τβ2\tau^{\beta-2} where the closest integer to β\beta is 2 for (p,p)=(2,2)(p,p^{\prime})=(2,2), 0 for (p,p)=(0,1)(p,p^{\prime})=(0,1) and (1,0)(1,0), and 1 for all other (p,p)(p,p^{\prime}). Excluding Θ2,2(2)\Theta^{(2)}_{2,2} as it does not contribute to the CMC error, the largest second-order contribution to the CMC error comes from Θ2,1(2)\Theta^{(2)}_{2,1}, whose magnitude is roughly proportional to τβ2=τ0.841\tau^{\beta-2}=\tau^{-0.841}. As explained above for the case where p=pp=p^{*} and ppp^{\prime}\neq p^{*}, the value of β\beta is reasonably close to 1.

Refer to caption
Figure 5: Scaling trends of the second-order Magnus integrals |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| (multiplied by |ηpηp||\eta_{p}\eta_{p^{\prime}}|) with respect to the pulse length τ\tau, for various mode pairs (p,p)(p,p^{\prime}). Here, moment-0 shaped pulses with α=1\alpha=1 are used on a 3-ion, 3-mode chain, where mode 2 is the target mode.

Finally, we consider the scaling trend with respect to δp\delta_{p}. Similarly to Θp(1)\Theta_{p}^{(1)}, in the presence of detuning δp\delta_{p}, there are contributions to Θp,p(2)\Theta_{p,p^{\prime}}^{(2)} from all orders of δp\delta_{p}. For the pulse-shaping method in the main text, only Θp(1)\Theta_{p}^{(1)} is stabilized with respect to δp\delta_{p} and not Θp,p(2)\Theta_{p,p^{\prime}}^{(2)}. Thus, the leading-order contribution of δp\delta_{p} to |Θp,p(2)||\Theta_{p,p^{\prime}}^{(2)}| is first order (δp\propto\delta_{p}).

B.3 Mangus terms and the qubit poulation

In this subsection, we explain how the leading-order Magnus terms affect the qubit population. Combined with the previous two subsections, this completes the discussion on how the qubit population and its error scale with respect to parameters such as α\alpha, τ\tau, and δp\delta_{p}.

First, we consider the first-order Magnus term in (B.1). To leading order in ηp\eta_{p}, we may write exp(Ω^1)pexp(Ω^1,p)\exp(\hat{\Omega}_{1})\approx\prod_{p}\exp(\hat{\Omega}_{1,p}), where

Ω^1,p=ηpΘp(1)σ^+a^ph.c.\hat{\Omega}_{1,p}=\eta_{p}\Theta_{p}^{(1)}\hat{\sigma}^{+}\hat{a}_{p}^{\dagger}-h.c. (31)

Thus, the first-order contribution of mode pp to the qubit population is induced by the unitary exp(Ω^1,p)\exp(\hat{\Omega}_{1,p}), followed by projection to the qubit subspace. In this paper, we set |0,0|0,0\rangle as the initial state, where |a,b|a,b\rangle is the composite state of the qubit state (a=0,1a=0,1) and the motional Fock state (b=0,1,2,b=0,1,2,...). In such case, Ω^1,p\hat{\Omega}_{1,p} induces transition between only two states |0~:=|0,0|\tilde{0}\rangle:=|0,0\rangle and |1~:=|1,1|\tilde{1}\rangle:=|1,1\rangle. Specifically, Ω^1,p=ηpΘp(1)|1~0~|h.c.=iηp|Θp(1)|(sinφσ^x~cosφσ^y~)\hat{\Omega}_{1,p}=\eta_{p}\Theta_{p}^{(1)}|\tilde{1}\rangle\langle\tilde{0}|-h.c.=i\eta_{p}|\Theta_{p}^{(1)}|(\sin\varphi\hat{\sigma}^{\tilde{x}}-\cos\varphi\hat{\sigma}^{\tilde{y}}), where Θp(1)=|Θp(1)|eiφ\Theta_{p}^{(1)}=|\Theta_{p}^{(1)}|e^{i\varphi} and σ^x~\hat{\sigma}^{\tilde{x}} (σ^y~\hat{\sigma}^{\tilde{y}}) is the Pauli-X (Y) operator of the qubit spanned by |0~|\tilde{0}\rangle and |1~|\tilde{1}\rangle. Then, straightforward calculations show that

1~|exp(Ω^1,p)|0~=1~|exp(iηpΘp(1)(sinφσ^x~cosφσ^y~))|0~=eiφsin(ηp|Θp(1)|).\langle\tilde{1}|\exp(\hat{\Omega}_{1,p})|\tilde{0}\rangle=\langle\tilde{1}|\exp\left(i\eta_{p}|\Theta_{p}^{(1)}|(\sin\varphi\hat{\sigma}^{\tilde{x}}-\cos\varphi\hat{\sigma}^{\tilde{y}})\right)|\tilde{0}\rangle=e^{i\varphi}\sin\left(\eta_{p}|\Theta_{p}^{(1)}|\right). (32)

In the perturbative regime ηp|Θp(1)|1\eta_{p}|\Theta_{p}^{(1)}|\ll 1 p\forall p, when considering the contribution of mode pp to the qubit population, the qubit-state transition due to other modes can be ignored. Thus, we conclude that the magnitude of first-order contribution of mode pp to the qubit’s bright-state (|1|1\rangle) population is approximately given by sin2(|ηpΘp(1)|)|ηpΘp(1)|2\sin^{2}(|\eta_{p}\Theta_{p}^{(1)}|)\approx|\eta_{p}\Theta_{p}^{(1)}|^{2}. The largest contribution comes from the target mode pp^{*}, which gives the approximate bright-state population

𝒫sin2(ηp|Θp(1)|).\displaystyle\mathcal{P}\approx\sin^{2}(\eta_{p^{*}}|\Theta_{p^{*}}^{(1)}|). (33)

Next, we consider the second-order Magnus term in (28). Similarly to above, we define

Ω^2,p,p=ηpηpΘp,p(2)(σ^za^pa^p+σ^σ^+δp,p)h.c.,\hat{\Omega}_{2,p,p^{\prime}}=\eta_{p}\eta_{p^{\prime}}\Theta^{(2)}_{p,p^{\prime}}(\hat{\sigma}^{z}\hat{a}_{p}^{\dagger}\hat{a}_{p^{\prime}}+\hat{\sigma}^{-}\hat{\sigma}^{+}\delta_{p,p^{\prime}})-h.c., (34)

and as a concrete example, we analyze the contribution of

Ω^2,p,p=2iηp2Im[Θp,p(2)](σ^za^pa^p+σ^σ^+)\hat{\Omega}_{2,p^{*},p^{*}}=2i\eta_{p^{*}}^{2}\imaginary[\Theta^{(2)}_{p^{*},p^{*}}](\hat{\sigma}^{z}\hat{a}_{p^{*}}^{\dagger}\hat{a}_{p^{*}}+\hat{\sigma}^{-}\hat{\sigma}^{+}) (35)

to the qubit population, which adds perturbatively to the contribution of Ω^1,p\hat{\Omega}_{1,p^{*}}. An important observation is that in the subspace spanned by |0~|\tilde{0}\rangle and |1~|\tilde{1}\rangle, σ^za^pa^p+σ^σ^+=|0~0~||1~1~|=σ^z~\hat{\sigma}^{z}\hat{a}_{p^{*}}^{\dagger}\hat{a}_{p^{*}}+\hat{\sigma}^{-}\hat{\sigma}^{+}=|\tilde{0}\rangle\langle\tilde{0}|-|\tilde{1}\rangle\langle\tilde{1}|=\hat{\sigma}^{\tilde{z}}. Again by straightforward calculations

1~|exp(Ω^1,p+Ω^2,p,p)|0~=1~|exp(iB(sinφσ^x~cosφσ^y~)+iCσ^z~)|0~=BeiφB2+C2sinB2+C2,\displaystyle\langle\tilde{1}|\exp(\hat{\Omega}_{1,p^{*}}+\hat{\Omega}_{2,p^{*},p^{*}})|\tilde{0}\rangle=\langle\tilde{1}|\exp\left(iB(\sin\varphi\hat{\sigma}^{\tilde{x}}-\cos\varphi\hat{\sigma}^{\tilde{y}})+iC\hat{\sigma}^{\tilde{z}}\right)|\tilde{0}\rangle=\frac{Be^{i\varphi}}{\sqrt{B^{2}+C^{2}}}\sin\sqrt{B^{2}+C^{2}}, (36)

where B=ηp|Θp(1)|B=\eta_{p^{*}}|\Theta_{p^{*}}^{(1)}| and C=2ηp2Im[Θp,p(2)]C=2\eta_{p^{*}}^{2}\imaginary[\Theta_{p^{*},p^{*}}^{(2)}]. Therefore, the contribution of Ω^1,p+Ω^2,p,p\hat{\Omega}_{1,p^{*}}+\hat{\Omega}_{2,p^{*},p^{*}} to the qubit population is given by B2B2+C2sin2B2+C2\frac{B^{2}}{B^{2}+C^{2}}\sin^{2}\sqrt{B^{2}+C^{2}}, which is approximately B2C2B^{2}-C^{2} in the perturbative regime where the expansion is performed with respect to C/B1C/B\ll 1 first and then B1B\ll 1. Compared to the case where the qubit-population transition is induced only by Ω^1,p\hat{\Omega}_{1,p^{*}}, the addition of Ω^2,p,p\hat{\Omega}_{2,p^{*},p^{*}} reduces the bright-state population by C2=(Im[Θp,p(2)])2C^{2}=(\imaginary[\Theta^{(2)}_{p^{*},p^{*}}])^{2}. Other second-order Magnus terms Ω^2,p,p\hat{\Omega}_{2,p,p^{\prime}} [(p,p)(p,p)(p,p^{\prime})\neq(p^{*},p^{*})] are also expected to induce changes in the bright-state population that scale as |Θp,p(2)|2|\Theta^{(2)}_{p,p^{\prime}}|^{2}, as Ω^2,p,p\hat{\Omega}_{2,p,p^{\prime}} is proportional to either σ^z\hat{\sigma}^{z} (when ppp\neq p^{\prime}) or σ^z~\hat{\sigma}^{\tilde{z}} (when p=pp=p^{\prime}).

Combined with the analysis in Appendix B.1 and B.2, this completes the discussion on how the first- and second-order contributions to the qubit population scale with respect to parameters such as α\alpha, τ\tau, and δp\delta_{p}. For example, the scaling behaviors of =|P𝒫|/𝒫\mathcal{E}=|P-\mathcal{P}|/\mathcal{P} with respect to α\alpha and τ\tau in Fig. 2 is now fully understood. The denominator 𝒫\mathcal{P} in the |ηpα|1|\eta_{p^{*}}\alpha|\ll 1 regime is approximately given by (33) as sin2(ηpα)(ηpα)2\sin^{2}(\eta_{p^{*}}\alpha)\approx(\eta_{p^{*}}\alpha)^{2}, which is proportional to α2\alpha^{2} in Fig. 2(a) and fixed to a constant in Fig. 2(b). For the numerator |P𝒫||P-\mathcal{P}|, the leading contribution is from |Θp(1)|2|\Theta_{p^{\prime}}^{(1)}|^{2} (|Θp,p(2)|2|\Theta_{p^{*},p^{\prime}}^{(2)}|^{2}) where ppp^{\prime}\neq p^{*} for square (shaped) pulses, which is roughly proportional to A¯2τ0\bar{A}^{2}\tau^{0} (A¯4τ2\bar{A}^{4}\tau^{2}). Thus, in Fig. 2(a), for fixed τα/A¯\tau\approx\alpha/\bar{A}, \mathcal{E} scales as A¯2/α2α0\bar{A}^{2}/\alpha^{2}\propto\alpha^{0} (A¯4/α2α2\bar{A}^{4}/\alpha^{2}\propto\alpha^{2}) for square (shaped) pulses. Also, in Fig. 2(b), for fixed αA¯τ\alpha\approx\bar{A}\tau, \mathcal{E} scales as A¯2τ0τ2\bar{A}^{2}\tau^{0}\propto\tau^{-2} (A¯4τ2τ2\bar{A}^{4}\tau^{2}\propto\tau^{-2}) for square (shaped) pulses. Similar arguments can be made for the scaling with respect to δp\delta_{p}. These scaling behaviors are important to understand the regime of parameters in which shaped pulses may allow more accurate mode characterization than square pulses.

B.4 Even- vs. odd-moment stabilization

In Fig. 3(c) and (d), we observe that for integer KK and a wide range of pulse length τ\tau and detuning δ\delta, moment-2K2K pulses in general perform better than moment-(2K+1)(2K+1) pulses. For example, while Fig. 3(b) clearly shows that moment-1 pulse suppresses |Θp(1)(δ)Θp(1)(0)||\Theta_{p^{*}}^{(1)}(\delta)-\Theta_{p^{*}}^{(1)}(0)| compared to moment-0 pulse, Fig. 3(d) shows that moment-1 pulse has larger qubit-population error (δ)\mathcal{E}(\delta) than moment-0 pulse for all plotted δ\delta. This appendix provides an explanation for this phenomenon. The key understanding is that while our pulse-shaping method for stabilization can suppress |Θp(1)(δ)Θp(1)(0)||\Theta_{p}^{(1)}(\delta)-\Theta_{p}^{(1)}(0)|, this is not equivalent to suppressing ||Θp(1)(δ)|2|Θp(1)(0)|2|||\Theta_{p}^{(1)}(\delta)|^{2}-|\Theta_{p}^{(1)}(0)|^{2}|, which is more relevant for the error in qubit population that is approximately given by |ηpΘp(1)|2|\eta_{p^{*}}\Theta_{p^{*}}^{(1)}|^{2}.

For simplicity, we consider a resonant square pulse g(t)=A¯eiωpt+iϕg(t)=\bar{A}e^{-i\omega_{p^{*}}t+i\phi} as an example, and without losing generality we set ϕ=0\phi=0 as global phase of the pulse does not affect the qubit population. We evaluate Θp(1)\Theta_{p^{*}}^{(1)} as this is the dominant contribution to the qubit population. From (4), we can easily find that kΘp(1)/ωpk\partial^{k}\Theta_{p^{*}}^{(1)}/\partial\omega_{p^{*}}^{k} is real (imaginary) when kk is even (odd). In the presence of detuning ωpωp+δ\omega_{p^{*}}\rightarrow\omega_{p^{*}}+\delta, this leads to

|Θp(1)(δ)|2=(Θp(1)(0)+δ22!2Θp(1)ωp2+)2+(δΘp(1)ωp+δ33!3Θp(1)ωp3+)2,|\Theta_{p^{*}}^{(1)}(\delta)|^{2}=\left(\Theta_{p^{*}}^{(1)}(0)+\frac{\delta^{2}}{2!}\frac{\partial^{2}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{2}}+\cdots\right)^{2}+\left(\delta\frac{\partial\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}}+\frac{\delta^{3}}{3!}\frac{\partial^{3}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{3}}+\cdots\right)^{2}, (37)

where all derivatives are evaluated at δ=0\delta=0. Thus, the qubit-population error due to detuning δ\delta is proportional to

|Θp(1)(δ)|2|Θp(1)(0)|2=k=1[2(2k)!Θp(1)(0)2kΘp(1)ωp2k+l=1k12l!(2kl)!lΘp(1)ωpl2klΘp(1)ωp2kl+(1k!kΘp(1)ωpk)2]δ2k,|\Theta_{p^{*}}^{(1)}(\delta)|^{2}-|\Theta_{p^{*}}^{(1)}(0)|^{2}=\sum_{k=1}^{\infty}\left[\frac{2}{(2k)!}\Theta_{p^{*}}^{(1)}(0)\frac{\partial^{2k}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{2k}}+\sum_{l=1}^{k-1}\frac{2}{l!(2k-l)!}\frac{\partial^{l}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{l}}\frac{\partial^{2k-l}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{2k-l}}+\left(\frac{1}{k!}\frac{\partial^{k}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{k}}\right)^{2}\right]\delta^{2k}, (38)

which leads to

|Θp(1)(δ)|2|Θp(1)(0)|2=[Θp(1)(0)2Θp(1)ωp2+(Θp(1)ωp)2]δ2+𝒪(δ4)|\Theta_{p^{*}}^{(1)}(\delta)|^{2}-|\Theta_{p^{*}}^{(1)}(0)|^{2}=\left[\Theta_{p^{*}}^{(1)}(0)\frac{\partial^{2}\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}^{2}}+\left(\frac{\partial\Theta_{p^{*}}^{(1)}}{\partial\omega_{p^{*}}}\right)^{2}\right]\delta^{2}+\mathcal{O}(\delta^{4}) (39)

While (39) is derived for square pulse, we argue that it is approximately valid for shaped pulses that have similar spectrum to square pulse, such as moment-0 and 1 pulses in Fig. 1. In such case, (39) explains why moment-1 pulse does not lead to smaller (δ)\mathcal{E}(\delta) than moment-0 pulse. Moment-1 pulse only imposes Θp(1)/ωp=0\partial\Theta_{p^{*}}^{(1)}/\partial\omega_{p^{*}}=0, which removes only the second term of the right-hand-side of (39); the first term survives. Thus, the leading-order contribution of δ\delta to (δ)\mathcal{E}(\delta) is 𝒪(δ2)\mathcal{O}(\delta^{2}) for both moment-0 and moment-1 pulses. At least second-order stabilization, which imposes kΘp(1)/ωpk=0\partial^{k}\Theta_{p^{*}}^{(1)}/\partial\omega_{p^{*}}^{k}=0 for k=1k=1 and 22, is required to completely remove the 𝒪(δ2)\mathcal{O}(\delta^{2}) contribution to (δ)\mathcal{E}(\delta). As moment-1 pulses are more susceptible to the CMC than moment-0 pulses due to the larger average Rabi frequency A¯\bar{A} [see Fig. 3(a)], we expect moment-1 pulses to have larger qubit-population error than moment-0 pulses.

The higher-order terms in (38) suggest a more general claim that moment-(2K+1)(2K+1) pulse does not outperform moment-2K2K pulse in terms of smaller (δ)\mathcal{E}(\delta). Indeed, Fig. 4 shows that moment-3 pulses do not outperform moment-2 pulses for a significant range of |δ||\delta|, especially for shorter pulse lengths. However, as shown in Fig. 1, pulses with moment 2 or higher tend to have a spectrum that is substantially different from the resonant square pulse. Thus, for higher-moment pulses, 𝒪(δ2K+1)\mathcal{O}(\delta^{2K+1}) terms may arise in the right-hand-side of (38), which are completely removed by moment-(2K+1)(2K+1) pulses but not by moment-2K2K pulses. This is evidenced in the large-|δ||\delta| region of Fig. 4 where moment-3 pulses outperform moment-2 pulses. Whether moment-2 or moment-3 pulse leads to an overall better performance depends on the expected probability distribution of δ\delta and the feasible range of pulse length τ\tau.

Appendix C Nulling Second-order Magnus Integrals

To further minimize the CMC error, we describe our attempt at nulling the second-order Magnus integrals, thereby silencing the second-order Magnus terms in (28). We adopt a similar approach to the pulse-shaping scheme in the main text that nulls unwanted first-order Magnus integrals. The scheme proposed here can be used in conjunction to the pulse-shaping scheme in the main text.

Specifically, we write an Nbasis×NbasisN_{\rm{basis}}\times N_{\rm{basis}} matrix 𝐐(p,p)\mathbf{Q}^{(p,p^{\prime})} for each mode pair (p,p)(p,p)(p,p^{\prime})\neq(p^{*},p^{*}) whose element is given by

Qn,n(p,p)=Θp,p,n,n(2).Q_{n,n^{\prime}}^{(p,p^{\prime})}=\Theta^{(2)}_{p,p^{\prime},n,n^{\prime}}.

We then find the singular value decomposition of |𝐐(p,p)|2|\mathbf{Q}^{(p,p^{\prime})}|^{2} and select the set of singular vectors S(p,p)S_{(p,p^{\prime})} with singular values below a sufficiently small threshold of, for example, 101010^{-10}. The second-order Magnus integral Θp,p(2)\Theta^{(2)}_{p,p^{\prime}} is nulled by the pulse represented by a vector in S(p,p)S_{(p,p^{\prime})}. We iterate this process over all mode-pairs except (p,p)=(p,p)(p,p^{\prime})=(p^{*},p^{*}) and find the overlap 𝓢(2)\boldsymbol{\mathcal{S}}^{(2)} between the vector spaces 𝐒(p,p)\mathbf{S}_{(p,p^{\prime})} spanned by the vectors in S(p,p)S_{(p,p^{\prime})}, i.e., 𝓢(2):=p,p,(p,p)(p,p)𝐒(p,p)\boldsymbol{\mathcal{S}}^{(2)}:=\bigcap_{p,p^{\prime},(p,p^{\prime})\neq(p^{*},p^{*})}\mathbf{S}_{(p,p^{\prime})}. Finally, we find the overlap between 𝓢(1)\boldsymbol{\mathcal{S}}^{(1)} nulling Θp(1)\Theta^{(1)}_{p} as discussed in Sec. IV and 𝓢(2)\boldsymbol{\mathcal{S}}^{(2)} nulling Θp,p(2)\Theta^{(2)}_{p,p^{\prime}}, and proceed with the signal strength maximization over the set of vectors spanning the final overlapping space 𝓢(1)𝓢(2)\boldsymbol{\mathcal{S}}^{(1)}\cap\boldsymbol{\mathcal{S}}^{(2)}.

To find the overlap between two vector spaces, for example, 𝓢(1)\boldsymbol{\mathcal{S}}^{(1)} and 𝓢(2)\boldsymbol{\mathcal{S}}^{(2)}, with spanning vectors 𝒮(1)\mathcal{S}^{(1)} and 𝒮(2)\mathcal{S}^{(2)}, respectively, we find the nullspace of the enlarged matrix U=(𝒮^(1)|𝒮^(2))U=\left(\hat{\mathcal{S}}^{(1)}|-\hat{\mathcal{S}}^{(2)}\right), where 𝒮^(1)\hat{\mathcal{S}}^{(1)} (𝒮^(2)\hat{\mathcal{S}}^{(2)}) is the matrix whose columns are the vectors in 𝒮(1)\mathcal{S}^{(1)} (𝒮(2)\mathcal{S}^{(2)}). Let’s denote the vectors spanning the nullsapce of UU as niT=(ni(1)|ni(2))Tn_{i}^{T}=(n_{i}^{(1)}|\>n_{i}^{(2)})^{T}. Then, the intersection space 𝓢(1)𝓢(2)\boldsymbol{\mathcal{S}}^{(1)}\cap\boldsymbol{\mathcal{S}}^{(2)} is spanned by the vectors 𝒮^(1)ni(1)=𝒮^(2)ni(2)\hat{\mathcal{S}}^{(1)}n_{i}^{(1)}=\hat{\mathcal{S}}^{(2)}n_{i}^{(2)}.

In practice, we found that the matrix 𝐐(p,p)\mathbf{Q}^{(p,p^{\prime})} is positive-definite and does not have sufficiently small singular values when p=pp=p^{\prime}. Thus, our method above is applicable only when mode pairs (p,pp,p^{\prime}) such that ppp\neq p^{\prime} are considered. In Fig. 5, we show that for the case of a 3-ion chain and target mode p=2p^{*}=2, the largest second-order contribution to the CMC error comes from Θ2,1(2)\Theta^{(2)}_{2,1}. Thus, one might hope that additionally nulling the second-order Magnus integrals Θp,p(2)\Theta^{(2)}_{p,p^{\prime}} for ppp\neq p^{\prime} is sufficient for reducing the population error, compared to the pulse-shaping scheme in the main text that only nulls the first-order Magnus integrals. Unfortunately, it turns out that due to the increased power requirement for these additional nulling constraints, nulling Θp,p(2)\Theta^{(2)}_{p,p^{\prime}} for ppp\neq p^{\prime} results in increased magnitude of Θp,p(2)\Theta^{(2)}_{p,p^{\prime}} for p=pp=p^{\prime}, and thus no reduction in the qubit-population error. We expect similar results for all pulse lengths, as |Θp,p(2)||\Theta^{(2)}_{p^{*},p^{\prime}}| and |Θp,p(2)||\Theta^{(2)}_{p^{\prime},p^{\prime}}| (ppp^{\prime}\neq p^{*}) exhibit similar scaling behavior with respect to τ\tau, as discussed in Appendix B.2.

Appendix D Comparison of Error Landscapes

In Fig. 4, we compared the performance of square and shaped pulses with different moments of stabilization in various regimes of pulse length τ\tau and mode-frequency detuning δ\delta. Shaped pulses of different moments achieve the smallest qubit-population error (δ)\mathcal{E}(\delta) compared to other pulses in different parameter regimes. Figure 6 plots the values of (δ)\mathcal{E}(\delta), providing a full comparison between square and shaped pulses of various moments of stabilization.

Refer to caption
Figure 6: Error landscapes of shaped pulses of α=1\alpha=1 with cross-mode coupling and detuning error. The fractional error (δ)=|P(δ)𝒫(δ=0)|/𝒫(δ=0)\mathcal{E}(\delta)=|P(\delta)-\mathcal{P}(\delta=0)|/\mathcal{P}(\delta=0) is plotted on a logged color scale shared between all panels. Contour lines are plotted for fractional error of 10410^{-4} to 10110^{-1}.

We first consider the case where |δ||\delta| is very small, such that the CMC is the dominant source of error (δ)\mathcal{E}(\delta). In such case, as α\alpha is fixed and τ\tau increases, the average Rabi frequency A¯\bar{A} decreases, which results in smaller effects of CMC and thus smaller (δ)\mathcal{E}(\delta). This trend is observed in the narrow area at the horizontal center of each panel in Fig. 6 as well as in Fig. 2(b).

Next, we consider the case where |δ||\delta| is relatively large such that the detuning error dominates the CMC error. Here, an opposite trend emerges; as α\alpha is fixed and τ\tau increases, (δ)\mathcal{E}(\delta) increases. This is because as τ\tau increases, a larger phase accumulates due to the detuning over the pulse duration. This trend is observed in the left and right ends of each panel in Fig. 6 where |δ||\delta| is relatively large, as well as in Fig. 3(c).

In the intermediate regime of |δ||\delta|, effects of the CMC and detuning errors compete with each other. Given an expected range of detuning, or more specifically, the expected probability distribution of Pr(δ)\Pr(\delta), one can estimate the expected qubit-population error \langle\mathcal{E}\rangle at each pulse length τ\tau by integrating Pr(δ)(δ)\Pr(\delta)\mathcal{E}(\delta) over δ\delta. Then, the smallest \langle\mathcal{E}\rangle will be achieved at an optimal τ\tau, where a transition from CMC-dominant regime (\langle\mathcal{E}\rangle decreases as τ\tau increases) to detuning-dominant regime (\langle\mathcal{E}\rangle increases as τ\tau increases) occurs. This transition is most clearly shown in Fig. 6 for moment-2 and 3 shaped pulses and the plotted range of δ\delta, and also shown for lower-moment and square pulses when a narrower range of δ\delta (e.g., |δ|2π×0.05|\delta|\lesssim 2\pi\times 0.05 kHz) is considered. The optimal pulse length τ\tau that achieves the smallest \langle\mathcal{E}\rangle depends on the distribution Pr(δ)\Pr(\delta). This observation provides a general guideline for choosing the type of pulse and its length that enables as accurate mode characterization as possible.

Appendix E Applicability of Our Proposed Method for Longer Ion Chains

For longer ion chains, silencing the CMC effect is expected to be more challenging. As the number of motional modes increases, more nulling constraints need to be satisfied when finding the pulse solution. Also, assuming equidistantly spaced ions, the spacings between neighboring mode frequencies are typically smaller for longer ion chains, as shown in Table 2. With the more tightly-spaced motional mode frequencies, it is reasonable to expect that nulling Θp(1)\Theta_{p}^{(1)} for all ppp\neq p^{*} requires more pulse resources such as power and time duration. This brings two main concerns for the scalability of our pulse shaping scheme, namely the runtime and the power requirement. In this appendix, we address both of these concerns by solving for moment-0 shaped pulses for ion chains of length up to 7, demonstrating the scalability of our proposed pulse-shaping scheme.

NN Δ0,1\Delta_{0,1} Δ1,2\Delta_{1,2} Δ2,3\Delta_{2,3} Δ3,4\Delta_{3,4} Δ4,5\Delta_{4,5} Δ5,6\Delta_{5,6}
3 96.8 68.0
4 80.3 63.1 43.9
5 62.9 53.2 42.8 29.2
6 53.9 48.2 41.6 34.4 21.8
7 43.6 41.5 38.4 34.1 29.2 15.9
Table 2: Spacings between neighboring mode frequencies (ωp+1ωp)/2π(\omega_{p+1}-\omega_{p})/2\pi are given in units of kHz, for various numbers of ions (modes) N=NN=N^{\prime}. All values of mode parameters are obtained by numerically solving the normal modes of equidistantly spaced ions trapped by a modelled potential of an HOA2.0 trap Maunz (2016).

First, we show how the runtime for finding the pulse solution scales with the number of ions (modes) N=NN=N^{\prime}. Specifically, we report the CPU runtime of our pulse solver on an Apple M1 Max chip. Although the number of nulling constraints increases linearly with NN, we witness no increase in the runtime as NN is increased from 3 to 7, as shown in the left panel of Fig. 7. Instead, the runtime significantly increases with the pulse length τ\tau, which is proportional to the number of bases NbasisN_{\rm{basis}} used. This is because NbasisN_{\rm{basis}} determines the size of the matrix of which the nullspace vectors are calculated, which takes the longest runtime in our pulse-shaping scheme. We note that finding pulse solutions with length as long as τ=2000\tau=2000 μ\mus only takes runtime less than a minute. As the runtime does not increase with NN (at least up to 7), we conclude that the runtime is unlikely to be a bottleneck for the scalability of our pulse-shaping scheme.

Next, we discuss how the average Rabi frequency A¯\bar{A} of the shaped pulse scales with NN. Somewhat surprisingly, the average Rabi frequency of moment-0 pulse does not change significantly as the number of modes is increased from 3 to 7, as shown in the right panel of Fig. 7. At least for the simulated numbers of modes and mode-frequency values, adding the nulling constraint Θp(1)=0\Theta_{p}^{(1)}=0 for ppp\neq p^{*} does not incur additional power requirement, compared to square pulse with A¯=α/τ\bar{A}=\alpha/\tau. This is consistent with our previous observation in Fig. 3(a) that A¯\bar{A} is essentially the same for square and moment-0 pulses and increases only with larger moment of stabilization. The fact that suppressing the CMC effect is “free” in terms of power requirement makes our pulse-shaping scheme even more promising for application to longer ion chains.

Refer to caption
Figure 7: CPU runtime for pulse solver (a) and average Rabi frequency A¯\bar{A} (b) for shaped pulses of various lengths τ\tau on ion chains with various numbers of ions/modes N=NN=N^{\prime}. We solve for moment-0 pulses with α=1\alpha=1. Here we use the values of ωp\omega_{p}’s and ηj,p\eta_{j,p}’s from Appendix E of Ref. Kang et al. (2023a).