Papers
Topics
Authors
Recent
Search
2000 character limit reached

Quantum physics informed neural networks for multi-variable partial differential equations

Published 15 Mar 2025 in quant-ph, math-ph, and math.MP | (2503.12244v1)

Abstract: Quantum Physics-Informed Neural Networks (QPINNs) integrate quantum computing and machine learning to impose physical biases on the output of a quantum neural network, aiming to either solve or discover differential equations. The approach has recently been implemented on both the gate model and continuous variable quantum computing architecture, where it has been demonstrated capable of solving ordinary differential equations. Here, we aim to extend the method to effectively address a wider range of equations, such as the Poisson equation and the heat equation. To achieve this goal, we introduce an architecture specifically designed to compute second-order (and higher-order) derivatives without relying on nested automatic differentiation methods. This approach mitigates the unwanted side effects associated with nested gradients in simulations, paving the way for more efficient and accurate implementations. By leveraging such an approach, the quantum circuit addresses partial differential equations -- a challenge not yet tackled using this approach on continuous-variable quantum computers. As a proof-of-concept, we solve a one-dimensional instance of the heat equation, demonstrating its effectiveness in handling PDEs. Such a framework paves the way for further developments in continuous-variable quantum computing and underscores its potential contributions to advancing quantum machine learning.

Summary

  • The paper introduces a hybrid QPINN framework combining quantum neural networks and physics-informed neural networks to solve PDEs without gradient nesting.
  • The paper demonstrates accurate solutions for the 1D Poisson and Heat equations with NMSE as low as 1.39×10⁻⁵, showcasing its precision.
  • The paper outlines potential scalability to quantum hardware, paving the way for advanced quantum machine learning applications.

Quantum Physics-Informed Neural Networks for Multi-Variable Partial Differential Equations

This technical essay explores the hybridization of quantum computing and classical machine learning techniques to develop Quantum Physics-Informed Neural Networks (QPINNs). The QPINNs framework is proposed for solving complex partial differential equations (PDEs) by leveraging quantum computational models.

Framework and Methodology

Quantum Neural Network Architecture

The QPINN combines Quantum Neural Networks (QNNs) with Physics-Informed Neural Networks (PINNs), forming a novel architecture that effectively captures both the quantum computational advantages and the constraints imposed by physical laws. This architecture is implemented in a Continuous Variable Quantum Computing (CVQC) framework. The use of continuous variables, as opposed to discrete ones, allows the manipulation of quantum information using photonic states, thereby mimicking the operations in classical neural networks through quantum gates. Figure 1

Figure 1: (a) Quantum circuit building block for CVQC-based quantum neural network. (b) Quantum Neural Network Layer for a multi-qumode setup.

Encoding and Measurement: The network employs qumodes to represent inputs and outputs, encoding the problem domain variables through displacement gates. Quantum measurements are performed using homodyne detection, which enables the extraction of desired solution parameters aligned with the encoded physical model.

Building QPINNs

The QPINN framework enhances classical PINNs by incorporating quantum computational layers, designed to avoid the computationally expensive nested gradient calculations typically required for solving PDEs. The architecture features a newly designed quantum circuit capable of computing higher-order derivatives necessary for PDE solutions, such as the heat equation and Poisson's equation (Figures 2 and 3). Figure 2

Figure 2: QPINN overall structure. The encoding is implemented by a set of displacement gates D(x)^\hat{D(\boldsymbol{x})}.

Loss Function Construction: Central to the QPINN implementation is a well-defined loss function that consists of multiple components: physics loss for PDE constraints, boundary condition loss, trace loss for state normalization, additional terms for further constraints, and consistency loss to enforce derivative calculations. These components ensure the trained model retains physical fidelity across its predictions.

Implementation Insights

Training and Optimization: The quantum training dynamics require adopting gradient-free optimization techniques due to the challenges in deriving exact gradients. This is complemented by modern automatic differentiation frameworks, like TensorFlow, which enhance simulation capabilities and expedite convergence when coupled with Strawberry Fields for quantum circuit simulations. Figure 3

Figure 3: (a) Schematic network setup for solving the 1D Poisson equation. (b) Classical equivalent.

Experimental Results

Solving PDEs Using QPINNs

1D Poisson Equation: The network resolves this equation by efficiently incorporating sinusoidal terms and boundary conditions, achieving a Normalized Mean Squared Error (NMSE) of 1.39×1051.39 \times 10^{-5}, thereby demonstrating its capability for accurate solutions without gradient nesting. Figure 4

Figure 4: Training progress for the 1D Poisson equation, showing convergence to a solution.

Figure 5

Figure 5: Different loss components during training showcase optimization stability.

Heat Equation: Addressing the heat equation involves the modeling of temporal evolution in a 1D medium. The QPINN accurately simulates this behavior, producing a thermal profile with precise temperature gradients and satisfactory convergence metrics. Figure 6

Figure 6: Network setup for solving the Heat equation.

Precision and Scalability: Despite operating on quantum simulators with inherent constraints, the QPINN framework shows promise in handling higher dimensional PDEs by aligning with quantum computational enhancements over time. This suggests potential scalability on quantum hardware, subject to future experimental advancements. Figure 7

Figure 7: Heatmap illustrating temperature propagation over time.

Conclusion

The development of QPINNs marks an important step toward leveraging quantum advantages in solving complex PDEs. While current implementations are contingent on classical simulations, transitioning to real quantum hardware offers exciting prospects. Future research will focus on addressing inherent challenges such as gradient computation on quantum devices, optimization efficiency, and exploring broader applications within quantum machine learning contexts. The synergistic marriage of quantum mechanics and neural network architectures promises unlock potential in fields transcending computational constraints seen in classical counterparts.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Open Problems

We haven't generated a list of open problems mentioned in this paper yet.

Collections

Sign up for free to add this paper to one or more collections.

Tweets

Sign up for free to view the 1 tweet with 37 likes about this paper.