Internal:Quantum PDEs
Quantum PDE Solver
The goal of this effort is to produce a solution to Partial Differential Equations (PDEs) using a gate-based quantum computer. This page provides a detailed explanation of the theory and implementation of the method.
Introduction
For those viewing this page, there is little need to review the importance of solving PDEs in a computationally feasible manner. Applications range from heat transfer to quantum mechanics. Systems of linear PDEs can be efficiently solved by finding the solution to the linear system of equations Ax = b, where the n x n matrix A and the n x 1 vector b have known values. The most basic ways of computing this solution using classical computing are through computing the inverse and transforming the matrix into Reduced Row Echelon Form (RREF). Computing the matrix inverse is extremely computationally expensive, and transforming to RREF is slightly less so. The intent of this study is to harness the parallel nature of quantum mechanics to solve these systems faster. It is important to note that many systems of equation intrinsically have dependence between each equation, which does make it difficult to make it fully parallel. A combination of matrix preconditioning and quantum principles should help to alleviate these concerns.
State Preparation
The first step in any quantum circuit is to prepare the state. In the case of of linear system, this involves moving the vector b into a qubit register. Araujo et al. describe a computationally efficient method of doing so in [1]. In summary, their method involves a circuit which uses a series of y-axis Controlled Rotation (CROT) gates to progressively divide the qubits into their desired probabilities measured in the computational basis state. One might prefer the authors' circuit in Figure 1 and probability tree in Figure 2 as a way of visualizing the process.

As can be seen, each parent's probability p_c creates the Pythagorean tripe with its two children, p_a and p_b. The left-most leaf of the binary tree represents the probability of find the state |000> and the right-most leaf represents |111>. The procedure can be written as follows:
- Normalize the input vector of size 2^n
- Calculate the L2 norm for every two children recursively and store it as the parent
- Calculate the angle for each split by taking twice the arcsine of the right child (opposite) divided by the parent (hypotenuse)
These angles are then fed into the quantum circuit in Figure 1 as y-axis CROT gates, using the previous qubits to specify which computational basis to apply it to.
References
[1] Araujo, I.F., Park, D.K., Petruccione, F. et al. A divide-and-conquer algorithm for quantum state preparation. Sci Rep 11, 6329 (2021). https://doi.org/10.1038/s41598-021-85474-1
[2] Grover, Lov, και Terry Rudolph. ‘Creating superpositions that correspond to efficiently integrable probability distributions’. Web.
[3] Harrow, Aram W., Avinatan Hassidim, και Seth Lloyd. ‘Quantum Algorithm for Linear Systems of Equations’. Phys. Rev. Lett. 103 (2009): 150502. Web.
[4] Berry, Dominic W. κ.ά. ‘Efficient Quantum Algorithms for Simulating Sparse Hamiltonians’. Communications in Mathematical Physics 270.2 (2006): 359–371. Web.
[5] Childs, Andrew M. ‘On the Relationship Between Continuous- and Discrete-Time Quantum Walk’. Communications in Mathematical Physics 294.2 (2009): 581–603. Web.
[6] Berry, Dominic W. κ.ά. ‘Quantum Algorithm for Linear Differential Equations with Exponentially Improved Dependence on Precision’. Communications in Mathematical Physics 356.3 (2017): 1057–1081. Web.
[7] Berry, Dominic W. ‘High-order quantum algorithm for solving linear differential equations’. Journal of Physics A: Mathematical and Theoretical 47.10 (2014): 105301. Web.
[8] Kiani, Bobak κ.ά. ‘Quantum advantage for differential equation analysis’. Physical Review A 105 (02 2022): n. pag. Web.