QMaxCal: Decoherence-Aware Quantum Optimal Control via Girsanov's Theorem

Merijn Moody, Zier Mensch, Miranda C. N. Cheng, Peter G. Bolhuis, Max WellingNeurIPS 2026

TL;DR

Driving a quantum system to a desired state is like navigating a leaky sailboat through a storm: how you get there matters just as much as the destination. QMaxCal uses a classic tool from stochastic calculus—Girsanov’s theorem—to measure how much "information" a quantum trajectory leaks into its noisy environment. By penalizing this leakage directly during optimization, QMaxCal automatically discovers control pulses that detour through quiet, protected pockets of state space, cutting error rates by up to half without needing hand-crafted rules.

What Problem Does This Paper Address?

To run quantum algorithms, physicists design electromagnetic pulses that steer qubits from an initial state to a target state. The catch is decoherence: qubits constantly interact with their environment, losing fragile quantum information on the exact same timescales it takes to apply the control pulses.

Standard optimal control methods (like GRAPE or reinforcement learning) try to maximize final-state accuracy while adding simple penalties to keep pulses smooth or low-energy. However, they treat the path through quantum state space blindly—except insofar as errors show up at the very end—or rely on tedious, system-specific "reward shaping" to manually forbid visiting noisy states. Yet quantum noise isn't uniform; Hilbert space often contains sheltered valleys called decoherence-free subspaces (DFSs) where environmental noise acts trivially. The challenge is getting an optimizer to automatically find and exploit these quiet routes for any arbitrary system.

Methods

Instead of evolving bulky density matrices (which average over all possible noise outcomes and scale quadratically in memory), QMaxCal models individual pure-state trajectories using the stochastic Schrödinger equation (SSE).

Physically, if you continuously monitor the environment (via homodyne detection), each quantum trajectory produces a classical measurement record: a noisy signal whose deterministic "drift" depends on how strongly the current quantum state couples to the noise channel. If the qubit is in a completely dark, protected state, the detector sees pure, zero-drift white noise; if it visits a lossy state, a telltale signal appears in the drift.

Figure 1: Measuring decoherence through the measurement record. (a) Homodyne detection of the emitted field gives a record dI = α dt + dW with drift α = ⟨ψ|L + L†|ψ⟩. In ker L the record is pure noise, with law PW ; the Wiener KL measures how far the law Pθ of the records is from PW (the two records are illustrations). (b) SSE trajectories of the amplitude-damped qubit, |+⟩→|Y ⟩ at γT = 2 (thick lines: mean Bloch vector). The Wiener-KL policy (λKLW = 5) reaches ker L by t = 0.1T and stays there until the final rotation. (c) Record drift, mean and 10th to 90th percentile. (d) Wiener KL accumulated up to time t; it stops growing once the state is in ker L.

Because any two control policies on the same hardware share the exact same background noise structure and differ only in this state-dependent drift, the authors apply Girsanov’s theorem to compute an exact, closed-form, differentiable Kullback–Leibler (KL) divergence between trajectory distributions. By comparing the controlled system against two idealized reference processes, they introduce two path-space regularizers:

  • Wiener KL ($\text{KL}_W$): Measures distance from pure, zero-drift Brownian motion. It vanishes when the system sits in the joint kernel of the noise operators (completely "dark" states).
  • Drift-Variance ($R_{\text{DV}}$): Measures distance from the closest constant-drift process. It vanishes whenever the system stays inside any decoherence-free subspace, even if the drift is non-zero.

Datasets

Because this is a physics control paper, evaluation is performed on simulated open quantum system benchmarks rather than static datasets:

  1. Single-qubit amplitude damping: Energy relaxation ($T_1$ decay) during state preparation.
  2. STIRAP ($\Lambda$-system): Population transfer across three levels with a lossy intermediate excited state.
  3. Four-level diamond system: Transfer between leaky computational states with an available "safe" auxiliary state.
  4. Synthetic 4-qubit chain: Excitation transfer across sites with varying edge-to-interior noise asymmetry.
  5. Hardware-calibrated 6-qubit chain: Simulated excitation transfer parameterized using a real $T_1/T_2$ calibration snapshot from the IBM Kingston superconducting processor, featuring realistic site-to-site noise spikes.

Key Insights and Ideas

  • Penalize the symptom, not the steering wheel: Traditional regularizers penalize pulse energy (fluence) or smoothness. QMaxCal penalizes the observable consequences of control on the environment—literally minimizing how distinguishable the emitted environmental field is from pure noise.
  • Exact mathematical guarantees (Theorem 1): For standard decay and dephasing channels, $\text{KL}_W = 0$ if and only if the state stays in the noise kernel, and $R_{\text{DV}} = 0$ if and only if the trajectory is decoherence-free.
  • Choosing the wrong regularizer can backfire: Under pure dephasing, there is no dark kernel, and zero drift occurs on the Bloch sphere equator—where dephasing is actually worst. Here, $\text{KL}_W$ actively pulls the qubit into harm's way, whereas $R_{\text{DV}}$ properly identifies protected paths or routes around noisy qubits.
  • Vector scaling beats density matrices: Simulating state vectors scales as $O(\text{dim})$ rather than $O(\text{dim}^2)$, allowing forward passes on 12-qubit systems on a single 40 GB A100 GPU where density-matrix RL baselines run out of memory at 10 qubits.

Key Results

Across benchmarks, QMaxCal outperforms unregularized gradient-based baselines and tuned Proximal Policy Optimization (PPO):

  • Escaping local minima: On the 4-level diamond system, unregularized baselines get stuck taking a direct, lossy route ($66.5\%$ fidelity). $\text{KL}_W$ discovers the detour through the safe auxiliary state, boosting fidelity by +17 percentage points (pp) to $83.4\%$ (a ~50% reduction in infidelity).
  • Noise-mismatch robustness: When that same diamond policy is tested under $2.5\times$ stronger noise than it was trained on, its lead over the baseline grows to +27 pp, matching the baseline's low-noise performance while baselines collapse.
  • Automatic state avoidance: In STIRAP ($\gamma T = 10$), $\text{KL}_W$ cuts peak occupation of the forbidden lossy state by 56% without any manual reward shaping.
  • Multi-qubit routing: On the 4-qubit chain with $8\times$ noisier endpoints, $R_{\text{DV}}$ immediately hops the excitation onto a quiet interior qubit, gaining +20 pp over baseline ($0.42$ vs. $0.22$). On the calibrated IBM Kingston 6-qubit chain, $R_{\text{DV}}$ achieves $86.3\%$ fidelity vs. $83.7\%$ baseline (a ~16% infidelity reduction) and $64.0\%$ for PPO.

Limitations and Future Work

  • Diffusive & Markovian assumptions: The Girsanov estimator requires continuous, diffusive (homodyne) unravellings—it does not directly apply to discrete "quantum jump" trajectories (like photon counting)—and assumes memoryless (Markovian) Lindblad noise.
  • Unravelling dependence & heuristics: Away from zero, penalty values depend on a free parameter (the homodyne local-oscillator phase), and knowing a priori whether a system has exploitable noise structure relies on heuristics.
  • Memory during training: Storing forward trajectories for backpropagation limits training memory below the 12-qubit forward-pass ceiling.
  • Future hardware deployment: Because real quantum computers yield measurement records rather than state vectors $|\psi(t)\rangle$, the authors suggest training a contrastive discriminator on real detector readouts to estimate the KL divergence directly on hardware, alongside extensions to jump processes and non-Markovian baths.

Summary updated

Abstract

Reliable quantum control in the presence of decoherence requires policies that combat the effect of environmental noise on the controlled dynamics. Open quantum systems under continuous monitoring generate classical measurement records whose drift depends on the noise experienced by the system; the records of two evolutions sharing the same decoherence channels differ only in this drift, so Girsanov's theorem yields a closed-form, differentiable estimator of the KL divergence between their trajectory distributions. We instantiate this estimator with two physically motivated reference measures, yielding two regularizers: the *Wiener KL* KL_W, which vanishes on the joint kernel of the Lindblad operators and is the appropriate choice when this kernel is reachable by control, and the *drift-variance regularizer* R_DV, which, for dephasing and decay channels, vanishes if and only if the evolution is decoherence-free. Both are qualitatively distinct from existing penalties on control fluence or smoothness: they penalize the observable consequences of control on the decoherence channels rather than the control amplitude itself. The regularizers outperform unregularized gradient-based and reinforcement-learning baselines across a range of open quantum systems, including single- and multi-qubit benchmarks and a six-qubit chain calibrated to a published snapshot of the IBM Kingston processor. We evaluate them on final-state fidelity, robustness to mismatch in the assumed noise model (gains grow from +17 pp at training noise to +27 pp under 2.5 x noise mismatch), and occupation of forbidden states. The regularizers reduce infidelity by up to 50%, with ~16% gains on the calibrated IBM Kingston chain. Our code can be found at https://github.com/MerijnMoody/QMaxCal.
BibTeX
@inproceedings{moody2026qmaxcal,
  author = {Merijn Moody and Zier Mensch and Miranda C. N. Cheng and Peter G. Bolhuis and Max Welling},
  title = {{QMaxCal: Decoherence-Aware Quantum Optimal Control via Girsanov's Theorem}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fQbP42DHcH},
}

Loading related content...

Figure