A Quantum Algorithm for the Finite Element Method
Ahmad M. Alkadri, Tyler D. Kharazi, K. Birgitta Whaley, Kranthi K. Mandadapu
TL;DR
This work presents Qu-FEM, a fault-tolerant quantum algorithm for the finite element method that preserves geometric flexibility by introducing the unit of interaction $\hat{A}^{\parallel}_{jk}$ and the local-to-global node number indicator $\hat{A}^{\parallel}_{j}$. For constant elemental contributions, global FE arrays are assembled via compact block-encodings with gate costs scaling as $\tilde{\mathcal{O}}(d^2 p^2 n)$ in $d$ dimensions and element order $p$, while in the variable-coefficient case numerical integration on quantum hardware yields $\tilde{\mathcal{O}}(dn(D^d G^d + p^{2d}m))$ gate costs using Gauss–Legendre quadrature and MQET/QSP. Dirichlet boundary conditions are handled without modifying existing encodings by a boundary Lagrange-multiplier system, enabling a projector-based BE framework. The method achieves explicit BE circuits for Cartesian geometries and demonstrates Poisson and unidirectional Navier–Stokes benchmarks, illustrating consistency with classical FE results. Overall, Qu-FEM offers a path to quantum advantage in time for high-dimensional problems and space for low-dimensional, non-constant-coefficient cases, while outlining practical challenges such as preconditioning and observable retrieval.
Abstract
The finite element method (FEM) is a cornerstone numerical technique for solving partial differential equations (PDEs). Here, we present $\textbf{Qu-FEM}$, a fault-tolerant era quantum algorithm for the finite element method. In contrast to other quantum PDE solvers, Qu-FEM preserves the geometric flexibility of FEM by introducing two new primitives, the unit of interaction and the local-to-global indicator matrix, which enable the assembly of global finite element arrays with a constant-size linear combination of unitaries. We study the modified Poisson equation as an elliptic problem of interest, and provide explicit circuits for Qu-FEM in Cartesian domains. For problems with constant coefficients, our algorithm admits block-encodings of global arrays that require only $\tilde{\mathcal{O}}\left(d^2 p^2 n\right)$ Clifford+$T$ gates for $d$-dimensional, order-$p$ tensor product elements on grids with $2^n$ degrees of freedom in each dimension, where $n$ is the number of qubits representing the $N=2^n$ discrete grid points. For problems with spatially varying coefficients, we perform numerical integration directly on the quantum computer to assemble global arrays and force vectors. Dirichlet boundary conditions are enforced via the method of Lagrange multipliers, eliminating the need to modify the block-encodings that emerge from the assembly procedure. This work presents a framework for extending the geometric flexibility of quantum PDE solvers while preserving the possibility of a quantum advantage.
