Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2610.36167

Analog Quantum Experiments Meet Automatic Differentiation - from Programs to Atoms

Yue Shi, Pengyu Liu, Yuxiang Peng

quant-phSubmitted Oct 26, 2026• Announced Oct 28, 2026• 0 citations
arXivHTMLPDF

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.

Little sign of AI-generated textStrong assumptionsMissing comparison

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.

Related papers

Efficient Quantum Gradient and Higher-Order Derivative Estimation Via Generalized Hadamard Test

Dantong Li, Dikshant Dulal, Mykhailo Ohorodnikov +2 more

In the context of Noisy Intermediate-Scale Quantum (NISQ) computing, parameterized quantum circuits (PQCs) are a promising paradigm for quantum sensing, optimal control, optimization, and machine learning on near-term quantum hardware. Gradient-based methods are crucial for analyzing PQCs and offer significant advantages in the convergence rates of Variational Quantum Algorithms (VQAs) compared to gradient-free methods. However, existing gradient estimation techniques-such as Finite Difference, Parameter Shift Rule, Hadamard Test, and Direct Hadamard Test-can yield suboptimal circuits for certain PQCs. To address these limitations, we introduce the Flexible Hadamard Test, which can invert the roles of ansatz generators and observables in first-order gradient estimation, enabling the use of measurement optimization techniques to improve circuit efficiency. For higher-order derivatives, we propose the$k$-fold Hadamard Test, which evaluates higher-order partial derivatives using a single quantum circuit. Additionally, we present Quantum Automatic Differentiation (QAD)-a unified gradient estimation framework that adaptively selects the most efficient method for each parameter in a PQC, departing from the standard practice of using a single method uniformly. Through extensive numerical experiments, we demonstrate that our proposed methods yield up to a linear-factor reduction in circuit execution cost for real VQA applications. These advances accelerate quantum algorithm training and provide practical utility in the NISQ era.

arXiv:2408.05406•IEEE International Conference on Quantum Computing and Engineering (QCE)•Aug 30, 2025•12 citations

Measuring Analytic Gradients of General Quantum Evolution with the Stochastic Parameter Shift Rule

Leonardo Banchi, Gavin E. Crooks

Hybrid quantum-classical optimization algorithms represent one of the most promising application for near-term quantum computers. In these algorithms the goal is to optimize an observable quantity with respect to some classical parameters, using feedback from measurements performed on the quantum device. Here we study the problem of estimating the gradient of the function to be optimized directly from quantum measurements, generalizing and simplifying some approaches present in the literature, such as the so-called parameter-shift rule. We derive a mathematically exact formula that provides a stochastic algorithm for estimating the gradient of any multi-qubit parametric quantum evolution, without the introduction of ancillary qubits or the use of Hamiltonian simulation techniques. The gradient measurement is possible when the underlying device can realize all Pauli rotations in the expansion of the Hamiltonian whose coefficients depend on the parameter. Our algorithm continues to work, although with some approximations, even when all the available quantum gates are noisy, for instance due to the coupling between the quantum device and an unknown environment.

arXiv:2005.10299•Quantum•Jan 25, 2021•182 citations

Generalized quantum circuit differentiation rules

Oleksandr Kyriienko, Vincent E. Elfving

Variational quantum algorithms that are used for quantum machine learning rely on the ability to automatically differentiate parametrized quantum circuits with respect to underlying parameters. Here we propose the rules for differentiating quantum circuits (unitaries) with arbitrary generators. Unlike the standard parameter-shift rule valid for unitaries generated by operators with spectra limited to at most two unique eigenvalues (represented by involutory and idempotent operators), our approach also works for generators with a generic nondegenerate spectrum. Based on a spectral decomposition, we derive a simple recipe that allows explicit derivative evaluation. The derivative corresponds to the weighted sum of measured expectations for circuits with shifted parameters. The number of function evaluations is equal to the number of unique positive nonzero spectral gaps (eigenvalue differences) for the generator. We apply the approach to relevant examples of two-qubit gates, among others showing that the so-called fermionic simulation (fSim) gate can be differentiated using four measurements. Additionally, we present generalized differentiation rules for the case of Pauli-string generators, based on distinct shifts (here referred to as the triangulation approach), and analyze the variance for derivative measurements in different scenarios. Our work offers a toolbox for the efficient hardware-oriented differentiation needed for circuit optimization and operator-based derivative representation.

arXiv:2108.01218•Physical Review A•Nov 15, 2021•98 citations

QDiff: Differential Testing of Quantum Software Stacks

Jiyuan Wang, Qian Zhang, Guoqing Harry Xu +1 more

Over the past few years, several quantum software stacks (QSS) have been developed in response to rapid hardware advances in quantum computing. A QSS includes a quantum programming language, an optimizing compiler that translates a quantum algorithm written in a high-level language into quantum gate instructions, a quantum simulator that emulates these instructions on a classical device, and a software controller that sends analog signals to a very expensive quantum hardware based on quantum circuits. In comparison to traditional compilers and architecture simulators, QSSes are difficult to tests due to the probabilistic nature of results, the lack of clear hardware specifications, and quantum programming complexity. This work devises a novel differential testing approach for QSSes, named QDIFF with three major innovations: (1) We generate input programs to be tested via semantics-preserving, source to source transformation to explore program variants. (2) We speed up differential testing by filtering out quantum circuits that are not worthwhile to execute on quantum hardware by analyzing static characteristics such as a circuit depth, 2 qubit gate operations, gate error rates, and T1 relaxation time. (3) We design an extensible equivalence checking mechanism via distribution comparison functions such as Kolmogorov Smirnov test and cross entropy

quant-pharXiv:2611.08220•IEEE/ACM International Conference on Automated Software Engineering (ASE)•Nov 6, 2026•128 citations

Benchmarking Modular Optimization Strategies for Parameterized Quantum Circuits

Carla Cotea, Stefan Balauca, Andreea Arusoaie

Training parameterized quantum circuits requires balancing optimization progress with limited evaluation budgets and the statistical uncertainty of near-term quantum hardware. We present a modular benchmarking framework that separates quantum search-direction estimation from classical parameter-update rules, allowing their interactions and sensitivities to be examined independently. We evaluate a suite of gradient-based, stochastic, and derivative-free optimizers across combinatorial optimization using the Quantum Approximate Optimization Algorithm (QAOA), supervised quantum machine learning using Iris classification and a quantum convolutional neural network (QCNN) for binary MNIST classification, and quantum chemistry using the variational quantum eigensolver (VQE) for molecular hydrogen. By separating objective evaluations from sample-circuit costs under finite-shot simulation and physical execution on a 156-qubit processor, we compare optimizer behavior across workloads with different parameter counts and measurement requirements. Four selected simulator and hardware case studies report terminal and best observed objectives separately, alongside post-training classifier accuracies. The comparisons include selected MaxCut and hydrogen trajectories and illustrate workload-dependent objective changes and evaluation costs, while the simulator benchmark compares both peak and mean performance across three seeds. The hardware runs do not establish an optimizer ranking or isolate a causal effect of device noise.

quant-pharXiv:2610.10254•Oct 8, 2026•0 citations

Quantum Optimal Control via Semi-Automatic Differentiation

Michael H. Goerz, Sebastian Camilo Carrasco, Vladimir S. Malinovsky

We develop a framework of "semi-automatic differentiation" that combines existing gradient-based methods of quantum optimal control with automatic differentiation. The approach allows to optimize practically any computable functional and is implemented in two open source Julia packages, G R A P E . j l and K r o t o v . j l , part of the Q u a n t u m C o n t r o l . j l framework. Our method is based on formally rewriting the optimization functional in terms of propagated states, overlaps with target states, or quantum gates. An analytical application of the chain rule then allows to separate the time propagation and the evaluation of the functional when calculating the gradient. The former can be evaluated with great efficiency via a modified GRAPE scheme. The latter is evaluated with automatic differentiation, but with a profoundly reduced complexity compared to the time propagation. Thus, our approach eliminates the prohibitive memory and runtime overhead normally associated with automatic differentiation and facilitates further advancement in quantum control by enabling the direct optimization of non-analytic functionals for quantum information and quantum metrology, especially in open quantum systems. We illustrate and benchmark the use of semi-automatic differentiation for the optimization of perfectly entangling quantum gates on superconducting qubits coupled via a shared transmission line. This includes the first direct optimization of the non-analytic gate concurrence.

arXiv:2205.15044•Quantum•Dec 7, 2022•51 citations
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.
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)H(t)H(t) along its parameter tangent. An entire-function/Paley–Wiener argument establishes band limitation despite time dependence and noncommutativity, with bandwidth bounded by Ωℓ=∫diam⁡(∂θℓH(t)) dt\Omega_\ell=\int\operatorname{diam}(\partial_{\theta_\ell}H(t))\,dtΩℓ​=∫diam(∂θℓ​​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ϵ−2log⁡(1/β))O((WR)^2\epsilon^{-2}\log(1/\beta))O((WR)2ϵ−2log(1/β)) 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×1.26\times1.26× 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.
In the context of Noisy Intermediate-Scale Quantum (NISQ) computing, parameterized quantum circuits (PQCs) are a promising paradigm for quantum sensing, optimal control, optimization, and machine learning on near-term quantum hardware. Gradient-based methods are crucial for analyzing PQCs and offer significant advantages in the convergence rates of Variational Quantum Algorithms (VQAs) compared to gradient-free methods. However, existing gradient estimation techniques-such as Finite Difference, Parameter Shift Rule, Hadamard Test, and Direct Hadamard Test-can yield suboptimal circuits for certain PQCs. To address these limitations, we introduce the Flexible Hadamard Test, which can invert the roles of ansatz generators and observables in first-order gradient estimation, enabling the use of measurement optimization techniques to improve circuit efficiency. For higher-order derivatives, we propose thekkk-fold Hadamard Test, which evaluates higher-order partial derivatives using a single quantum circuit. Additionally, we present Quantum Automatic Differentiation (QAD)-a unified gradient estimation framework that adaptively selects the most efficient method for each parameter in a PQC, departing from the standard practice of using a single method uniformly. Through extensive numerical experiments, we demonstrate that our proposed methods yield up to a linear-factor reduction in circuit execution cost for real VQA applications. These advances accelerate quantum algorithm training and provide practical utility in the NISQ era.
Hybrid quantum-classical optimization algorithms represent one of the most promising application for near-term quantum computers. In these algorithms the goal is to optimize an observable quantity with respect to some classical parameters, using feedback from measurements performed on the quantum device. Here we study the problem of estimating the gradient of the function to be optimized directly from quantum measurements, generalizing and simplifying some approaches present in the literature, such as the so-called parameter-shift rule. We derive a mathematically exact formula that provides a stochastic algorithm for estimating the gradient of any multi-qubit parametric quantum evolution, without the introduction of ancillary qubits or the use of Hamiltonian simulation techniques. The gradient measurement is possible when the underlying device can realize all Pauli rotations in the expansion of the Hamiltonian whose coefficients depend on the parameter. Our algorithm continues to work, although with some approximations, even when all the available quantum gates are noisy, for instance due to the coupling between the quantum device and an unknown environment.
Variational quantum algorithms that are used for quantum machine learning rely on the ability to automatically differentiate parametrized quantum circuits with respect to underlying parameters. Here we propose the rules for differentiating quantum circuits (unitaries) with arbitrary generators. Unlike the standard parameter-shift rule valid for unitaries generated by operators with spectra limited to at most two unique eigenvalues (represented by involutory and idempotent operators), our approach also works for generators with a generic nondegenerate spectrum. Based on a spectral decomposition, we derive a simple recipe that allows explicit derivative evaluation. The derivative corresponds to the weighted sum of measured expectations for circuits with shifted parameters. The number of function evaluations is equal to the number of unique positive nonzero spectral gaps (eigenvalue differences) for the generator. We apply the approach to relevant examples of two-qubit gates, among others showing that the so-called fermionic simulation (fSim) gate can be differentiated using four measurements. Additionally, we present generalized differentiation rules for the case of Pauli-string generators, based on distinct shifts (here referred to as the triangulation approach), and analyze the variance for derivative measurements in different scenarios. Our work offers a toolbox for the efficient hardware-oriented differentiation needed for circuit optimization and operator-based derivative representation.
Over the past few years, several quantum software stacks (QSS) have been developed in response to rapid hardware advances in quantum computing. A QSS includes a quantum programming language, an optimizing compiler that translates a quantum algorithm written in a high-level language into quantum gate instructions, a quantum simulator that emulates these instructions on a classical device, and a software controller that sends analog signals to a very expensive quantum hardware based on quantum circuits. In comparison to traditional compilers and architecture simulators, QSSes are difficult to tests due to the probabilistic nature of results, the lack of clear hardware specifications, and quantum programming complexity. This work devises a novel differential testing approach for QSSes, named QDIFF with three major innovations: (1) We generate input programs to be tested via semantics-preserving, source to source transformation to explore program variants. (2) We speed up differential testing by filtering out quantum circuits that are not worthwhile to execute on quantum hardware by analyzing static characteristics such as a circuit depth, 2 qubit gate operations, gate error rates, and T1 relaxation time. (3) We design an extensible equivalence checking mechanism via distribution comparison functions such as Kolmogorov Smirnov test and cross entropy
Training parameterized quantum circuits requires balancing optimization progress with limited evaluation budgets and the statistical uncertainty of near-term quantum hardware. We present a modular benchmarking framework that separates quantum search-direction estimation from classical parameter-update rules, allowing their interactions and sensitivities to be examined independently. We evaluate a suite of gradient-based, stochastic, and derivative-free optimizers across combinatorial optimization using the Quantum Approximate Optimization Algorithm (QAOA), supervised quantum machine learning using Iris classification and a quantum convolutional neural network (QCNN) for binary MNIST classification, and quantum chemistry using the variational quantum eigensolver (VQE) for molecular hydrogen. By separating objective evaluations from sample-circuit costs under finite-shot simulation and physical execution on a 156-qubit processor, we compare optimizer behavior across workloads with different parameter counts and measurement requirements. Four selected simulator and hardware case studies report terminal and best observed objectives separately, alongside post-training classifier accuracies. The comparisons include selected MaxCut and hydrogen trajectories and illustrate workload-dependent objective changes and evaluation costs, while the simulator benchmark compares both peak and mean performance across three seeds. The hardware runs do not establish an optimizer ranking or isolate a causal effect of device noise.
We develop a framework of "semi-automatic differentiation" that combines existing gradient-based methods of quantum optimal control with automatic differentiation. The approach allows to optimize practically any computable functional and is implemented in two open source Julia packages, G R A P E . j l and K r o t o v . j l , part of the Q u a n t u m C o n t r o l . j l framework. Our method is based on formally rewriting the optimization functional in terms of propagated states, overlaps with target states, or quantum gates. An analytical application of the chain rule then allows to separate the time propagation and the evaluation of the functional when calculating the gradient. The former can be evaluated with great efficiency via a modified GRAPE scheme. The latter is evaluated with automatic differentiation, but with a profoundly reduced complexity compared to the time propagation. Thus, our approach eliminates the prohibitive memory and runtime overhead normally associated with automatic differentiation and facilitates further advancement in quantum control by enabling the direct optimization of non-analytic functionals for quantum information and quantum metrology, especially in open quantum systems. We illustrate and benchmark the use of semi-automatic differentiation for the optimization of perfectly entangling quantum gates on superconducting qubits coupled via a shared transmission line. This includes the first direct optimization of the non-analytic gate concurrence.