Abstract
The quantum imaginary time evolution (QITE) methodology was developed to overcome a critical issue as regards non-unitarity in the implementation of imaginary time evolution on a quantum computer. QITE has since been used to approximate ground states of various physical systems. In this paper, we demonstrate a practical application of QITE as a quantum numerical solver for linear partial differential equations. Our algorithm takes inspiration from QITE in that the quantum state follows the same normalised trajectory in both algorithms. However, it is our QITE methodology’s ability to track the scale of the state vector over time that allows our algorithm to solve differential equations. We demonstrate our methodology with numerical simulations and use it to solve the heat equation in one and two dimensions using six and ten qubits, respectively.
Similar content being viewed by others
Introduction
Quantum computers promise a paradigm shift for computing technology through their capability to solve problems that are inaccessible with classical computers. It is well-understood that classical computers struggle to efficiently solve a class of problems known as optimisation, but a principal promise of quantum computing relates to the significant improvements they bestow on the computational time needed to solve such problems. Quantum computers can be applied to a range of optimisation problems that have widespread value in the real world, including scheduling and planning1, biochemical and computational biology2, and financial risk3. Quantum computers were, however, originally proposed as a means to efficiently simulate quantum Hamiltonian dynamics4. Hamiltonian simulation is a task contained in the BQP complexity class5, which is significant because tasks in this class are believed to be intractable using classical computers. Many algorithms have been proposed for Hamiltonian simulation6,7,8,9,10,11, and research has continued to improve the technique and performance of such simulations.
Gate-based quantum computers solve the Hamiltonian simulation problem by decomposing the unitary evolution operator into a series of smaller unitaries called quantum gates. The fundamental challenge is how to instruct the quantum computer on the gate set needed to approximate the unitary. Interestingly, the process to undertake Hamiltonian simulation has not yet found an established method of choice. It is achieved by either directly implementing the time evolution operator or by determining the eigenspectrum of the Hamiltonian. State-of-the-art approaches for the former include quantum walks12, qubitisation13 and quantum signal processing10. The latter is an equally difficult approach, and includes the variational quantum eigensolver (VQE)14,15,16 and quantum imaginary time evolution (QITE)17,18. These algorithms approximate the ground state of the Hamiltonian and can be applied recursively to obtain the complete eigenspectrum.
Computing the ground state energy of a Hamiltonian is of immense importance, such as in the computation of molecular and material energies19,20,21, and wavefunctions22,23,24,25. Imaginary time evolution (ITE) is a successful classical method for determining the ground state of a Hamiltonian. By treating time as an imaginary number, the non-unitary time evolution operator generated by ITE does not represent a physical process. Classically solving the imaginary time Schrödinger equation inherits the same computational complexities seen in classical simulations of quantum systems, namely the exponential overhead in maintaining the state of the system. This difficulty inspired the development of QITE as a technique to simulate imaginary time evolution on a quantum computer by evolving a quantum state in imaginary time. In the ideal case, QITE guarantees convergence to the ground state, and, indeed, it is a promising approach as attested by the increasing interest in its potential applications.
As a technique for pursuing the ground state of a Hamiltonian, QITE may be implemented in two ways. Variational QITE17 is a hybrid quantum-classical algorithm that considers a system of differential equations linking to gradients of ansatz parameters in imaginary time and coefficients that depend on measurements of the ansatz, both of which contribute to an update rule for finding the ground state. Variational QITE is well suited for noisy intermediate-scale quantum (NISQ) devices as it has a fixed cost ansatz circuit. Conversely, the imaginary time evolution may move out of the ansatz space, implying that convergence may not reflect the true ground state. Furthermore, designing a universal ansatz with a gate count that scales polynomially with the number of qubits is a challenge, explaining why most ansatzes are tailored to the Hamiltonian.
On the other hand, simulated QITE18 outlines a quantum approach for simulating imaginary time evolution, by approximating the time evolution operator with Trotter products. This implementation of simulated QITE requires significantly fewer total measurements as compared to the VQE algorithms to achieve the same level of convergence. Simulated QITE with sufficiently large unitary domains does not suffer barren plateaus, as is the case in the variational approach. In contrast, simulated QITE generates circuit depth increases that grow linearly with each imaginary time step.
Research has principally reported on ITE and QITE as methodologies for producing the ground state of a system where, under such implementations, information on the state vector’s direction represents the key ingredient in determining the ground state. More recently, QITE has been used as an approach for solving partial differential equations (PDEs)26,27,28,29, however, these implementations have been based on variational QITE, which, as mentioned above, may fail to converge if the PDE dynamics move out of the ansatz space. In this paper, we offer an alternative approach for solving linear PDEs that makes use of a simulated QITE implementation. Our extension offers a new avenue for exploration by enlarging the computational reach of the QITE methodology by our algorithm’s ability to track the trajectory and scale of the state vector over time. We demonstrate how to approximate solutions to linear PDEs discretised via finite differences. We also demonstrate our simulated QITE methodology via numerical simulations and use it to solve the heat equation in one and two dimensions.
Preliminaries
The time evolution of a quantum state, \(\psi (\vec {x},t)\), is governed by the Schrödinger equation, which takes the form
where \(\hat{H}\) is a Hermitian linear differential operator known as the Hamiltonian. Since the Hamiltonian is a Hermitian operator, it possesses a spectral decomposition with eigenvalues \(\lambda _n\) and corresponding normalised eigenstates \( {\psi _n}\). The lowest energy is known as the ground state of the system. Expanding the quantum state \(\psi (\vec {x},t)\) at the initial value \(t = 0\) in terms of its energy eigenstates, we have it that \({\psi (\vec {x},0)} = \sum _{n}{c_n{\psi _n(\vec {x})}}\), where \(c_n\) denotes the overlap of \({\psi (\vec {x},0)}\) and \({\psi _n(\vec {x})}\). The quantum state at a later time t is given by \({\psi (\vec {x},t)} = \sum _{n}{c_ne^{-\lambda _nit}{\psi _n}(\vec {x})}\). Applying the variable change \(\beta = it\) to Eq. (1) yields the imaginary time Schrödinger equation
Since the Hamiltonian \(\hat{H}\) remains the same, its solution takes the form \({\psi (\vec {x},\beta =it)} = \sum _{n}{c_ne^{-\lambda _nt} {\psi _n}(\vec {x})}\). The state \( {\psi (\vec {x},\beta )}\) represents an exponentially decaying superposition of eigenstates, which, in the limit of \(\beta \) large, yields \({\psi (\vec {x},\beta )} = {c_0e^{-\lambda _0\beta } {\psi _0}(\vec {x})}\). This demonstrates that \({\psi (\vec {x},\beta )}\) evolves parallel to the ground state of the system in the limit that imaginary time goes to infinity.
The QITE algorithm simulates the imaginary time evolution of quantum states via the Trotter product approximation. If we express the Hamiltonian as a linear combination of smaller, non-commuting operators \(\hat{H} = \sum _{I=1}^{M} \hat{h}_I\), we can approximate the imaginary time evolution operator for a small time step of \(\Delta t\) as
Since each Trotter step, \(e^{-\hat{h}_I\Delta t}\), in the product is non-unitary, the QITE algorithm approximates the normalised action of these operators on a unit quantum state \(|\bar{\psi }(t)\rangle \) through a unitary operator \(e^{-i\hat{A}\Delta t}\) such that
The Hermitian operator \(\hat{A}\) is expressed as a linear combination of smaller Hermitians, \(\hat{A} = \sum _{J=1}^{N} a_J \hat{\sigma }_J\), to ensure that the update can also be expressed as a first-order Trotter product \(e^{-i\hat{A}\Delta t} \approx \prod _{J=1}^N e^{-i a_J \hat{\sigma }_J \Delta t}\). Note the choice of \(\hat{\sigma }_J\) is such that each term in this product can be efficiently implemented with a parameterised quantum circuit. The coefficients \(a_J\) are calculated by solving a system of N linear equations constructed using the expectation values \(\langle \hat{h}_I\rangle \), \(\langle \hat{\sigma }_J^\dagger \hat{\sigma }_{J^\prime }\rangle \) and \(\langle \hat{\sigma }_J^\dagger \hat{h}_I\rangle \). Each Trotter step requires taking \(O(N^2)\) measurements to construct an \((N \times N)\) matrix equation that generates a circuit of depth O(N). Overall, simulating \(N_T\) time steps with QITE involves taking \(O(N_TMN^2)\) measurements.
The support of \(\hat{A}\) contains \(D=O(C)\) adjacent qubits surrounding the support of \(\hat{h}_I\), where C denotes the correlation length of the state \(|\bar{\psi }\rangle \). For a multi-qubit state, the correlation length C is defined to bound the correlations between observables on all pairs of qubits separated by a distance of L by \(\exp (-L/C)\)18. Insight into how C evolves under the imaginary time evolution allows us to optimise the support of \(\hat{A}\) for each Trotter step. However, since C is a difficult quantity to compute, we instead use inexact QITE to perform the simulation, assuming a constant domain size D which is chosen according to the computational resources available. Increasing values of D yield better approximations with the best approximation achieved when D equals the total number of interacting qubits. Our numerical implementations are based on inexact QITE for \(D=2,4,6\) qubits as the Hamiltonians considered only involve a maximum of six adjacent interacting qubits.
Simulating PDEs with QITE
QITE was introduced to replicate the imaginary time evolution of an initial state at every time step with the aim of producing the ground state solution. We propose to extend the scope of QITE by reimagining the role of the system’s Hamiltonian \(\hat{H}\) beyond its immediate physical interpretation to a differential operator defining a family of linear PDEs spanned by different choices of \(\hat{H}\). For instance, by considering the Hamiltonian \(\hat{H}\) to be proportional to the Laplace operator \(\nabla ^2\), the imaginary time Schrödinger equation can be interpreted as the heat equation given by
The heat equation is the quintessential parabolic partial differential equation that has played a fundamental role in developing broader understandings of PDEs. The equation ranks amongst the most widely investigated topics in the physical sciences. The heat equation bridges to probability theory through its connection with the study of random walks and Brownian motion via the Fokker–Planck equation30. The Black–Scholes equation31 of financial mathematics can be seen as a variant of the heat equation, and the Schrödinger equation reduces to a heat equation in imaginary time. From this position, QITE, offers an appealing route for simulating the normalised dynamics of this family of PDEs.
QITE seeks to determine the ground state of the system, where information relevant to the solution state is extracted from the state by taking measurement on the final quantum state. In practice, it should be expected that the number of distinct measurements required to extract this relevant information will scale polynomially with the number of qubits. For instance, in the case of the natural sciences, we typically observe associated Hamiltonians having a polynomial number of non-zero terms in the Pauli basis. Determining the exact quantum state requires quantum state tomography and exponentially many measurements. However, if we restrict ourselves to simulating non-negative functions, we can reconstruct the quantum state using only the probability distribution of the Pauli Z, computational basis, measurements, since the amplitudes of the quantum state are the square roots of the measurement probabilities of each computational basis state. For this reason, we will simulate the heat equation in one and two dimensions for non-negative solutions. To achieve this, and establish QITE as a methodology for simulating PDEs, we require, firstly, to discretise the system and, secondly, to encode the Hamiltonian in the Pauli basis.
Discretising space
Propagation of a quantum state as determined by the Schrödinger equation, Eq. (1), is defined on a domain of continuous space. To simulate these dynamics with a discrete set of qubits, we are required to discretise the continuous wavefunction \(\psi (\vec {x},t)\) to a discrete qubit state vector \(|\bar{\psi }(t)\rangle \), and calculate the corresponding qubit Hamiltonian. We encode the continuous linear differential operator to a finite difference matrix. We will first consider the one dimensional case before generalising to higher dimensions.
One dimensional space
Let us consider a function defined on a one dimensional space domain \(f:[a,b) \rightarrow \mathbb {C}\). This function can be encoded into the state vector of n-qubits by storing \(N=2^n\) uniformly spaced samples of the function in an unnormalised state vector
with the spacing \(h = \frac{b-a}{N}\) and \(|k\rangle \) denoting elements of standard basis. Next, let us consider approximating a linear partial differential operator on the discretised space using the method of finite difference approximation of derivatives. A first order finite difference takes the form \(f(x+b)-f(x+a)\) and is classified as the central difference when we have \(\delta ^1_h[f](x) = f(x+h/2) - f(x-h/2)\), for spacing h. Higher order partial differential operators are approximated by the central finite differences given by
Of particular interest is the second order partial differential operator that appears in the heat equation, which can be approximated by the difference operator
The boundary conditions determine the values of \(f_{-1}=f(a-h)\) and \(f_N=f(b)\). The difference operator under the zero boundary conditions, \(f_{-1} = f_N = 0\), is represented by the following matrix written in the standard basis
The difference operator under periodic boundary conditions, \(f_{-1}=f_{N-1}\) and \(f_N=f_0\), is represented by the following matrix written in the standard basis
Let \(\hat{D}^{(n)}_0\) denote the n-qubit second-order finite difference Hamiltonian under zero boundary conditions such that \(\hat{D}^{(n)}_0 = h^2 \hat{\delta }_{h}^{2}.\) It then follows that, in the Pauli operator basis,
To determine the Pauli basis representation of n-qubit second-order finite difference Hamiltonian under zero boundary conditions, we define
and
The two-qubit Hamiltonian is given as
From Eq. (9), we can show that the n-qubit Hamiltonian \(\hat{D}^{(n)}_0\) has the form
Similarly, we define \(\hat{D}^{(n)}_p\) to be the n-qubit second-order finite difference Hamiltonian under periodic boundary conditions. It can be shown from Eq. (10) that \(\hat{D}^{(n)}_p\) takes the form
We note that the number of Pauli strings in this decomposition scales exponentially with the number of qubits, \(M = O(2^n)\). On the other hand, the number of terms involving tensor product strings of \(\hat{A}_\swarrow \) and \(\hat{A}_\nearrow \) grows linearly, \(M = O(n)\). Interestingly, we have become aware of a protocol to measure the expectation values, \(\langle \hat{h}_I\rangle \), expressed in terms of these tensor products with a single ancilla qubit32, allowing an exponential reduction in the time complexity of this method.
Higher dimensional space
Generalising the state encoding for the one dimensional case to higher space dimensions is achieved by taking the tensor product of the qubit registers of the associated dimensions. For example, a function defined on a two-dimensional space domain \(f : [a_1,b_1)\times [a_2,b_2) \rightarrow \mathbb {C}\) can be encoded with 2n qubits by storing \(N^2\) samples in the unnormalised state vector
with spacings \(h_i = \frac{b_i - a_i}{N}\) for \(i=1,2\). Similarly, we can construct the associated finite difference operator by taking the tensor products of the underlying one dimensional operators. For instance, the two dimensional Laplace operator, \(\nabla ^2 = \partial ^2_x + \partial ^2_y\), is represented by the following 2n-qubit finite difference operator
The Laplace operator, acting as the Hamiltonian to the Heat equation, contains interactions of successive samples in each spatial dimension. Under the discretisation scheme defined in Eq. (8), these interactions imply that the correlation length is bounded linearly with the number of qubits per dimension.
Obtaining solutions from the state vector
Although QITE simulates the trajectory of the PDE solution, it does not account for how the length of the state vector changes over time. To achieve our intended application, we must also approximate the norm at each time step and rescale the state vectors obtained from QITE to match the complete dynamics of the PDE solution.
Measuring the state vector
If we know that the original function only takes on non-negative values in the region we are solving for, the state vector \(|f\rangle \) will only have non-negative amplitudes in the computational basis. We will, therefore, restrict ourselves to PDEs involving only even-ordered differential operators as they are Hermitian and represented by real matrices in the computational basis. This ensures that the quantum state \(|f\rangle \) will not contain any phase information and can be reconstructed by taking the square root of its computational basis measurement probability distribution.
Reconstructing the norm
In the reconstruction of the norm, we seek to approximate the squared norm, \(c(k\Delta t) = \langle \bar{\psi }((k-1)\Delta t)|e^{-2\hat{H}\Delta t}|\bar{\psi }((k-1)\Delta t)\rangle \), of the non-unitary evolution operator \(e^{-\hat{H}\Delta t}\) at each simulated time step of size \(\Delta t\). To account for how QITE simulates each time step with M Trotter steps, we define the normalised state produced by QITE after \(\kappa \) Trotter steps as \(|\bar{\psi }(\frac{\kappa }{M}\Delta t)\rangle .\) QITE approximates c(t) by taking the product of the linear order approximations of the squared norm obtained in each Trotter step,
Assuming that a QITE implementation of \(N_T\) time steps has perfect fidelity, we can express the vector containing samples of the PDE solution, \(f(x,t=N_T\Delta t)\), as
The theoretical squared norm at the k-th time step is given as the product of the k individual squared norms
An approach to approximate \(C_f(t)\) would be to consider the product of the linear approximants
The issue with this approach is that the relative errors associated to \(c^\prime (j\Delta t)\), for \(j =1,\ldots ,k\), compound in the product, which leads to a significant deviation from the theoretical norm with each additional time step. To mitigate the accumulation of errors in the running product, \(C^\prime (k\Delta t)\), we undertake a strategy to rescale the norm after every K time steps. To implement this strategy, we require the normalised ground state of the Hamiltonian, \(|\bar{\psi }_0\rangle \), and its associated eigenvalue, \(\lambda _0\). Let \(C_*(t)\) denote a good approximation for the squared norm. Under the assumption that our QITE simulation has high fidelity, that is, \({|f(t)\rangle \approx \Vert |f(0)\rangle \Vert \sqrt{C_*(t)} |\bar{\psi }(t)\rangle }\), we then have it that
Using \(|f(t)\rangle = \sum _{l=0}^{N-1}{e^{-\lambda _l t}} |\bar{\psi }_l\rangle \langle \bar{\psi }_l||f(0)\rangle \), it follows that
and, consequently, Eq. (24) may be rewritten as
from which we deduce an approximation for \(C_*(t)\) as
Note that calculating \(C_*\) requires a measuring the state vector \(|\bar{\psi }(t)\rangle \). After every K time steps, we measure the state vector and rescale our norm approximation to \(C_*\), giving us an improved approximation of the squared norm;
Comparing QITE with analytical evolution
Our methodology performs a unitary approximation of a linear PDE and provides an estimate on how the norm evolves. This information allows us to obtain approximate solutions to the PDE. Let \(|\bar{f}(t)\rangle = |f(t)\rangle /\sqrt{C_f(t)}\) denote the normalised state vector containing scaled samples of the analytical solution f(x, t) of the PDE, and \(|{\psi }(t)\rangle = \sqrt{C_\psi (t)} |\bar{\psi }(t)\rangle \) denote the rescaled state vector containing samples of the solution \(\psi (x,t)\) approximated by our QITE methodology. When restricted to functions that only take on non-negative values, the fidelity of our QITE implementation, given by
measures the accuracy of our normalised evolution. The ratio between the approximated and analytical norms is
which measures the accuracy of our reconstruction. For N samples, we can write the mean squared error, MSE, as
Equation (31) demonstrates the mean squared error to be a useful metric because it correlates to both the fidelity and norm ratio of our approximation.
Results
To demonstrate how our QITE methodology can be used to solve PDEs, we target a simulation of the heat equation, Eq. (5). When expressed in terms of the imaginary time Schrödinger equation, the Hamiltonian operator corresponding to the heat equation is \(\hat{H} = -\alpha \nabla ^2\). We performed numerical simulations of our QITE methodology for domain sizes \(D=2,4\) and 6, from which we obtained approximate solutions to the heat equation for various initial states and boundary conditions. Across our experiments, we set \(\alpha =0.8\), simulated the dynamics from \(t=0\) to \(t=1\), and used a grid spacing of \(h=0.1\), and a time step \(\Delta t=0.001\). We chose these values for \(\Delta t\) and h to satisfy the von Neumann stability criteria for the forward time central space methods for solving the heat equation33,34. The results reported in Fig. 1 allowed us to decide on a norm correction frequency of \(K=10\), as the log norm ratio oscillated around zero for this choice of constants.
Our implementation of the QITE methodology as a PDE solver supports two families of boundary conditions, namely, the zero boundary conditions, \(f(0)=f(L)=0\), and periodic boundary conditions, \(f(x)=f(x+L)\). Figure 2 demonstrates the results of our simulations for the one dimensional heat equation for the zero and periodic boundary conditions. We stored the solutions in the state vector of \(n=6\) qubits, giving us the boundary lengths \(L=6.5\) in the case of the zero boundary conditions, and \(L=6.4\) in the case of the periodic boundary conditions. Since the \(D=6\) approximation covers the entire set of interacting qubits, our QITE implementation demonstrated a perfect fidelity to the analytical solution and zero mean squared error. Figure 3 demonstrates our solutions for the two-dimensional heat equation, where we considered all combinations of zero and periodic boundary conditions in each spatial dimension. We used 10 qubits to store the function samples, distributing \(n=5\) sampling qubits for both x and y directions, which yielded boundary lengths \(L=3.3\) for the zero boundary conditions, and \(L=3.2\) for periodic boundary conditions. Since the two-dimensional Laplace Hamiltonian, shown in Eq. (19), does not have interactions between the x and y axes’ sampling qubits, we chose unitary domains to cover the five x and y qubits individually. This allowed the \(D=6\) approximation to cover the entire set of interacting qubits, again yielding perfect fidelity to the analytical solutions and zero mean squared error.
Discussion
As regards to the norm correction frequency, we empirically determined that a norm correction frequency \(K=10\) was sufficient to approximate the dynamics of the heat equation for our choice of constants. Further investigation is needed to determine a logical correlation between the choice of constants and a suitable value for K. In the case of when norm correction is required but that the exact ground state is not known, we can estimate this state by running a QITE simulation over a long period of imaginary time to get approximations for the ground state, \(|\bar{\Psi }_0\rangle \approx |\bar{\psi }_0\rangle \) and its eigenvalue, \(\Lambda _0 = \langle \bar{\Psi }_0|\hat{H}|\bar{\Psi }_0\rangle \approx \lambda _0\). Adopting this state as a heuristic for the ground state, we can substitute \(\Lambda _0\) and \(|\bar{\Psi }_0\rangle \) in Eq. (27) to get an approximate norm correction factor. Note that this approximation does not affect the fidelity of the solutions. In relation to the function encoding schemes, the finite difference matrices approximating the second derivative operator have at most three non-zero entries in each row. These entries indicate the interaction of the basis states as they pertain to the determination of the basis state amplitudes in the final state vector. In particular, the output amplitude of basis state \(|k\rangle \) depends on the basis states \(|k-1\rangle , |k\rangle ,\) and \(|k+1\rangle \). Under our encoding scheme, each basis state \(|k\rangle \) is mapped to elements of the computational basis state in lexicographical order. Consequently, under the direct encoding scheme, approximations for \(D<n\) are unable to capture all the interactions in the finite difference matrix. This is most easily seen in the horizontal and vertical bands in the centre of the \(D=4\) approximations in Fig. 3. A different encoding scheme that that reduces the correlation length of the quantum states under the finite difference Hamiltonian may allow us to capture all possible qubit interactions for \(D<n\) and should permit perfect fidelity that benefits with improvements compared to the direct encoding above. Our intention is to consider this issue as a basis for future work. Finally, as regards to general boundary conditions, the QITE methodology examined here only allows us to capture the zero and periodic boundary conditions, since these conditions correspond to Hermitian finite difference matrices.
Conclusions
In this work, we demonstrated a new and practical application of QITE as a quantum numerical solver for linear PDEs. Our methodology adopts QITE’s ability to model the normalised trajectory of a quantum state. Additionally, our methodology also tracks the scale of the state vector over time. It is the interaction between these two features that has enabled us to broaden the scope of QITE to approximate solutions to linear PDEs discretised via finite differences. Using numerical simulations, we implemented our methodology to solve the heat equation in one and two dimensions, using six and ten qubits, respectively. In our experiments, we demonstrated perfect fidelity along with a mean squared error converging to zero.
Data availability
All data generated and analysed during this study are included in this published article and its Supplementary Information files.
Code availability
The code that supports the findings of this study is available from the corresponding authors upon reasonable request.
References
Ho, N. B. & Tay, J. C. Genace: An efficient cultural algorithm for solving the flexible job-shop problem. In Congress on Evolutionary Computation (IEEE Cat. No. 04TH8753), Vol. 2, 1759–1766 (2004).
Emani, P. S. et al. Quantum computing at the frontiers of biological sciences. Nat. Methods 18, 701–709. https://doi.org/10.1038/s41592-020-01004-3 (2021).
Markowitz, H. Portfolio selection. J. Financ. 7, 77–91 (1952).
Feynman, R. P. Simulating physics with computers. Int. J. Theor. Phys. 21, 467–488. https://doi.org/10.1007/BF02650179 (1982).
Bernstein, E. & Vazirani, U. Quantum complexity theory. SIAM J. Comput. 26, 1411–1473. https://doi.org/10.1137/S0097539796300921 (1997).
Lloyd, S. Universal quantum simulators. Science 273, 1073–1078. https://doi.org/10.1126/science.273.5278.1073 (1996).
Berry, D. W., Ahokas, G., Cleve, R. & Sanders, B. C. Efficient quantum algorithms for simulating sparse Hamiltonians. Commun. Math. Phys. 270, 359–371. https://doi.org/10.1007/s00220-006-0150-x (2007).
Berry, D. W., Childs, A. M. & Kothari, R. Hamiltonian simulation with nearly optimal dependence on all parameters. In 2015 IEEE 56th Annual Symposium on Foundations of Computer Science 792–809. https://doi.org/10.1109/FOCS.2015.54 (2015).
Berry, D. W., Childs, A. M., Cleve, R., Kothari, R. & Somma, R. D. Simulating Hamiltonian dynamics with a truncated Taylor series. Phys. Rev. Lett. 114, 090502. https://doi.org/10.1103/PhysRevLett.114.090502 (2015).
Low, G. H. & Chuang, I. L. Optimal Hamiltonian simulation by quantum signal processing. Phys. Rev. Lett. 118, 010501. https://doi.org/10.1103/PhysRevLett.118.010501 (2017).
Haah, J., Hastings, M. B., Kothari, R. & Low, G. H. Quantum algorithm for simulating real time evolution of lattice Hamiltonians. SIAM J. Comput. 52, 18–250. https://doi.org/10.1137/18m1231511 (2021).
Madhu, A. K., Melnikov, A. A., Fedichkin, L. E., Alodjants, A. P. & Lee, R.-K. Quantum walk processes in quantum devices. Heliyon 9, e13416. https://doi.org/10.1016/j.heliyon.2023.e13416 (2023).
Low, G. H. & Chuang, I. L. Hamiltonian simulation by qubitization. Quantum 3, 163. https://doi.org/10.22331/q-2019-07-12-163 (2019).
Peruzzo, A. et al. A variational eigenvalue solver on a photonic quantum processor. Nat. Commun. 5, 4213. https://doi.org/10.1038/ncomms5213 (2014).
McClean, J. R., Romero, J., Babbush, R. & Aspuru-Guzik, A. The theory of variational hybrid quantum-classical algorithms. New J. Phys. 18, 023023. https://doi.org/10.1088/1367-2630/18/2/023023 (2016).
Grimsley, H. R., Economou, S. E., Barnes, E. & Mayhall, N. J. An adaptive variational algorithm for exact molecular simulations on a quantum computer. Nat. Commun. 10, 3007. https://doi.org/10.1038/s41467-019-10988-2 (2019).
McArdle, S. et al. Variational ansatz-based quantum simulation of imaginary time evolution. NPJ Quant. Inf. 5, 75. https://doi.org/10.1038/s41534-019-0187-2 (2019).
Motta, M. et al. Determining eigenstates and thermal states on a quantum computer using quantum imaginary time evolution. Nat. Phys. 16, 205–210. https://doi.org/10.1038/s41567-019-0704-4 (2019).
Aspuru-Guzik, A., Dutoi, A. D., Love, P. J. & Head-Gordon, M. Simulated quantum computation of molecular energies. Science 309, 1704–1707. https://doi.org/10.1126/science.1113479 (2005).
Kandala, A. et al. Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets. Nature 549, 242–246. https://doi.org/10.1038/nature23879 (2017).
Kandala, A. et al. Error mitigation extends the computational reach of a noisy quantum processor. Nature 567, 491–495. https://doi.org/10.1038/s41586-019-1040-7 (2019).
Lehtovaara, L., Toivanen, J. & Eloranta, J. Solution of time-independent Schrödinger equation by the imaginary time propagation method. J. Comput. Phys. 221, 148–157. https://doi.org/10.1016/j.jcp.2006.06.006 (2007).
Kraus, C. V. & Cirac, J. I. Generalized Hartree–Fock theory for interacting fermions in lattices: Numerical methods. New J. Phys. 12, 113004. https://doi.org/10.1088/1367-2630/12/11/113004 (2010).
McClean, J. R. & Aspuru-Guzik, A. Compact wavefunctions from compressed imaginary time evolution. RSC Adv. 5, 102277–102283. https://doi.org/10.1039/C5RA23047K (2015).
Shi, T., Demler, T. & Ignacio Cirac, J. Variational study of fermionic and bosonic systems with non-Gaussian states: Theory and applications. Ann. Phys. 390, 245–302. https://doi.org/10.1016/j.aop.2017.11.014 (2018).
Nguyen, N. & Thompson, R. Solving Maxwells equations using variational quantum imaginary time evolution. Preprint at http://arxiv.org/abs/2402.14156 (2024).
Leong, F. Y., Koh, D. E., Ewe, W.-B. & Kong, J. F. Variational quantum simulation of partial differential equations: Applications in colloidal transport. http://arxiv.org/abs/2307.07173 (2023).
Alghassi, H. et al. A variational quantum algorithm for the Feynman–Kac formula. Quantum 6, 730 (2022).
Fontanela, F., Jacquier, A. & Oumgari, M. Short communication: A quantum algorithm for linear pdes arising in finance. SIAM J. Financ. Math. 12, SC98–SC114. https://doi.org/10.1137/21M1397878 (2021).
Risken, H. Fokker–Planck Equation 63–95 (Springer, 1996).
Black, F. & Scholes, M. S. The pricing of options and corporate liabilities. J. Polit. Econ. 81, 637–654. https://doi.org/10.1086/260062 (1973).
Liu, H.-L. et al. Variational quantum algorithm for the Poisson equation. Phys. Rev. A 104, 022418 (2021).
Recktenwald, G. W. Finite-difference approximations to the heat equation. Mech. Eng. 10, 1 (2004).
Jeong, S.-T. Stability of Finite Difference Schemes on the Diffusion Equation with Discontinuous Coefficients (2018).
Acknowledgements
C.M.W. and S.K. gratefully acknowledge the financial support of the Engineering and Physical Sciences Research Council (EPSRC) through the Hub in Quantum Computing and Simulation (EP/T001062/1).
Author information
Authors and Affiliations
Contributions
C.M.W. conceived the project. S.K. performed the numerical simulations. C.M.W. and S.K. analyzed the data and interpreted the results, and proposed improvements. C.M.W. and S.K. both contributed to the writing and editing of the manuscript.
Corresponding authors
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher's note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Kumar, S., Wilmott, C.M. Generalising quantum imaginary time evolution to solve linear partial differential equations. Sci Rep 14, 20156 (2024). https://doi.org/10.1038/s41598-024-70423-5
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-024-70423-5
- Springer Nature Limited