Numerical Optimal Control and Gradient Checks
Numerical optimal control adjusts a time-dependent Hamiltonian to achieve a target state or gate under explicit constraints. An optimizer can exploit errors in the propagator or an unrealistically flexible pulse model. The central computational task is therefore to optimize a well-defined discrete objective and then verify the resulting control with a finer, independent simulation.
Helpful background. Quantum control objectives provides the operational setting; matrix exponentials provides finite-dimensional propagation.
Piecewise controls and objective functions
Section titled “Piecewise controls and objective functions”Let
with Hermitian drift and control operators. Divide the duration into slices of width , using constant amplitudes on each slice. Then and .
For a normalized target state, set and maximize . A gate objective such as tests an entire -dimensional unitary rather than one input state. State transfer alone does not certify a gate.
Include amplitude bounds, bandwidth or slew limits, and any fluence penalty in the actual optimization. For example minimize
The coefficient has units fixed by the amplitude convention. A post hoc smoothing operation changes the simulated pulse and must be followed by a fresh fidelity calculation.
Exact slice derivatives and adjoint reuse
Section titled “Exact slice derivatives and adjoint reuse”Define forward states and backward bras . Then
Forward and backward sweeps reuse propagation instead of separately rerunning the entire trajectory for each parameter. The exact matrix derivative is
Replacing this by is exact only when commutes with and otherwise has a slice-dependent error. Fréchet derivatives or divided differences in an eigenbasis avoid that approximation. Check gradients with centered finite differences over several perturbation sizes before optimizing.
An exact rotation benchmark
Section titled “An exact rotation benchmark”For , all time slices commute. Starting in , the probability of is
Thus for constant-width slices. A pulse area gives unit transfer. If , this model requires at least for the direct rotation. This is a bound for this specified control model, not a general quantum speed-limit claim.
The benchmark detects missing factors of two, inconsistent angular-frequency units, and incorrect propagation order. Adding a detuning introduces noncommuting dynamics and provides a stronger gradient test.
Robustness and propagation accuracy
Section titled “Robustness and propagation accuracy”Optimize an ensemble of detunings or amplitude errors when robustness is part of the goal, then evaluate a denser validation ensemble not used in training. Report nominal, average, and worst-case infidelity separately. A high mean fidelity can conceal a narrow failure region.
Refine time slices, tighten exponential-action tolerances, and propagate the final control with a different method. Include the transfer function of the intended control hardware when it is part of the model. Distinguish local optimizer convergence from global optimality; repeated starts and different parameterizations explore the landscape without proving a global optimum.
Exercises
Section titled “Exercises”At , the exact first derivative vanishes. Does this mean a small pulse-area error has no effect?
Solution
For , . The leading error is quadratic, not zero. A vanishing gradient at a perfect transfer point does not guarantee broad robustness.
References
Section titled “References”- Khaneja, N., T. Reiss, C. Kehlet, T. Schulte-Herbrüggen, and S. J. Glaser, “Optimal control of coupled spin dynamics: design of NMR pulse sequences by gradient ascent algorithms,” Journal of Magnetic Resonance 172, 296–305 (2005), doi:10.1016/j.jmr.2004.11.004 — forward/backward gradient optimization.
- Nocedal, J., and S. J. Wright, Numerical Optimization, 2nd ed., Springer, 2006, doi:10.1007/978-0-387-40065-5 — constrained objectives and convergence tests.