Skip to main content
Science Advances logoLink to Science Advances
. 2022 Dec 7;8(49):eabq4244. doi: 10.1126/sciadv.abq4244

Adaptive optimal control of entangled qubits

David L Goodwin 1, Pranav Singh 2,*, Mohammadali Foroozandeh 1,*
PMCID: PMC9728963  PMID: 36475803

Abstract

Developing fast, robust, and accurate methods for optimal control of quantum systems comprising interacting particles is one of the most active areas of current science. Although a valuable repository of algorithms is available for numerical applications in quantum control, the high computational cost is somewhat overlooked. Here, we present a fast and accurate optimal control algorithm for systems of interacting qubits, QOALA (quantum optimal control by adaptive low-cost algorithm), which is predicted to offer O(M2) speedup for an M-qubit system, compared to the state-of-the-art exact methods, without compromising overall accuracy of the optimal solution. The method is general and compatible with diverse Hamiltonian structures. The proposed approach uses inexpensive low-accuracy approximations of propagators far from the optimum, adaptively switching to higher accuracy, higher-cost propagators when approaching the optimum. In addition, the utilization of analytical Lie algebraic derivatives that do not require computationally expensive matrix exponential brings even better performance.


QOALA offers fast optimal control of entangled qubits by adaptive combination of low-cost and high-accuracy solvers. 

INTRODUCTION

Driving quantum spins systems to a desired target state via optimal control theory (1) has been widely applied to a range of areas including nuclear magnetic resonance (NMR) (2, 3), magnetic resonance imaging (4, 5), electron paramagnetic resonance (6, 7), quantum error correction and quantum information registers (8, 9), cold atoms (10, 11), terahertz technologies (12, 13), control of trapped ions (14, 15), and nitrogen vacancy centers in diamond (16, 17). Along with applications in measurement science, algorithmic and numerical developments of optimal control methods remain active and challenging, with examples including geometric (18, 19) and adiabatic (20, 21) optimal control, GRAPE (gradient ascent pulse engineering) (22, 23) and Krotov (24, 25) algorithms, tensor product approach for large quantum systems (26), and optimal control over approximate control landscapes (27).

A crucial ingredient in these optimal control applications is a numerical method for computing the dynamics of spin systems, which is used for computing the objective function at each iteration of an optimization algorithm. A common feature in most numerical methods is that a uniformly and highly accurate method is used throughout the optimization process when, for the most substantial part, the optimization cannot benefit from the provided accuracy and hence suffers from the computational burden without much gain. This problem becomes more evident and cumbersome, especially in the context of large, multiparticle systems, and therefore more important to address.

Here, we present a general and highly flexible approach for solving optimal control problems for systems of entangled qubits in a computationally efficient manner without sacrificing the desired accuracy. In an optimization process, computationally inexpensive methods for computing spin dynamics can be used far from the optimum, where loss of accuracy is less crucial and where the most iterations in a numerical optimization routine are often spent. Conversely, high-accuracy methods should only be used for computing the dynamics of quantum systems close to the optimum when high fidelity is achievable and desired. This adaptive optimal control method, QOALA (quantum optimal control by adaptive low-cost algorithm), uses a set of approximate propagators that are designed to allow variable degrees of trade-off between accuracy and computational expense and achieves significant speedup in practice. We elucidate the potential speedup of QOALA with the concrete example of a class of numerical methods called propagator splittings. However, the overall framework developed here is flexible enough to incorporate any combination of numerical methods with different cost and accuracy trade-offs.

This paper is structured as follows: In the “Formulation of optimal control problem,” “Termination criteria,” and “The adaptive procedure” sections, a brief and general theory of optimal control is presented, and the concept of adaptive approach is introduced. In the “QOALA with propagator splitting” section, the ingredients of the QOALA method including the Hamiltonian structure, propagator splitting, and computation of derivatives are presented, along with potential benchmarking strategies. Lastly, in the “Numerical demonstrations” section, demonstrations of the proposed method are presented in the context of NMR using a range of examples including state transfers and swap gates on two-, three-, and four-spin systems. In each case, the convergence and wall-clock time of the method are compared to methods (2830) available via the versatile software package Spinach (31). It is demonstrated that the proposed adaptive framework consistently outperforms available methods. Relative speedup of QOALA compared to an exact method is shown in Fig. 1.

Fig. 1. Speedup of QOALA state transfer optimal control problems.

Fig. 1.

Speedup in wall-clock time achieved by using the QOALA method when compared to an exact method for state transfer optimal control problems. Smooth, thick lines are a polynomial fit to the thin lines. The inset plot shows the expected speedup, per qubit, for different fidelities from 90% (top line) to 99.9999% (bottom line).

RESULTS

Formulation of optimal control problem

The state of a system with M spins at time t is described by a density matrix ρ(t), and its dynamics are governed by the Liouville–von Neumann equation

ρ(t)t=iH(t)ρ(t),ρ(t0)=ρ0 (1)

where ρ0 is the initial state of the system at time t0, and H=1HH1 is the time-dependent Hamiltonian superoperator of the system. The solution of Eq. 1 can be expressed as

ρ(t)=U(t)ρ(0) (2)

Formally, the propagator U(t) is a time-ordered exponential of iH denoted as

U(t)=Tei0tH(t)dt (3)

In optimal control applications, the Hamiltonian, H(t), depends on some control parameters, θ, and optimal choices of these parameters are sought, which can either (i) drive the state of the system ρ(T) at a specified time T to a desirable target ϱ or (ii) ensure that the propagator U(T) implements a desirable propagator Utarget. To highlight the dependence on θ, we often write H(t; θ), U(t; θ), and ρ(t; θ) instead of H(t), U(t), and ρ(t), respectively, where normally, t ∈ [0, T]. Further, we assume that H(t; θ) and U(t; θ) are represented by N × N matrices.

The optimal control problem is expressed in terms of maximizing an objective function

F[θ)=f(U(T;θ)] (4)

where f is a continuously differentiable real-valued functional of propagator matrices, i.e.,

fC(CN×N;R) (5)

Here, we are particularly concerned with cases where the value of the objective at the optimal parameters

θ=argmaxθF(θ) (6)

is known a priori. Without loss of generality, we assume that, after suitable scaling of f, the objective F is able to achieve the maximum possible value of 1

F(θ)=1 (7)

A large class of objective functions F of this form that appear in the context of optimal control of spins and gate design are fidelity functions. For instance

f(X)=Re[Tr(ϱXρ0)] (8)

leads to the fidelity functional

F(θ)=Re{Tr[ϱU(T;θ)ρ0]}=Re{Tr[ϱρ(T;θ)]}[0,1] (9)

which measures the overlap of the quantum state ρ(T; θ) at a specified time t = T, with a target state ϱ. Here, both ρ0 and ϱ are assumed to be improper [i.e., trace-free, Tr(ρ) = 0], normalized (‖ρ‖2 = 1), and Hermitian (ρ = ρ) density matrices. Functionals such as Eq. 8, where an initial state ρ0 appears, lead to fidelity functions that are used in the context of state-to-state transfers, i.e., case (i).

Here, normalization is only assumed so that value at the optima is 1, i.e., to satisfy Eq. 9. Note that the requirement of trace-free density matrices only applies to the fidelity functional described in Eq. 9, and the overall approach applies equally to fidelity functions of proper density matrices (i.e., non–trace-free density matrices).

The functional

f(X)=Re[Tr(UtargetX)] (10)

leads to the fidelity

F(θ)=Re{Tr[UtargetU(T;θ)]} (11)

which does not depend on initial state ρ0 and can be used where an effective design of a specified propagator Utarget (a desired unitary gate, for instance) is required, i.e., case (ii). Note that, instead of working with the real value of the trace in Eqs. 8 and 10, i.e., applying the function Re( · ), we can also apply any other continuously differentiable function, e.g., absolute value squared, ∣ · ∣2.

Fidelity functions measure the similarity between mixed quantum states. A very wide range of fidelity functions exist, among them notably the Uhlmann-Jozsa fidelity (32), which satisfy the fidelity axioms to different extents. We refer the reader to (33) for a more detailed discussion of the appropriateness of various fidelity measures. For the purposes of this manuscript, however, all objective functions F satisfying Eqs. 4 to 7 will be considered valid fidelity functions that can be maximized using the proposed approach.

The fidelity functions can be maximized using gradient-based optimization schemes, where one needs the gradient of the fidelity function F. We compute the gradient using the chain rule

F(θ)θ=Df[U(T;θ)]U(T;θ)θ (12)

which further requires computation of the gradient of the propagator U(T; θ). Here, Df(X) is the Fréchet derivative of f at X, which acts linearly on Y, and Df(X)Y quantifies the rate of change in the direction Y. Equation 12 can be generalized further to use Gateaux derivatives (or directional derivatives) (34, 35), where instead of Df(X)Y, we write Df(X; Y) or DYf(X).

For instance, the action of the Fréchet derivative of the functional in Eq. 8 is

Df(X)Y=Re[Tr(ϱYρ0)]

so that the gradient of the fidelity Eq. 9 is

F(θ)θ=Re[Tr(ϱU(T;θ)θρ0)]=f(U(T;θ)θ) (13)

The exact propagator U(T; θ) (and hence its derivatives) are not available, since an analytical solution of Eq. 3 is not available except in very specialized and restrictive circumstances. Instead, in practice, we rely on numerical methods for solving Eq. 3.

We assume that a family of numerical solvers S(1), S(2), …, S(L) to approximate the propagator U(T; θ) is available and arranged in increasing accuracy and cost, i.e., we assume that the solver S(+1) is more accurate and computationally more expensive than $S()$. Here, $S()$ is a (θ-dependent) linear map from the initial state ρ0 to the state at time T

ρ()(T;θ)=S()(θ)ρ0

and it produces an approximation $ρ()$(T; θ) to ρ(T; θ), the true solution of Eq. 1.

The use of a particular propagator $S()$ naturally leads to the computation of an approximate value of the fidelity function

F()(θ):=f[S()(θ)]f[U(T;θ)]=F(θ)

When a range of numerical solvers with different cost and accuracy trade-offs are available, a natural question to ask is: What is the best choice of solver? On the one hand, the most inexpensive solver S(1) makes the optimization fast. However, it also leads to a less accurate approximation to the fidelity, F(1)(θ). This becomes particularly important in applications where high fidelities (approaching 1) are feasible and desired, and using low-accuracy approximations limits the fidelity achievable. In such cases, the most accurate solver S(L) seems appealing. However, such a solver typically comes with a high computational cost. The use of such an accurate but costly solver seems less justified in the initial stages of optimization where the objective is very far from the optimal value.

Here, we propose an adaptive procedure where inexpensive solvers with low accuracy are used far from the optimum, and high accuracy solvers with large computational costs are used only closer to the optimum θ*. The framework requires the following ingredients: (i) a set of numerical solvers S(1), S(2), …, S(L) with different cost and accuracy trade-offs, (ii) a method for computing gradients of these solvers with respect to θ for approximation of the fidelity gradient Eq. 12, and (iii) a low-cost, adaptive strategy to switch from a solver $S()$ to a more accurate solver $S(+1)$, which includes an error estimation of the computed fidelity $F()$ and a measure of proximity to the optimum θ*.

Termination criteria

In theory, a nonlinear optimization process is terminated when the distance of the jth iterate θ(j) from the optimum θ becomes sufficiently small. In practice, however, because θ is not available a priori, we estimate‖θ − θ(j−1)‖ by ‖θ(j) − θ(j−1)‖ and terminate iterations when

θ(j)θ(j1)tolθ (14)

for some user-defined tolerance tolθ.

Another criterion is motivated by the fact that, at critical points (including, but not limited to, the optimum), the gradient vanishes, e.g., ∇θF) = 0. Again, some user-defined tolerance tolg is used to asses this criterion as

θF[θ(j)]tolg (15)

The last criterion to consider is the difference of the value of the objective F at the previous iterate θ(j − 1) from the optimal value F(θ)

F(θ)F[θ(j)] (16)

However, we know that when a system is fully controllable, given a set of parameters, a fidelity of 1 can be achieved, i.e., F) = 1, and therefore, for some user-defined tolerance tolF

1F[θ(j)]tolF (17)

can be used alongside Eqs. 14 and 15 as a termination criterion. Note that even if we do not know whether a fidelity of 1 is achievable in a particular application, in quantum optimal control, we are guaranteed that F ≤ 1 (36) for suitably normalized initial and target states. Thus, Eq. 17 does not lead to unnecessarily early termination and should be used alongside Eqs. 14 and 15.

The adaptive procedure

An additional and important aspect in an adaptive process is the numerical error in the approximation of the objective F. We can, at best, rely on F(L), generated using the most accurate numerical solver S(L) available to us, but we would like to use the least expensive solvers S(1), wherever possible. Here, we consider the true fidelity F(j)], a fidelity measure that would results from exact calculation methods, and $F()$(j)], a fidelity when the numerical solver $S()$ is being used in the jth iteration. For ease of notation, we have suppressed the dependence on the parameters θ in this section. Using Eqs. 16 and 17, we can construct a general system of inequalities for the adaptive procedure

1F1F()+F()F(1+κF)1F()tolF (18)

where κF ∈ (0,1) is a user-defined parameter. This system of inequalities enforces the termination criteria such that

1F()tolF1+κF (19)

and ensures that

F()FκF1F() (20)

The true fidelity also satisfies the termination criterion Eq. 17. Note that κF in Eq. 20 guarantees that at all times, during the optimization procedure, we keep the numerical error several times smaller than ∣1 − $F()$, which measures the distance from optimal value [assuming F) = 1].

As we approach the optimal value, we need to use more accurate solvers. When Eq. 20 is violated, the optimizer switches to a more accurate solver $S(+1)$. From the left side of Eq. 20, the error of the fidelity approximation $F()$ using the solver $S()$ should be computed

ε():=∣F()F

Because the true fidelity F is not available, we use a more accurate scheme for approximating F

ε(1,2):=|F(1)F(2)|=1Tr{[ρ(1)]ρ(2)},2>1

where $ρ()$ = $ρ()$(tf ; θ) = $S()$0; θ). The most inexpensive estimate is given by

ε(,+1):=∣F()F(+1) (21)

The computation of $ε(,+1)$ as in Eq. 21 involves both $S()$ and $S(+1)$ and therefore is more than twice as expensive as using $S()$ alone. A simple way to mitigate this problem is to only make the decision to switch from $S()$ to $S(+1)$ once every 5 to 10 iterations, which reduces the overall burden of computing $ε(,+1)$. However, the gap between tests should not be too large to avoid the fidelity deviating from the true fidelity. Although other methods like defect-based error estimators (37) can provide a highly accurate estimate of the error in $S(1)$ without the use of a more accurate scheme $S(2)(2>1)$ and can be easily incorporated in our framework, as our current application does not require a very high accuracy of error estimation, we restrict the present implementation to the estimator presented in Eq. 21.

QOALA with propagator splitting

We start with presenting the total Hamiltonian in terms of interaction (Hin) and single-spin (Hss) sub-Hamiltonians

H=Hss+Hin (22)

Therefore −iδtH = A+B such that

A=iδtHin,B=iδtHss (23)

where δt is a small change in t, derived from the differential in Eq. 3.

The Hamiltonian for an isolated (noninteracting) spin can be written as

h=aσx+bσy+cσz (24)

where σα, α ∈ {x, y, z} are Pauli matrices for spin 12, (or Pauli matrices equivalent for spins >12). For M spins, a general form of Hss can expressed as

Hss=k=1M11Mktimeshk11k1times=[k=1Mhk] (25)

Any other parts of the Hamiltonian, e.g., interactions, can also be included in Hin. Thanks to utilization of superoperator formalism (Liouville space) in Eq. 1, Hin can contain additional terms such as decoherence via Lindblad or Redfield equations. While exp (A) can be computed once before the optimization due to properties of the Kronecker sum, exp (B) can be expressed as

exp(B)=exp(iδth1)exp(iδth2)exp(iδthM) (26)

These decomposition and separation play a key role in the mechanism of the proposed method. In principle, one can use any set of solvers for the approximation of the propagator, ordered in ascending accuracy and cost. In this work, we restrict our attention to a range of splitting methods, which are numerical solvers that approximate eA+B in terms of products of eA and eB. The idea of approximating a propagator using splitting techniques is well explored in the literature (3844). Propagator splittings of arbitrarily high-order accuracy can be derived using techniques such as Baker-Campbell-Hausdorff formula (45), Zassenhaus splitting (46), Magnus expansion (47), and their combinations. In what follows, a specified solver using a splitting method of order p, having an accuracy Otp), will be denoted with a subscript Sp.

Moreover, any splitting method Sp can be combined with Trotterization (38), which divides a small time slice of duration δt into q equal, smaller, time slices of durations δtq for improved numerical accuracy, to generate a larger group of solvers

Sp,q(δt)=[Sp(δtq)]q+O(δtp+1qp+1) (27)

where the Trotter number q is now also included as a subscript in the solver, Sp,q. Splitting methods used as solvers in the present work are summarized in Table 1, with a schematic diagram outlining second-order splitting, p = 2, with Trotter number q = 3 shown in Fig. 2.

Table 1. Summary of Trotterized splitting methods as solvers to approximate eA+B.

A pictorial representation of S2,3 is shown in Fig. 2. The computational cost, Ocost, is of a forward time propagation to obtain U(T; θ) for a fidelity calculation in Eq. 4.

S Formula O acc. O cost Reference
S 1, q (e1qAe1qB)q δtq 2q (38)
S 2, q (e12qAe1qBe12qA)q δt2q2 2q + 1 (39, 40)
S 3, q (ea¯1qAeb1qBea¯2qAeb2qBea2qAeb1qBea1qA)q δt3q3 6q + 1 (44)*
S 4, q (ea1qAeb1qBea2qAeb2qBea3qAeb3qBea4qAeb3qBea3qAeb2qBea2qAeb1qBea1qA)q δt4q4 12q + 1 (41) †

*a1=13126i59263,a2=2563+i5592126,b1=310,andb2=25a1=0.0792036964311957,b1=0.209515106613362

a2=0.353172906049774,b2=0.143851773179818a3=0.0420650803577195,b3=12b1b2,anda4=12(a1+a2+a3)

Fig. 2. Pictorial schematics of time propagator splitting and Trotterization.

Fig. 2.

A schematic diagram of a coupled two-qubit system, an angle-axis representation of ESCALADE (efficient spin control using analytical Lie algebraic derivatives) (49), a pictorial representation of second-order operator splitting, and Trotterization of time slices with q = 3. This corresponds to S2,3 in Table 1. The final image shows a Trotterized, split operator, time propagation with the leftmost and rightmost split coupling of the operator splitting method, allowable for S2,q, S3,q, and S4,q in Table 1, combined into one exponential.

The accuracy of each solver is known, and since the dimensions of the Hamiltonian do not change in the course of the optimization, we can consider the number of matrix-vector multiplications as a measure for cost. Using these known attributed accuracy and cost, we can obtain a generic graph of cost versus accuracy for our set of solvers (Fig. 3).

Fig. 3. Graph showing the computational cost of different Trotterized time propagator splitting methods.

Fig. 3.

The plot shows the number of multiplications per time slice required of a fidelity and gradient calculation for a desired accuracy, for δt = 0.1 ms and four controls, as a measure of the computational cost of the set of solvers presented in Table 1; arrows and Sp,q terms represent switching points between members of the solver set.

Let us recall the definition of fidelity in Eq. 4

F(θ)=f[U(T;θ)][0,1]

which is the objective function to be minimized in the optimization.

Although the scope of the QOALA method is not limited to the GRAPE algorithm (22), here, it is presented in the context of the GRAPE method, where the time-dependent control pulses are generally presented as piecewise constant over a small time interval δt

θa,k(t)[θa,k,1θa,k,2θa,k,N]

with a ∈ {x, y} controlling the kth spin. For notational convenience, the explicit time interval dependence of θa,k,nt) has been dropped. In this context, the effective propagator over the total pulsing time duration, T = Nδt, is given by

U(T;θ)=Utot:=UNUN1U2U1,withUn=ei(δt)H(θn) (28)

where θn is a general control parameter solely affecting the nth propagator, Un, and the shorthand θn = θa,k,n is valid for any a ∈ {x, y} and k ∈ {1, …, M}. Note that for pulses that are not piecewise constant, the decomposition Eq. 28 does not hold exactly. However, similar decompositions can be obtained for arbitrary pulses using the Magnus expansion (47), for instance.

The gradient of the true fidelity, i.e., the derivative of the fidelity at every time point n with respect to a discrete control, θn, can be written as

F(θ)θn=Df(Utot)Utotθn (29)

with

Utotθn=UNUn+1UnθnUn1U1 (30)

However, because of computational costs, we never compute the true fidelity Eq. 4 or its gradient Eq. 29. The central idea presented here relies on the approximation of Un=ei(δt)H(θn) using a solver $S()$,n and of the propagator U(T; θ) = Utot by S(𝓁)

S():=S(),NS(),N1S(),2S(),1,withS(),nUn (31)

Thus, instead of Eq. 4, we compute the approximate fidelity

F()(θ)=f[S()(θ)] (32)

and the exact gradient of the approximate fidelity Eq. 32

F()(θ)θn=Df[S()(θ)]S()(θ)θn (33)

where

S()(θ)θn=S(),NS(),n+1S(),nθnS(),n1S(),1 (34)

As a concrete example of approximate solvers, $S()$, we consider the use of the splitting propagators introduced in Table 1. The nth propagator Un is approximated by a split propagator, Sp,qn) = [Spn)]q. For ease of notation, we drop the dependency on θn. Assuming an odd number of multiplications, 2P + 1, in a general solver, Sp = S2P+1S2PS2S1 (making a distinction between the solver, Sp, and one of its constituent matrix exponentials, S), and by considering that A and B appear in odd and even S terms, respectively (without loss of generality, as presented in Table 1), i.e.,

S2j=eb2jB,S2j+1=ea2j+1A (35)

and given the fact that Aθn=0, Bθn0, and [Bθn,B]0, for a general solver, Sp,q, with Trotter number q, we have

Sp,qθn=i=1q(Sp)i1Spθn(Sp)qi (36)

where, using Sp = S2P+1S2PS2S1

Spθn=j=1P[(i=2P+12j+1Si)S2jθn(i=2j11Si)] (37)

S2jθn can be computed using finite difference (48) or exact (30) methods. While finite difference approximations of the gradient are easy to program, they can also be inaccurate, expensive, and most importantly, in the present context, unstable when the underlying numerical propagator has low accuracy (49, 50). Here, taking advantage of the decomposition presented in Eq. 26, we use analytical Lie algebraic derivatives using the recent ESCALADE (efficient spin control using analytical Lie algebraic derivatives) method (49), which, in contrast to the auxiliary matrix method (29, 30, 5153), does not require the computation of an expensive matrix exponential, resulting in an additional significant speedup.

Numerical demonstrations

The state transfer problem is investigated for two different spin systems: a two-spin system, labeled system 1 in Table 2 and inset in Fig. 4D, and a three-spin system, labeled system 2 in Table 2 and inset in Fig. 4E. The two-spin and three-spin systems are both heteronuclear with 2M controls (x and y controls on each spin) and pulse B1 amplitude limited to 1 kHz.

Table 2. Spin system parameters for four different spin systems, labeled system 1 to system 3 in the first column.

The second column refers to a numeric label, k, for each spin in the system, with the isotope of that spin in the third column. The resonance offset (chemical shift), Ωk, is shown for each spin in hertz in the fourth column. Coupling, Jjk, between different spins, labeled j and k, is shown as a list in the fifth column in hertz. The static magnetic field, B0, is shown in the sixth column, and the nominal power level of the control pulses, B1, is shown in kilohertz in the seventh column. The final column shows the number of control channels. Simulations use a penalty function to ensure that control pulses do not exceed to nominal power level, ±B1, of the control pulses.

System k Isotope Offset Ωk Coupling, Jjk B 0 B 1 Controls
1 1 1H Ω1 = 0 J12 = +140 Hz 9.4 T 1 kHz 4
2 13C Ω2 = 0
2 1 1H Ω1 = 0 J12 = +140 Hz
J23 = −160 Hz
9.4 T 1 kHz 6
2 13C Ω2 = 0
3 19F Ω3 = 0
3 1 1H Ω1 = −900 Hz J12 = 150 Hz 14.1 T 10 kHz 4
2 13C Ω2 = −4530 Hz J23 = 50 Hz
3 13C Ω3 = −1200 Hz J34 = 150 Hz
4 1H Ω4 = −6040 Hz J14 = 7 Hz

Fig. 4. Computation time of state transfer optimal control problems.

Fig. 4.

Comparison of the convergence of the two-spin (A), three-spin (B), and four-spin (C) state transfers with solvers S2,1, S3,1, and S4,1 (solid colored) and QOALA with solver S{2,3,4},1 (solid black) to an exact method (dashed black). The bottom plots (D to F) are the corresponding wall-clock time of computation. The two-spin system in (A) and (D) is given a pulse duration of T = 10 ms and a time slice width of δt = 0.2 ms. The three-spin system in (B) and (E) is given a pulse duration of T = 22 ms and a time slice width of δt = 0.2 ms. The four-spin system in (C) and (F) is given a pulse duration of T = 100 ms and a time slice width of δt = 0.02 ms. In all plots, a central thick line is an average over 28 optimizations, and the surrounding shaded area is bound by the first and third quartiles. Adaptive splitting order selection (solid black) allows the optimization to follow a computationally inexpensive route through a convergence trajectory while achieving an eventual high fidelity. ppm, parts per million.

Heteronuclear two-spin and three-spin systems are tasked with transferring an initial z magnetization from the first spin to a desired z magnetization at the final spin. The two-spin system is optimized over a pulse duration of T = 10 ms, and the three-spin system is isoptimized over T = 22 ms, both systems are allowed a time slice of δt = 0.2 ms.

The optimal control task of a four-spin system is purposefully made more difficult: The initial state is set as the entangled multispin state defined in Eq. 45; a relaxation term is included in the uncontrollable part of the Hamiltonian. The relaxation term is calculated using Spinach (29, 31, 54, 55) Bloch-Redfield-Wangsness relaxation theory with isotropic rotational diffusion (correlation time τc = 50 ps). The system, labeled system 3 in Table 2 and inset in Fig. 4F, is a mixture of heteronuclear and homonuclear systems and is controlled with four controls (x and y controls on each type of spin), limited to 10-kHz pulses, and optimized over a pulse duration of T = 100 ms with a time slice width of δt = 0.02 ms.

The convergence of the two-spin system follows a typical quadratic convergence, which can be seen from the average convergence of the exact method (dashed black lines) and in Fig. 4A. The interquartile range is also shown (solid gray area bounded by thin dashed lines), with small deviations from the average indicating a predictable/robust optimization. This can be considered an easy optimal control problem. However, at the time slice width of δt = 0.2 ms, the second-order splitting solver S2,1 fails to reach a fidelity above 99%. A similar behavior is observed for the three-spin and four-spin problems, when using the S2,1 solver, but with a fidelity limited to approximately 90%. The difficulty of these two optimal control problems is evident from the less than quadratic convergence of the exact method, which, after the initial damped stage of convergence, has a lower acceleration of convergence when compared to Fig. 4A.

Higher-order solvers, S3,1 and S4,1, increase the limit on achievable fidelity for all spin systems in Fig. 4 with an additional increase in computation time. Taking advantage of the short computation time of low-accuracy solvers when allowable, the QOALA algorithm switches to higher-accuracy solvers only when needed. Given a switching threshold tolerance of κF = 0.5 in Eq. 20 and a switching decision every 10 iterations, the convergence of QOALA in Fig. 4 does converge to the high fidelities of the high-accuracy solver S4,1 while benefiting from the time savings of the low-accuracy solvers at the beginning of the optimization. Furthermore, the average convergence trajectory of the two-spin system in Fig. 4A follows the average convergence trajectory of the exact method very closely. The first and third quartiles are also closely aligned, showing both the exact and adaptive methods converge in a predictably quadratic fashion from different, random, initial guesses. From Fig. 4 (B and C), the switch to S3,1 looks to have happened a little too late, following S2,1 for too many iterations and losing a small amount of convergence acceleration in the process. Even considering this small loss in potential time saving, all spin systems achieve an appreciable time saving compared to the exact method. Emphasizing this point further, for a four-spin system, depicted in Fig. 4F, the exact method takes more than 1.5 hours to achieve a fidelity of 99.99%, whereas QOALA takes less than 7 min to achieve the same fidelity.

The universal swap gate problem, with the fidelity defined in Eq. 46, is investigated for two different heteronuclear spin systems: a two-spin system, labeled system 1 in Table 2 and inset in Fig. 5D. The potential time saving should be more for this type of optimization, because the efficient Krylov propagation of the exact method in state transfer problems is not appropriate here, and an explicit matrix exponential must be made in gradient calculations. In this case, the exponential of a matrix is evaluated using a Taylor series, with scaling and squaring (35), and truncated with a predefined tolerance of 1 ×10−12. Both problems have 2M controls (x and y controls on each spin), with pulse B1 amplitudes limited to 1 kHz. The adaptivity of the QOALA is set with a switching threshold tolerance of κF = 0.5 (Eq. 20), a switching decision every 10 iterations. In the context of our set of examples, we observed that universal swap gate problems require slightly longer pulses than the state transfer problems. The two- and three-spin systems are optimized with T = 12 and 26.4 ms, respectively. An example of the effect of a three-spin swap gate is shown in Fig. 6, showing the first and third spin states swapped, and the state of the second spin is left unchanged.

Fig. 5. Computation time of universal swap gate optimal control problems.

Fig. 5.

Comparison of the convergence of the two-spin and three-spin swap-gate with solvers S2,1, S2,2, and S3,1 (solid colored) and QOALA using those same solvers adaptively (solid black) to an exact method (black dashed) (A and B) and the corresponding wall-clock time of computation (C and D). The two-spin system in (A) and (C) is given a pulse duration of T = 12 ms, and the three-spin system, swapping the first and third spin, in (B) and (D) is given a pulse duration of T = 26.4 ms. Both have a time slice width of δt = 0.1 ms. In all plots, a central thick line is an average over 28 optimizations, and the surrounding shaded area is bound by the first and third quartiles. Adaptive splitting order and Trotter number selection (solid black) allow the optimization to follow an inexpensive route through a convergence trajectory: using approximate methods far from the optimum and accurate methods close to the optimum.

Fig. 6. Bloch sphere trajectories for an optimal universal three-spin swap gate.

Fig. 6.

Analysis of a three-spin swap gate from three-spin swap gate from Fig. 5 (B and D). (A) The spin system and (B) the optimized trajectories obtained after 250 iterations of QOALA. The initial and final states indicated in (B) show that the random states on the first and third spins are swapped, and the random initial state of the second spin is the same as the final state.

In comparison to the state transfer problems in Fig. 4, the inclusion of Trotterization (S2,2) in Fig. 5 makes the convergence trajectory more stable by avoiding using the solver S2,1 for too many iterations, following the average convergence trajectory of the exact method closely in the case of the three-spin system in Fig. 5B and even finding a shortcut to convergence for the two-spin system in Fig. 5A. Again, both methods converge in a predictable fashion from initial random guesses, shown by the first and third quartiles.

Figure 7 shows the speedup achieved with the QOALA method for these two universal swap gate optimizations. It shows an even greater (an additional twofold) speedup than for state transfer problems in Fig. 1. This is because the efficiency of Krylov propagation cannot be used for propagator derivative calculations in the exact method. The slowdown from using matrix-matrix products, as opposed to efficient matrix-vector products of the state transfer problems, is inherited by both QOALA and the exact method.

Fig. 7. Speedup of QOALA universal gate optimal control problems.

Fig. 7.

Speedup in wall-clock time achieved by using the QOALA method when compared to an exact method for universal swap gate optimizations. Smooth, thick lines are a polynomial fit to the thin lines.

DISCUSSION

Performance

The QOALA method starts with low-cost, low-accuracy approximations of propagators far from the optimum and adaptively switches to high-cost, high-accuracy approximations as it approaches the optimum. With a set of approximant propagators, the QOALA method offers a versatile trade-off mechanism between accuracy and computational cost.

Note that the speedup achieved with the QOALA approach compared to the exact method depends on the type of optimal control problems and the system under study, but we predict that an ∼O(M2) speedup is expected for a system consisting of M qubits while maintaining the accuracy of the optimal solution, as summarized in Fig. 1. High-order splitting methods are required at the highest fidelities, and the computation time of these high-order splitting methods dominate the overall computation time. The speedup tends to be O(M) at these high fidelities because of this domination and because there is a splitting order/Trotter number pair that gives the same accuracy as the exact method with a matrix exponential.

Benchmarking

An alternative approach to error estimation presented in “The adaptive procedure” section is benchmarking of the solvers before the optimization. For any solver in the set of solvers, the cost and achievable accuracy is known. Precomputed benchmarking consists of identifying switch points on a cost versus accuracy plot that minimizes the overall cost while maximizing the accuracy.

If we want to apply this benchmarking strategy to the set of solvers in Table 1, then it can be seen that, with efficient matrix caching, the minimum cost of the computation of Sp = S2P+1S2PS2S1 and its derivative in the presence of qth order Trotterization is (4 + K)Pq + 2, where K is the number of controls. For example, the plot of Fig. 3 shows that there is no benefit in using second- and third-order solvers with Trotter numbers larger than 2 and 1, respectively.

Concluding remarks

We presented QOALA, a fast, accurate, general, and highly flexible optimal control algorithm, for solving optimal control problems involving systems of entangled qubits in a computationally efficient manner without sacrificing the desired accuracy of the optimal solution. The results of this manuscript can be generalized in a straightforward manner to functionals that involve the values of the density matrix ρ at multiple points, as well as functionals that involve regularization and penalty terms.

MATERIALS AND METHODS

Liouville space

In this work, we use the spherical tensor basis (56) in a Liouville space, allowing a general implementation to include effects such as relaxation or decoherence. Using the Liouville-Hilbert dual relationship

ρ(T;θ)=Utotρ0Utotvec[ρ(T;θ)]=UtotUtotvec(ρ0t) (38)

The method is formulated in superoperator formalism

H1HH1

Hamiltonians

Although the theoretical basis of this work can be extended to any quantum systems, it is formulated and demonstrated in the context of NMR, for a spin system consisting of M spin −12 particles interacting with each other via scalar coupling J and under a radiofrequency pulse. The noninteracting, single-spin part of the Hamiltonian can be written as

Hss=k=1Mθx,kIx,k+k=1Mθy,kIy,k+k=1MΩkIz,k (39)

where

Ia,k=11Mk\ timesσa11k1\ times,a{x,y,z} (40)

Therefore, we can prepare this Hamiltonian for our adaptive approach by

Hss=[Mk=1(θx,kσx+θy,kσy+Ωkσz)] (41)

where θx and θy are the x and y components of the time-dependent pulse amplitudes. In the special case of M homonuclei, there are only two controls affecting those M spins, i.e., in Eq. 39, ∑kθa,kIa,k → θakIa,k. The interaction Hamiltonian can be written as

Hin=j>kM2πJjk(Ix,jIx,k+Iy,jIy,k+Iz,jIz,k) (42)

In the case of heteronuclear coupling, the spin system can be considered weakly coupled, reducing the interaction Hamiltonian to

Hin=j>kM2πJjkIz,jIz,k (43)

Auxiliary matrix method

One method to find the time propagators and analytical propagator derivatives is to use an auxiliary matrix method (29, 30, 5153) for computing the matrix exponential of a block triangular matrix

exp{[A+BnCa,k0A+Bn]}=[UnUnθa,k,n0Un] (44)

where Ca,k = − iδtIa,k for a control pulse amplitude θa,k,n of duration δt. The propagators can be recovered from one of the diagonal blocks, and the propagator derivatives with respect to θa,k,n, in the direction of the control operator Ia,k (Eq. 40), can be extracted from the upper right block. For state transfer problems, this method should also use efficient Krylov propagation, avoiding the need to explicitly compute the matrix exponential (5759).

Optimal control problems

Three types of optimal control problem are compared in this work.

z to z transfer

The goal is to transfer an initial z magnetization on a spin j to z magnetization on a spin k: Iz,jIz,k. Magnetization on each spin can be depicted in a simple way through Cartesian coordinates on each spin’s Bloch sphere, as in Fig. 2. Here, we use the state-to-state transfer fidelity Eq. 9, F = Re[Tr(𝜚Utotρ0)].

Entangled to z state transfer

An initial two-spin entangled state between two spins j and k asks the optimization to collapse the entanglement to a desired localized z magnetization on a further spin l: E(j,k)Iz,l. The normalized, entangled, two-spin state between spins j and k is defined as

E(j,k)=121(2Iz,jIz,k+I+,jI,k+I,jI+,k) (45)

where 1 is a unit state, a trivial but complete addition to the basis set, and I± = Ix ± iIy. Once again, the fidelity used is Eq. 9, F = Re [Tr(ϱUtotρ0)].

Universal swap gate

A universal multispin operation designed to swap the arbitrary initial magnetization between two spins, j and k, is termed as a swap gate: I(j)I(k). The swap gate can be found by optimizing to a desired effective propagator, with a fidelity defined through only the effective propagator of the target

F=Re[Tr(UswapUtot)], (46)

where Uswap is the effective propagator of the swap operation (60). This fidelity function is of the form Eq. 11, and the overlap is now defined in a more general way by the Hilbert-Schmidt inner product. The real part disregards a trivial global phase that does not affect the swap gate operation.

A number of different spin systems are set out in Table 2, which are used to investigate convergence and benchmark wall-clock time of QOALA in comparison to exact calculations of propagators and propagator derivatives using the auxiliary matrix method (29) of Eq. 44. As mentioned above, state-to-state simulations for the exact method were performed using the efficient Spinach implementation (31) of Krylov propagation within MATLAB.

Optimization strategy

All results were obtained using a workstation running CentOS 7 with a 14-core Intel Xeon W-2175 CPU at 2.50 GHz and 64 GB of RAM. All optimizations were run 28 times, from 28 different random initial pulse guesses, with their convergence trajectories and time of computation (the wall-clock time), and averaged to show typical convergence and computation behavior. The 𝓁-BFGS (limited-memory Broyden-Fletcher-Goldfarb-Shanno) gradient following optimization method is used in all cases, with the 25 most recent gradients forming a Hessian approximation (28). A bracketing and sectioning line search method (with cubic interpolation) calculates an appropriate step length using strong Wolfe conditions (50). When an adaptive method switches between solvers, a step length of 1 is selected, with no further line search at that iteration. Termination conditions of optimization are tolθ = 1 × 10−12 in Eq. 14 and tolg = 1 × 10−12 in Eq. 15. All optimal control problems are given sufficient pulse duration to achieve high fidelity (18) and enforce a pulse amplitude spill-out penalty beyond 1 kHz (or 10 kHz for four-spin examples) (30), and fidelities are normalized so the globally optimal fidelity is unity. Essentially, there is the requirement that there are enough controls (enough time slices) to control the system to its desired target. This is a requirement for both an exact method and the solver-based methods, Sp,q, presented here. Accordingly, the control problems are designed to have enough time slices to attain good convergence, but no more.

Acknowledgments

D.L.G. thanks B. Luy for his continued support.

Funding: M.F. is grateful to the Royal Society for a University Research Fellowship and a University Research Fellow Enhancement Award (URF\R1\180233 and RGF\EA\181018) that have funded this project. The authors are grateful to the University of Bath Open Access Fund for covering the article processing charge (APC) for this article.

Author contributions: The idea of QOALA was conceived by M.F. and P.S.; the theory evolved and improved in collaboration with D.L.G. A stable numerical implementation of the method, made available as the QOALA package, was done by D.L.G. All numerical results and all figures reported in the paper were produced by D.L.G. The article was written by M.F., D.L.G., and P.S.

Competing interests: The authors declare that they have no competing interests.

Data and materials availability: All data needed to evaluate the conclusions in the paper are present in the paper and are also publicly hosted on GitHub (https://github.com/superego101/qoala/releases/tag/v1.0.0) and Zenodo (https://doi.org/10.5281/zenodo.6942692) in the form of a MATLAB toolbox QOALA, which includes functions to produce the results presented in this paper and an additional set of examples.

REFERENCES AND NOTES

  • 1.S. J. Glaser, U. Boscain, T. Calarco, C. P. Koch, W. Köckenberger, R. Kosloff, I. Kuprov, B. Luy, S. Schirmer, T. Schulte-Herbrüggen, D. Sugny, F. K. Wilhelm,Training Schrödinger’s cat: Quantum optimal control. Eur. Phys. J. D 39,1–24 (2015). [Google Scholar]
  • 2.T. E. Skinner, T. O. Reiss, B. Luy, N. Khaneja, S. J. Glaser,Application of optimal control theory to the design of broadband excitation pulses for high-resolution NMR. J. Magn. Reson. 163,8–15 (2003). [DOI] [PubMed] [Google Scholar]
  • 3.Z. Tošner, S. J. Glaser, N. Khaneja, N. C. Nielsen,Effective Hamiltonians by optimal control: Solid-state NMR double-quantum planar and isotropic dipolar recoupling. J. Chem. Phys. 125,184502 (2006). [DOI] [PubMed] [Google Scholar]
  • 4.M. S. Vinding, D. Brenner, D. H. Y. Tse, S. Vellmer, T. Vosegaard, D. Suter, T. Stöcker, I. I. Maximov,Application of the limited-memory quasi-newton algorithm for multi-dimensional, large flip-angle RF pulses at 7T. Magn. Reson. Mater. Phys. 30,29–39 (2017). [DOI] [PubMed] [Google Scholar]
  • 5.E. V. Reeth, H. Ratiney, K. T. V. Koon, M. Tesch, D. Grenier, O. Beuf, S. J. Glaser, D. Sugny,A simplified framework to optimize MRI contrast preparation. Magn. Reson. Med. 81,424–438 (2019). [DOI] [PubMed] [Google Scholar]
  • 6.P. E. Spindler, Y. Zhang, B. Endeward, N. Gershernzon, T. E. Skinner, S. J. Glaser, T. F. Prisner,Shaped optimal control pulses for increased excitation bandwidth in EPR. J. Magn. Reson. 218,49–58 (2012). [DOI] [PubMed] [Google Scholar]
  • 7.T. Kaufmann, T. J. Keller, J. M. Franck, R. P. Barnes, S. J. Glaser, J. M. Martinis, S. Han,DAC-board based X-band EPR spectrometer with arbitrary waveform control. J. Magn. Reson. 235,95–108 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.G. Waldherr, Y. Wang, S. Zaiser, M. Jamali, T. Schulte-Herbrüggen, H. Abe, T. Ohshima, J. Isoya, J. F. Du, P. Neumann, J. Wrachtrup,Quantum error correction in a solid-state hybrid spin register. Nature 506,204–207 (2014). [DOI] [PubMed] [Google Scholar]
  • 9.F. Dolde, V. Bergholm, Y. Wang, I. Jakobi, B. Naydenov, S. Pezzagna, J. Meijer, F. Jelezko, P. Neumann, T. Schulte-Herbrüggen, J. Biamonte, J. Wrachtrup,High-fidelity spin entanglement using optimal control. Nat. Commun. 5,1–9 (2014). [DOI] [PubMed] [Google Scholar]
  • 10.J. C. Saywell, I. Kuprov, D. Goodwin, M. Carey, T. Freegarde,Optimal control of mirror pulses for cold-atom interferometry. Phys. Rev. A 98,023625 (2018). [Google Scholar]
  • 11.J. C. Saywell, M. Carey, M. Belal, I. Kuprov, T. Freegarde,Optimal control of Raman pulse sequences for atom interferometry. J. Phys. B: At. Mol. Opt. Phys. 53,085006 (2020). [Google Scholar]
  • 12.L. H. Coudert,Optimal control of the orientation and alignment of an asymmetric-top molecule with terahertz and laser pulses. J. Chem. Phys. 148,094306 (2018). [DOI] [PubMed] [Google Scholar]
  • 13.E. Räsänen, A. Castro, J. Werschnik, A. Rubio, E. K. Gross,Optimal control of quantum rings by terahertz laser pulses. Phys. Rev. Lett. 98,157404 (2007). [DOI] [PubMed] [Google Scholar]
  • 14.M. Zhao, D. Babikov,Coherent and optimal control of adiabatic motion of ions in a trap. Phys. Rev. A 77,012338 (2008). [Google Scholar]
  • 15.V. Nebendahl, H. Häffner, C. F. Roos,Optimal control of entangling operations for trapped-ion quantum computing. Phys. Rev. A 79,012312 (2009). [Google Scholar]
  • 16.Y. Chou, S. Huang, H. Goan,Optimal control of fast and high-fidelity quantum gates with electron and nuclear spins of a nitrogen-vacancy center in diamond. Phys. Rev. A 91,052315 (2015). [Google Scholar]
  • 17.J. Tian, T. Du, Y. Liu, H. Liu, F. Jin, R. S. Said, J. Cai,Optimal quantum optical control of spin in diamond. Phys. Rev. A 100,012110 (2019). [Google Scholar]
  • 18.N. Khaneja, S. J. Glaser, R. Brockett,Sub-Riemannian geometry and time optimal control of three spin systems: Quantum gates and coherence transfer. Phys. Rev. A 65,1–11 (2002). [Google Scholar]
  • 19.B. Bonnard, S. J. Glaser, D. Sugny,A review of geometric optimal control for quantum systems in nuclear magnetic resonance. Adv. Math. Phys. 2012,1–29 (2012). [Google Scholar]
  • 20.N. Augier, U. Boscain, M. Sigalotti,Adiabatic ensemble control of a continuum of quantum systems. SIAM J. Control Optim. 56,4045–4068 (2018). [Google Scholar]
  • 21.C. Brif, M. D. Grace, M. Sarovar, K. C. Young,Exploring adiabatic quantum trajectories via optimal control. New J. Phys. 16,065013 (2014). [Google Scholar]
  • 22.N. Khaneja, T. Reiss, C. Kehlet, T. Schulte-Herbrüggen, S. J. Glaser,Optimal control of coupled spin dynamics: Design of NMR pulse sequences by gradient ascent algorithms. J. Magn. Reson. 172,296–305 (2005). [DOI] [PubMed] [Google Scholar]
  • 23.D. Lu, K. Li, J. Li, H. Katiyar, A. J. Park, G. Feng, T. Xin, H. Li, G. Long, A. Brodutch, J. Baugh, B. Zeng, R. Laflamme,Enhancing quantum control by bootstrapping a quantum processor of 12 qubits. npj Quantum Inf. 3,1–7 (2017). [Google Scholar]
  • 24.S. G. Schirmer, P. de Fouquieres,Efficient algorithms for optimal control of quantum dynamics: The Krotov method unencumbered. New J. Phys. 13,073029 (2011). [Google Scholar]
  • 25.D. M. Reich, M. Ndong, C. P. Koch,Monotonically convergent optimization in quantum control using Krotov’s method. J. Chem. Phys. 136,104103 (2012). [DOI] [PubMed] [Google Scholar]
  • 26.D. Quiñones Valles, S. Dologov, D. Savostyanov, Tensor product approach to quantum control. Integral Methods in Science and Engineering, C. Constanda, P. Harris, eds. (Birkhäuser, Cham, 2019), pp. 367–379. [Google Scholar]
  • 27.J. H. M. Jensen, F. S. Møller, J. J. Sørensen, J. F. Sherson,Approximate dynamics leading to more optimal control: Efficient exact derivatives. Phys. Rev. A 103,062612 (2021). [Google Scholar]
  • 28.P. de Fouquieres, S. G. Schirmer, S. J. Glaser, I. Kuprov,Second order gradient ascent pulse engineering. J. Magn. Reson. 212,412–417 (2011). [DOI] [PubMed] [Google Scholar]
  • 29.D. L. Goodwin, I. Kuprov,Auxiliary matrix formalism for interaction representation transformations, optimal control, and spin relaxation theories. J. Chem. Phys. 143,084113 (2015). [DOI] [PubMed] [Google Scholar]
  • 30.D. L. Goodwin, I. Kuprov,Modified Newton-Raphson GRAPE methods for optimal control of spin systems. J. Chem. Phys. 144,204107 (2016). [DOI] [PubMed] [Google Scholar]
  • 31.H. Hogben, M. Krzystyniak, G. Charnock, P. Hore, I. Kuprov,Spinach–A software library for simulation of spin dynamics in large spin systems. J. Magn. Reson. 208,179–194 (2011). [DOI] [PubMed] [Google Scholar]
  • 32.R. Jozsa,Fidelity for mixed quantum states. J. Mod. Opt. 41,2315–2323 (1994). [Google Scholar]
  • 33.Y.-C. Liang, Y.-H. Yeh, P. E. M. F. Mendonça, R. Y. Teh, M. D. Reid, P. D. Drummond,Quantum fidelity measures for mixed states. Rep. Prog. Phys. 82,076001 (2019). [DOI] [PubMed] [Google Scholar]
  • 34.J. Munkres, Analysis on Manifolds (CRC Press, 1991). [Google Scholar]
  • 35.N. J. Higham, Functions of Matrices: Theory and Computation (Society for Industrial and Applied Mathematics, Philadelphia, PA, USA, 2008). [Google Scholar]
  • 36.S. J. Glaser, T. Schulte-Herbrüggen, M. Sieveking, O. Schedletzky, N. C. Nielsen, O. W. Sørensen, C. Griesinger,Unitary control in quantum ensembles: Maximizing signal intensity in coherent spectroscopy. Science 280,421–424 (1998). [DOI] [PubMed] [Google Scholar]
  • 37.W. Auzinger, H. Hofstätter, O. Koch, M. Thalhammer,Defect-based local error estimators for splitting methods, with application to Schrödinger equations, part iii: The nonlinear case. J. Comput. Appl. Math. 273,182–204 (2015). [Google Scholar]
  • 38.H. F. Trotter,On the product of semi-group operators. Proc. Amer. Math. Soc. 10,545–551 (1959). [Google Scholar]
  • 39.G. Strang,On the construction and comparison of different schemes. SIAM J. Numer. Anal. 5,506–517 (1968). [Google Scholar]
  • 40.G. I. Marchuk,Some application of splitting-up methods to the solution of mathematical physics problems. Appl. Math.-Czech. 13,103–132 (1968). [Google Scholar]
  • 41.S. Blanes, P. C. Moan,Practical symplectic partitioned Runge-Kutta and Runge-Kutta-Nyström methods. J. Comput. Appl. Math. 142,313–330 (2002). [Google Scholar]
  • 42.R. I. McLachlan, G. R. W. Quispel,Splitting methods. Acta Numer. 11,341–434 (2002). [Google Scholar]
  • 43.S. Blanes, F. Casas, A. Murua,Splitting and composition methods in the numerical integration of differential equations. Bol. Soc. Esp. Mat. Apl. 45,89–145 (2008). [Google Scholar]
  • 44.S. Blanes, F. Casas, A. Escorihuela-Tomàs,Applying splitting methods with complex coefficients to the numerical integration of unitary problems. J. Comput. Dyn. 9,85–101 (2022). [Google Scholar]
  • 45.J. A. Oteo,The Baker-Campbell-Hausdorff formula and nested commutator identities. J. Math. Phys. 31,419–424 (1991). [Google Scholar]
  • 46.P. Bader, A. Iserles, K. Kropielnicka, P. Singh,Effective approximation for the semiclassical Schrödinger equation. Found. Comput. Math. 14,689–720 (2014). [Google Scholar]
  • 47.A. Iserles, H. Z. Munthe-Kaas, S. P. Nørsett, A. Zanna,Lie-group methods. Acta Numerica 9,215–365 (2000). [Google Scholar]
  • 48.G. Forsythe, W. Wasow, Finite-difference methods for partial differential equations (John Wiley and Sons, New York; London, 1960). [Google Scholar]
  • 49.M. Foroozandeh, P. Singh,Optimal control of spins by analytical lie algebraic derivatives. Automatica J. IFAC 129,109611 (2021). [Google Scholar]
  • 50.J. Nocedal, S. J. Wright, Numerical Optimization (Springer, New York, NY, USA, ed. 2, 2006).
  • 51.C. F. Van Loan,Computing integrals involving the matrix exponential. IEEE Trans. Automat. Contr. 23,395–404 (1978). [Google Scholar]
  • 52.I. Najfeld, T. F. Havel,Derivatives of the matrix exponential and their computation. Adv. Appl. Math. 16,321–375 (1995). [Google Scholar]
  • 53.F. F. Floether, P. de Fouquieres, S. G. Schirmer,Robust quantum gates for open systems via optimal control: Markovian versus non-markovian dynamics. New J. Phys. 14,073023 (2012). [Google Scholar]
  • 54.I. Kuprov, N. Wagner-Rundell, P. J. Hore,Polynomially scaling spin dynamics simulation algorithm based on adaptive state-space restriction. J. Magn. Reson. 189,241–250 (2007). [DOI] [PubMed] [Google Scholar]
  • 55.I. Kuprov,Diagonalization-free implementation of spin relaxation theory for large spin systems. J. Magn. Reson. 209,31–38 (2011). [DOI] [PubMed] [Google Scholar]
  • 56.D. J. Siminovitch,Rotations in NMR: Part I. Euler-Rodrigues parameters and quaternions. Concepts Magn. Reson. 9,149–171 (1997). [Google Scholar]
  • 57.T. J. Park, J. C. Light,Unitary quantum time evolution by iterative Lanczos reduction. J. Chem. Phys. 85,5870–5876 (1986). [Google Scholar]
  • 58.M. Hochbruck, C. Lubich,On Krylov subspace approximations to the matrix exponential operator. SIAM J. Numer. Anal. 34,1911–1925 (1997). [Google Scholar]
  • 59.D. L. Goodwin, “Advanced optimal control methods for spin systems,” thesis, University of Southampton, UK (2017). [Google Scholar]
  • 60.N. Linden, H. Barjat, Ē. Kupce, R. Freeman,How to exchange information between two coupled nuclear spins: The universal SWAP operation. Chem. Phys. Lett. 307,198–204 (1999). [Google Scholar]

Articles from Science Advances are provided here courtesy of American Association for the Advancement of Science

RESOURCES