Optimal Control
Optimal control designs a control protocol by optimizing a stated objective subject to physical and numerical constraints. In quantum mechanics the controls may be microwave amplitudes, laser phases, magnetic fields, tunneling amplitudes, detunings, dissipative couplings, or measurement-based feedback laws. In open systems, the target must be balanced against decoherence, leakage, bandwidth, calibration uncertainty, and model error.
The objective should reflect the task: population transfer, preservation of arbitrary qubit inputs, cooling, and state stabilization are different problems. The allowed waveform and the noise model determine which solutions are physically possible.
For a small calculation you can reproduce, see Optimal Control Toy Problems. For algorithms and implementation on processors, see Optimal Control for Quantum Processors.
Controls, Dynamics, and a Target
Section titled “Controls, Dynamics, and a Target”A typical open-system control model has
where denotes one or more control waveforms. For a driven Markovian model,
The optimization chooses from an allowed class. The class matters: a piecewise-constant waveform, a Fourier series, a spline, a Gaussian pulse family, and an arbitrary point-by-point waveform are different optimization problems.
The control problem is incomplete until it specifies:
- initial states or input channels;
- target state, unitary, channel, observable, or steady state;
- final time or allowed duration;
- amplitude, bandwidth, smoothness, phase, and energy constraints;
- known noise and uncertainty parameters;
- objective function and penalty terms;
- solver tolerances and validation tests.
Objectives
Section titled “Objectives”An objective function turns the physics goal into a number. Since many optimizers minimize, it is common to write
where is a physical fidelity or success score, penalizes control cost or roughness, and penalizes lack of robustness. The weights and are modeling choices, not constants of nature.
Common targets include:
| Target | Example score |
|---|---|
| state preparation | |
| population transfer | |
| unitary gate | average gate fidelity or process fidelity |
| channel synthesis | distance between Choi matrices or action on a test set |
| cooling | final occupation or energy |
| steady-state engineering | distance to target fixed point plus Liouvillian gap checks |
| sensing protocol | Fisher information, contrast, or signal-to-noise objective |
State-transfer objectives can be useful for calibration, but they do not certify a gate. A pulse that maps one initial state correctly may act badly on another input state. Gate or channel objectives must test a set of inputs spanning operator space, a process representation, or an equivalent fidelity formula. A computational basis alone tests populations but can miss errors in superpositions.
Constraints Are Physics
Section titled “Constraints Are Physics”Constraints are not cosmetic. They are part of the model.
| Constraint | Why it matters |
|---|---|
| amplitude bound | prevents unphysical instantaneous rotations or heating |
| finite bandwidth | models electronics, optics, filters, and pulse shaping |
| smoothness | reduces spectral leakage and calibration sensitivity |
| duration | trades speed against decoherence and adiabaticity |
| leakage penalty | discourages population outside the computational subspace |
| detuning uncertainty | tests robustness to calibration drift |
| noise model | prevents optimizing a closed-system fantasy |
| hardware transfer function | maps programmed waveform to delivered waveform |
Without constraints, an optimizer can exploit features not present in the apparatus. A pulse that requires arbitrarily sharp edges or enormous amplitudes is a mathematical artifact unless the hardware can deliver it and the model remains valid at those scales.
Open-System Objectives
Section titled “Open-System Objectives”For a Markovian density-matrix model, the final state is
where is a completely positive trace-preserving map when the model is valid. If the target is a unitary gate , the open-system result is generally not unitary; it is a channel. Comparing only one input state can hide amplitude damping, dephasing, leakage, and nonunital drift.
For pure input states, a simple gate-style score averages their output overlaps:
For a qubit, the six Pauli eigenstates form a state 2-design: their equally weighted score equals Haar-average gate fidelity for a linear trace-preserving qubit channel. An arbitrary small test set need not have this property. For mixed , the displayed overlap is not generally a state fidelity. State whether population leaving the intended subspace counts as failure or is postselected; postselection changes the meaning of the score.
Gradients and Adjoints
Section titled “Gradients and Adjoints”For piecewise-constant controls, let with . Consider a terminal cost for a pure target, plus a control penalty . Define the Hilbert–Schmidt inner product and propagate
The chain rule then gives the exact discrete gradient
The dagger on denotes the adjoint superoperator, not a time-reversed physical evolution. One forward trajectory and one backward sequence of costates supply gradients for all slices. The derivative of a time-slice exponential is
Replacing it by is generally only a small-step approximation; it is exact when the relevant superoperators commute. Compare an implemented gradient with a central finite difference over a range of step sizes before relying on it. Automatic differentiation does not correct an inaccurate propagator or an incomplete physical model.
GRAPE and Krotov Preview
Section titled “GRAPE and Krotov Preview”GRAPE, gradient ascent pulse engineering, is widely used when controls are piecewise constant and the objective gradient can be evaluated slice by slice. It is especially natural for finite-dimensional Hamiltonian control and has open-system extensions using Liouvillian propagators.
Krotov methods frame the update as an optimal-control variational problem with forward and backward propagation. They are often used when one wants monotonic improvement guarantees under the assumptions of the method.
Both families are algorithms for a chosen mathematical problem. Neither guarantees that the optimized pulse is physically robust, experimentally deliverable, or globally optimal.
Robust Optimization
Section titled “Robust Optimization”A pulse optimized for a single parameter set may fail when the detuning, coupling, noise rate, or calibration shifts. Robust control replaces a single score by an ensemble score, for example
where labels sampled parameter values and are weights. The pulse is then rewarded for working across the ensemble.
Robustness should be tested on parameter values not used during optimization. Otherwise the pulse may simply overfit the training grid.
Check the Pulse Beyond Its Optimization Grid
Section titled “Check the Pulse Beyond Its Optimization Grid”Recompute the final pulse with a finer propagation grid and tighter tolerances, using the waveform actually delivered after filtering. Compare it with a simple analytic pulse at the same duration and resource bounds. Report physical fidelity separately from penalties, and include leakage and constraint violations.
Then vary detuning, amplitude calibration, dissipation rates, and transfer-function parameters at values not used to train the pulse. Try several initial guesses: convergence from one guess establishes a local result, not a global optimum. Solving Lindblad Equations explains the relevant numerical checks.
Exercises
Section titled “Exercises”State transfer is not a gate
Section titled “State transfer is not a gate”A pulse maps to with high fidelity. Why does this not prove it implements an gate?
Solution
A gate is a map on all input states, not one state. The same pulse might map correctly while adding the wrong phase to , dephasing superpositions, leaking population, or acting nonlinearly after postselection. To certify a gate, one must test a process representation, an average gate fidelity, or enough input states to determine the channel within the intended model.
A basis-state test can miss a phase error
Section titled “A basis-state test can miss a phase error”The desired qubit gate is the identity, but the device applies . Find its score on and on the six Pauli eigenstates.
Solution
Both computational basis states return to the same ray, so their mean overlap is 1. The four and eigenstates are mapped to their orthogonal partners, giving overlap 0, while the two eigenstates give 1. Thus the six-state average is . A population-only test would label this severe phase error as a perfect gate.
Penalized objective
Section titled “Penalized objective”Suppose two pulses have physical fidelities and . Pulse B is much smoother, so an objective assigns . Which pulse is “better”?
Solution
Neither is universally better without the design goal. Pulse A has higher physical fidelity in the model. Pulse B has lower penalized objective because smoothness was rewarded. If smoothness represents a real hardware constraint or robustness requirement, B may be preferred. The result should report both and so readers can see the tradeoff.
Robust objective
Section titled “Robust objective”A pulse is optimized at detuning and works poorly at . Write a simple robust objective using three detunings.
Solution
One simple choice is an equally weighted infidelity average:
Equivalently,
The optimized pulse should then be tested at additional detunings not included in the three-point training set.
References
Section titled “References”- C. Brif, R. Chakrabarti, and H. Rabitz, “Control of quantum phenomena: past, present and future,” New Journal of Physics 12, 075008 (2010).
- D. D’Alessandro, Introduction to Quantum Control and Dynamics, Chapman and Hall/CRC (2007).
- S. J. Glaser, U. Boscain, T. Calarco, C. P. Koch, W. Kockenberger, R. Kosloff, I. Kuprov, B. Luy, S. Schirmer, T. Schulte-Herbrüggen, D. Sugny, and F. K. Wilhelm, “Training Schrödinger’s cat: quantum optimal control,” European Physical Journal D 69, 279 (2015).
- N. Khaneja, 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).
- V. F. Krotov, Global Methods in Optimal Control Theory, Marcel Dekker (1996).
- T. Schulte-Herbrüggen, A. Spörl, N. Khaneja, and S. J. Glaser, “Optimal control for generating quantum gates in open dissipative systems,” Journal of Physics B 44, 154013 (2011).