Deep-learning-based quantum algorithms for solving nonlinear partial differential equations

Lukas Mouton, Florentin Reiter, Ying Chen, Patrick RebentrostPhysical 2023

Abstract

Partial differential equations (PDEs) frequently appear in the natural sciences and related disciplines. Solving them is often challenging, particularly in high dimensions, due to the "curse of dimensionality". In this work, we explore the potential for enhancing a classical deep learning-based method for solving high-dimensional nonlinear partial differential equations with suitable quantum subroutines. First, with near-term noisy intermediate-scale quantum computers in mind, we construct architectures employing variational quantum circuits and classical neural networks in conjunction. While the hybrid architectures show equal or worse performance than their fully classical counterparts in simulations, they may still be of use in very high-dimensional cases or if the problem is of a quantum mechanical nature. Next, we identify the bottlenecks imposed by Monte Carlo sampling and the training of the neural networks. We find that quantum-accelerated Monte Carlo methods offer the potential to speed up the estimation of the loss function. In addition, we identify and analyse the trade-offs when using quantum-accelerated Monte Carlo methods to estimate the gradients with different methods, including a recently developed backpropagation-free forward gradient method. Finally, we discuss the usage of a suitable quantum algorithm for accelerating the training of feed-forward neural networks. Hence, this work provides different avenues with the potential for polynomial speedups for deep learning-based methods for nonlinear partial differential equations.

Introduction

High-dimensional nonlinear partial differential equations (PDEs) are fundamental to various fields, including fluid dynamics, finance, and quantum mechanics. However, traditional grid-based numerical methods suffer from the "curse of dimensionality," where computational costs grow exponentially with the number of variables. Recent advances in classical deep learning have introduced a promising alternative: reformulating PDEs as Stochastic Differential Equations (SDEs) and using neural networks (NNs) to approximate the spatial gradients. While effective, this approach faces significant bottlenecks in Monte Carlo sampling and the scaling of training for very large networks. This paper investigates how quantum computing subroutines can alleviate these bottlenecks, offering paths toward polynomial speedups.

Methodology: Quantum-Enhanced SDE Solvers

The core of the proposed approach is the reformulation of a nonlinear PDE into a system of SDEs. In this framework, the solution $u(t, x)$ and its gradient $\nabla u(t, x)$ are approximated along sample paths.

Architecture of the deep learning-based PDE solver using SDE reformulation.

As shown in the figure above, the solver progresses through discrete time steps. At each step, a neural network (or a hybrid quantum-classical counterpart) predicts the gradient, which is then used to update the state and the estimated solution. The researchers propose three primary avenues for quantum enhancement:

  1. Hybrid Variational Architectures: For the Noisy Intermediate-Scale Quantum (NISQ) era, classical neural network layers are replaced or augmented with Parametrized Quantum Circuits (PQCs). These circuits act as high-dimensional feature maps, potentially capturing complex correlations more efficiently than classical layers.
  2. Quantum-Accelerated Monte Carlo (QAMC): The estimation of the loss function in the SDE approach relies on Monte Carlo sampling. By employing quantum amplitude estimation, the error tolerance $\epsilon$ can be improved with a sample complexity of $\tilde{O}(1/\epsilon)$, a quadratic speedup over the classical $O(1/\epsilon^2)$.
  3. Fault-Tolerant Acceleration (RIPE): For future hardware, the Robust Inner Product Estimation (RIPE) algorithm can accelerate the training of feed-forward networks. This allows the training time to scale linearly with the number of neurons rather than the number of connections (edges), providing a quadratic speedup in the problem's dimensionality $d$.

Results and Performance Analysis

The study evaluated these methods using synthetic benchmarks, most notably the Hamilton-Jacobi-Bellman (HJB) equation in 5, 10, and 20 dimensions.

Comparison of training loss between classical and hybrid quantum-classical models for the HJB equation.

The simulation results, illustrated in the figure above, demonstrate that both classical and hybrid models successfully converge to the correct solution. However, the hybrid models generally exhibited equal or slightly slower convergence compared to their fully classical counterparts. This suggests that for "classically-natured" problems like the HJB equation, the overhead of quantum circuits may not yet provide an empirical advantage at these scales. The true strength of hybrid models may lie in problems with inherent quantum mechanical properties or at much higher dimensionalities.

Beyond empirical simulations, the paper provides theoretical proofs for speedups in fault-tolerant settings. Specifically, the use of RIPE can reduce the complexity of evaluating and training NNs from $O(d^2)$ to $O(d)$. Furthermore, the researchers identified the "Forward Gradient" method as a memory-efficient alternative to backpropagation, which is particularly advantageous for quantum systems where qubit resources are limited.

Discussion and Conclusion

This work establishes a comprehensive roadmap for integrating quantum subroutines into deep learning-based PDE solvers. While current NISQ-era hybrid models show mixed results, the theoretical potential for quadratic speedups in both error tolerance and dimensionality is significant.

Key challenges remain, including the requirement for fault-tolerant hardware and Quantum RAM (QRAM) for the most impactful algorithms. Additionally, the integration of different quantum subroutines requires careful handling of state measurements to avoid collapsing necessary superpositions. Future research into higher-order SDE discretization schemes, such as the Milstein scheme, may further enhance the gains offered by Quantum-Accelerated Multi-Level Monte Carlo (QAMLMC) methods. Ultimately, these quantum-boosted techniques represent a vital step toward overcoming the curse of dimensionality in high-stakes scientific computing.

Summary updated

BibTeX
@inproceedings{mouton2023deep,
  author = {Lukas Mouton and Florentin Reiter and Ying Chen and Patrick Rebentrost},
  title = {{Deep-learning-based quantum algorithms for solving nonlinear partial differential equations}},
  booktitle = {Physical},
  year = {2023},
}
Figure