arXiv:2610.36167
Analog Quantum Experiments Meet Automatic Differentiation - from Programs to Atoms
Yue Shi, Pengyu Liu, Yuxiang Peng
Abstract
Gradient-based optimization of analog quantum hardware poses a concrete programming problem: given an executable experiment P(θ) that returns only measurement samples, what executable experiment should the system run to obtain (d/dθ_ell)P(θ)? Conventional automatic differentiation cannot propagate through the inaccessible quantum state, while finite differences require a noise-sensitive step size and analytic gradient identities cover only parts of an experiment. We present DiffSimuQ, which shows that a broad class of open-loop analog quantum experiments is closed under automatic differentiation. A compositional transformation maps P(θ) to a derivative program D_ell[P(θ)] in the same language whose expected outcome is exactly the derivative. Only continuous evolution requires a strategy-specific rule, and we give two realizations. Our Nyquist shift rule (NSR) applies to general time-dependent evolution: we prove that the observable response to shifting the Hamiltonian along its tangent is band-limited even for non-commuting controls, enabling exact reconstruction from shifted executions. For involutory generators, a parameter-shift realization (PSR) inserts a parameter-independent operation at a sampled time. Because derivative programs remain ordinary programs, source and derivative experiments share one compiler, which reuses the source realization, lowers branches to device-ready neutral-atom controls, and selects between NSR and PSR based on estimated cost. Under device noise, the exact derivative programs differentiate the objective realized by the device, with hardware realization errors treated separately. In machine-level noisy emulation, NSR and PSR avoid the finite-difference error floor and improve closed-loop optimization; they win in complementary cost regimes, while each derivative branch at 1000 qubits add at most 0.3% to source compilation time.
AI Summary
DiffSimuQ addresses how to turn an analog quantum experiment returning measurement samples into executable experiments estimating its parameter derivatives. It defines a language for classical sampling, continuous evolution, measurement, and weighted aggregation, with a compositional differentiation transformation whose output remains in the same language. Soundness follows by structural induction once a local evolution-gradient rule is supplied. Two rules instantiate that interface. A Nyquist shift rule (NSR) shifts $H(t)$ along its parameter tangent. An entire-function/Paley–Wiener argument establishes band limitation despite time dependence and noncommutativity, with bandwidth bounded by $\Omega_\ell=\int\operatorname{diam}(\partial_{\theta_\ell}H(t))\,dt$. This yields an exact randomized shift estimator. A stochastic parameter-shift rule (PSR), adapted from existing identities, instead inserts rotations at sampled times when touched generators are involutions. Bounded readouts and branch weights give $O((WR)^2\epsilon^{-2}\log(1/\beta))$ execution complexity. A shared compiler lowers both strategies to modeled neutral-atom controls. Two-qubit noisy emulation tests gradient accuracy and optimization; seven-qubit tests find that static strategy selection matches the cheaper estimator on 88.3% of tested cases, with at most $1.26\times$ overhead otherwise. Compilation-only tests reach 1000 qubits: source compilation takes 59.6 s, with increments of 175 ms per PSR branch and 0.191 ms per NSR branch. Scope excludes feedback, mid-circuit measurement, and parameter-dependent sampling or evolution boundaries. Noise exactness requires parameter- and shift-independent Lindblad dissipators, plus ideal PSR insertions. Finite NSR headroom and insertion errors introduce separately bounded biases. No hardware execution is reported; emulation consumes Hamiltonian segments rather than emitted pulse schedules, and finite-difference comparisons use a specified setpoint-error model.
Error found: The abstract's noisy-device exactness statement omits the parameter- and shift-independent Lindblad-noise assumption and, for PSR, the ideal-insertion requirement that qualify the actual theorems. The finite-difference setpoint-error floor is scheduling-dependent: alternating and reprogramming its two probes refreshes offsets under the paper's own model, allowing their leading error to average down rather than remain fixed.
Written by gpt-6.1-sol from the paper's full text. Automated: it can be wrong.