Second-Order Adjoint Method for Quantum Optimal Control
Harish S. Bhat
TL;DR
The paper addresses efficient quantum optimal control of molecular systems governed by the time-dependent Schrödinger equation by deriving and implementing a second-order adjoint method that provides exact gradients and Hessians. The authors build on a discretize-then-optimize framework, derive forward state and backward adjoint (and second-order adjoint) systems, and implement them on GPUs using JAX to achieve near-linear scaling with the number of time steps. Empirical results on small molecules (e.g., H$_2$, HeH$^+$) in STO-3G and 6-31G bases show that Hessian-enabled Newton optimization converges faster (fewer iterations and wall time) than first-order methods while delivering comparable solution quality and near-zero final-state errors. The work demonstrates the practicality of exact Hessians for quantum control with arbitrary control parameterizations and provides open-source code for broader adoption.
Abstract
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 second-order 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. Our derivation of the second-order adjoint method allows for arbitrary parameterizations of the controls.
