We derive and implement a second-order adjoint method to compute exact gradients and Hessians for a prototypical quantum optimal control problem, that of solving for the minimal energy applied electric field that drives a molecule from a given initial state to a desired target state. For small to moderately sized systems, we demonstrate a vectorized GPU implementation of a second-order adjoint method that computes both Hessians and gradients with wall times only marginally more than those required to compute gradients via commonly used first-order adjoint methods. Pairing our secondorder adjoint method with a trust region optimizer (a type of Newton method), we show that it outperforms a first-order method, requiring significantly fewer iterations and wall time to find optimal controls for four molecular systems.
In the present paper, by using the relaxed transposition method[29], we solve the second-order adjoint equations, corresponding to the optimal control of quantum stochastic systems in fermion fields, which plays the fundamental roles in the study of the Pointryagin-type maximum principle in quantum stochastic optimal control. The second-order adjoint equation is a backard operator valued quantum stochastic differential equation, which has no definition in the algebra of bounded operators, and the solution derived from the relaxed transposition method makes sense in W*-topology.
This work introduces the High-Order Hermite Optimization (HOHO) method, an open-loop discrete adjoint method for quantum optimal control. Our method is the first of its kind to efficiently compute exact (discrete) gradients when using continuous, parameterized control pulses while solving the forward equations (e.g. Schrodinger's equation or the Linblad master equation) with an arbitrarily high-order Hermite Runge-Kutta method. The HOHO method is implemented in QuantumGateDesign
.jl (https://github.com/leespen1/QuantumGateDesign.jl), an open-source software package for the Julia programming language, which we use to perform numerical experiments comparing the method to Juqbox
.jl (https://github.com/LLNL/Juqbox.jl). For realistic model problems we observe speedups up to 775x.