Fast quantum algorithm for differential equations

Mohsen Bagherimehrab, Kouhei Nakaji, Nathan Wiebe, Alán Aspuru-GuzikarXiv 2023 · DOI

Introduction

Differential equations are the bedrock of physics, chemistry, and engineering. However, solving them on classical computers is computationally expensive, especially as the required resolution increases. While Quantum Linear System Algorithms (QLSAs), such as the HHL algorithm, offer potential exponential speedups in terms of system size ($N$), they are often limited by the condition number ($\kappa$) of the discretized system.

The Challenge of Ill-Conditioned Systems

When a continuous partial differential equation (PDE) is transformed into a discrete matrix equation ($Au=b$), the difficulty of solving it is dictated by $\kappa$, which measures the solution's sensitivity to input changes. For many critical problems, $\kappa$ grows rapidly (e.g., as $N^2$) with increased resolution. Since QLSAs typically scale linearly or worse with $\kappa$, this growth can neutralize the quantum advantage. This "ill-conditioned matrix" problem has long been a bottleneck for quantum scientific computing.

Methodology: Wavelet-Based Preconditioning

The researchers introduce a hybrid approach that combines standard discretization with wavelet-based preconditioning to bypass these "speed limits."

  1. Wavelet Transformation: The algorithm maps the discretized linear system into a wavelet basis. Wavelets are functions localized in both space and frequency, making them exceptionally effective at representing differential operators.
  2. Diagonal Preconditioning: In the wavelet domain, many differential operators can be "tamed" using a simple diagonal matrix. This ensures that the condition number of the resulting system remains constant, regardless of how large $N$ becomes.
  3. Quantum Implementation: A major challenge is that the preconditioner is non-unitary. Applying it directly would normally lead to an exponentially small success probability. To solve this, the authors construct a new "solution state" $|\psi\rangle$ and a modified observable $M'$ using ancilla qubits. Measuring $|\psi\rangle$ yields the same physical information (expectation values) as the original solution without needing to prepare the exact state $|u\rangle$.
Quantum circuit diagrams for the proposed algorithm, showing the integration of the wavelet transform and preconditioning steps.

Key Results

Numerical simulations validated the theory across several differential operators, including Poisson-like second-order derivatives ($\mathcal{L}_1$), convection-diffusion-reaction operators ($\mathcal{L}_2$), and operators with varying coefficients ($\mathcal{L}_3$).

  • Constant Scaling: Results confirmed that after wavelet preconditioning, the condition number remains flat even as the system size $N$ grows to thousands of points.
  • Exponential Speedup: The total gate complexity scales as $O(d \cdot n^2)$ (where $n = \log N$ and $d$ is the dimension), representing a true exponential speedup over the best classical solvers for this class of problems.
  • Wavelet Sensitivity: The choice of wavelet family (e.g., Daubechies, Symlets, Coiflets, or CDF) affects performance. For instance, the CDF 5/3 wavelet produced the lowest condition numbers in 1D tests.
Comparison of condition numbers with and without preconditioning, demonstrating the constant scaling achieved across various operators and wavelet families.

Discussion and Limitations

While the algorithm provides a significant breakthrough, it is currently limited to "elliptic" or "coercive" PDEs where the operator is symmetric and well-behaved. Its extension to highly non-symmetric or hyperbolic systems, such as those in fluid dynamics, remains an open question. Furthermore, like most quantum algorithms, it assumes the existence of efficient "oracles" to encode the matrix $A$ and vector $b$ into quantum states—a non-trivial task for real-world engineering problems.

Conclusion

By using wavelets as a mathematical "lens," this algorithm effectively neutralizes the stiffness of differential operators. This allows for the solution of a broad class of PDEs with a complexity that is polylogarithmic in system size and independent of the condition number, paving the way for practical quantum advantage in scientific computing.

Summary updated

BibTeX
@misc{bagherimehrab2023fast,
  author = {Mohsen Bagherimehrab and Kouhei Nakaji and Nathan Wiebe and Alán Aspuru-Guzik},
  title = {{Fast quantum algorithm for differential equations}},
  year = {2023},
  eprint = {2306.11802},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.11802},
}
Figure