Differential equation quantum solvers: engineering measurements to reduce cost
Abstract Solving differential equations (DEs) is fundamental to scientific modeling, yet standard quantum approaches like Differentiable Quantum Circuits (DQC) suffer from prohibitive computational costs. This paper summarizes a novel "measure-first" strategy developed by researchers at PASQAL. By utilizing Trainable Observable (TO) and Flipped Shadow (FS) models, the researchers decouple quantum circuit execution from the iterative training loop. This approach achieves up to a 100-fold reduction in quantum circuit evaluations while maintaining high accuracy across linear and non-linear benchmarks, including the stationary Burgers equation.
Introduction
Differential equations serve as the mathematical foundation for diverse fields, ranging from fluid dynamics and weather forecasting to quantitative finance. As classical solvers face limitations in high-dimensional spaces, quantum computing offers a promising alternative. Differentiable Quantum Circuits (DQC) have recently emerged as a quantum analogue to Physics-Informed Neural Networks (PINNs). In a standard DQC framework, a quantum circuit represents the solution function, and its parameters are optimized to satisfy the underlying DE at specific "collocation points."
However, the practical utility of DQC is currently hampered by the "quantum tax"—the high cost of repeatedly executing quantum circuits. In traditional DQC, every training step requires circuit runs for every collocation point, leading to a cost scaling of $O(Lm)$, where $L$ is the number of training iterations and $m$ is the number of points. For high-resolution simulations, this scaling becomes a significant bottleneck.
Methods: A Measure-First Strategy
To address this bottleneck, the authors propose shifting from a "run-every-time" paradigm to a "measure-first" strategy. This involves two primary protocols:
- Trainable Observable (TO) Model: In this model, the quantum circuit remains fixed throughout the training process. Instead of optimizing the circuit parameters, the measurement operator itself is treated as the trainable component. By pre-calculating a set of measurements for all collocation points before training begins, the iterative optimization can be performed entirely on a classical computer. This reduces the quantum cost to $O(dm)$, where $d$ is the number of observables—typically much smaller than the number of training steps $L$.
- Flipped Shadow (FS) Model: This protocol utilizes "classical shadows," a technique for creating efficient classical sketches of quantum states. By "flipping" the model so that the input variable $x$ is encoded in the measurement rather than the state preparation, the solution can be estimated at any number of points $m$ using only a few quantum snapshots. This results in an exponential cost saving, scaling as $O(\log(m))$.
Experimental Benchmarks
The researchers evaluated these protocols against four benchmark problems: a damped oscillator, the stationary Burgers equation, coupled 1D equations, and a 2D equation.
As shown in Figure 1, both the TO and FS models accurately capture the behavior of the damped oscillator. The loss curves demonstrate that these engineered measurement approaches converge effectively, often reaching accuracies comparable to the original DQC protocol but at a fraction of the quantum cost. The "obs-loc" variants in the figure represent the use of k-local Pauli strings, which maintain expressivity without exponential measurement overhead.
A critical test for any DE solver is its ability to handle non-linearity. The stationary Burgers equation, known for its "shock wave" solutions, provides a rigorous test case.
Figure 2 highlights the success of the proposed models in solving the Burgers equation. The TO model successfully resolves the non-linear features of the solution, proving that the "measure-first" approach is not limited to simple linear systems.
Key Insights and Results
The primary breakthrough of this work is the decoupling of quantum hardware from the iterative classical optimization loop. By moving the variational block to the measurement operator, the researchers reported up to a 100-fold reduction in quantum circuit evaluations compared to standard DQC.
Furthermore, the study reveals complementary strengths between the models: the TO model is ideal for problems requiring many training iterations, whereas the FS model excels when a very dense grid of points is necessary. The success of the TO model using 2-local Pauli strings suggests that complex equations can be solved efficiently without the need for full quantum state tomography.
Conclusion and Future Directions
The "measure-first" approach significantly lowers the barrier to using quantum circuits for differential equations. While the TO model introduces a trade-off between the number of observables and classical optimization complexity, its efficiency gains are undeniable. Future research will focus on the performance of these engineered measurements on real, noisy NISQ hardware and the potential integration of neural network "surrogates" to further minimize quantum evaluations. This work marks a substantial step toward making quantum-enhanced scientific computing a practical reality.
Summary updated