[Paper Review] Practical Quantum Computing: solving the wave equation using a quantum approach
This paper presents the first experimental implementation of a direct quantum algorithm for solving the 1D wave equation using a quantum computer, based on the wave equation solver from Costa et al. (2019). The implementation demonstrates that the theoretical asymptotic scaling of $\mathcal{O}(N_d^{3/2} \log(N_d)^2)$ in gate count and execution time is preserved, though large constant factors make it less efficient than classical solvers for current discretization sizes, even on idealized hardware.
In the last years, several quantum algorithms that try to address the problem of partial differential equation solving have been devised. On one side, "direct" quantum algorithms that aim at encoding the solution of the PDE by executing one large quantum circuit. On the other side, variational algorithms that approximate the solution of the PDE by executing several small quantum circuits and making profit of classical optimisers. In this work we propose an experimental study of the costs (in terms of gate number and execution time on a idealised hardware created from realistic gate data) associated with one of the "direct" quantum algorithm: the wave equation solver devised in [PCS. Costa, S. Jordan, A. Ostrander, Phys. Rev. A 99, 012323, 2019]. We show that our implementation of the quantum wave equation solver agrees with the theoretical big-O complexity of the algorithm. We also explain in great details the implementation steps and discuss some possibilities of improvements. Finally, our implementation proves experimentally that some PDE can be solved on a quantum computer, even if the direct quantum algorithm chosen will require error-corrected quantum chips, which are not believed to be available in the short-term.
Motivation & Objective
- To implement and analyze a direct quantum algorithm for solving the 1D wave equation on a quantum computer.
- To evaluate the practical resource costs—gate count, qubit count, and execution time—of the wave equation solver on idealized hardware.
- To develop and benchmark a custom Hamiltonian simulation procedure critical to the solver’s performance.
- To compare the quantum solver’s performance with classical finite-difference solvers under realistic hardware constraints.
- To assess the feasibility of solving partial differential equations via direct quantum algorithms in the near term, despite high constant factors.
Proposed method
- The wave equation is discretized on a 1D spatial grid with $N_d$ points, and the solution is encoded in a quantum state using amplitude encoding.
- The algorithm uses a direct quantum approach based on the wave equation solver from Costa et al. (2019), which relies on Hamiltonian simulation to evolve the system in time.
- A custom Hamiltonian simulation procedure is implemented using the Trotter-Suzuki decomposition with a product formula of order $2k$, and the number of steps $r$ is determined by analytical and minimized error bounds to ensure precision $\epsilon$.
- The implementation uses the Qiskit-based qat library to generate quantum circuits, with non-Clifford gates (especially $T$ and Toffoli) approximated using known synthesis methods.
- The $T$-count is computed for different adder implementations (arithmetic vs. QFT-based), and the total gate count and execution time are estimated using IBM Q hardware data.
- Theoretical asymptotic complexity is validated by measuring gate count and execution time scaling with $N_d$ and $\epsilon$.
Experimental results
Research questions
- RQ1Does the practical implementation of the quantum wave equation solver reproduce the theoretical asymptotic scaling of $\mathcal{O}(N_d^{3/2} \log(N_d)^2)$ in gate count and execution time?
- RQ2How do the constant factors hidden in the big-O notation affect the performance of the quantum solver relative to classical finite-difference solvers?
- RQ3What is the impact of different Hamiltonian simulation error bounds (analytical, minimized, commutator-based) on the required number of circuit repetitions $r$?
- RQ4How do different quantum adder implementations affect the $T$-count and overall resource cost of the solver?
- RQ5Can a direct quantum algorithm for solving a PDE be implemented and executed on idealized current hardware, and is it competitive with classical methods?
Key findings
- The implementation confirms the theoretical asymptotic scaling of $\mathcal{O}(N_d^{3/2} \log(N_d)^2)$ for total gate count with respect to the number of discretization points $N_d$.
- The execution time on idealized IBM Q hardware follows the same asymptotic scaling as the theoretical gate count, validating the hardware model.
- The $T$-count is dominated by $R_n$ and $P_h$ gates, each requiring approximately 379 $T$ gates at $\epsilon = 10^{-15}$ precision, with the arithmetic adder being more efficient than the QFT-based adder.
- The number of circuit repetitions $r$ required to meet a target error $\epsilon$ grows with $\epsilon^{-1/2k}$, and the minimized bound yields significantly fewer repetitions than the analytical bound.
- Despite favorable asymptotic scaling, the large constant factors in the $T$-count and gate count make the quantum solver less efficient than classical finite-difference solvers for reasonable $N_d$ values.
- The study provides the first experimental analysis of a full PDE solver on a quantum computer, including a custom Hamiltonian simulation implementation and detailed resource estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.