betaFeedback

WorksMathematics

A Hybrid Quantum-Classical Coarse-to-Fine Finite Element Solver for Heterogeneous Darcy Flow

Abstract

Quantum linear system algorithms offer theoretical potential for solving large sparse systems from PDE discretizations. However, applying them directly to fine-scale problems remains impractical on near-term hardware because of limited qubits, restricted circuit depth, and noise. They also prepare a quantum state rather than solution coefficients, whose recovery requires measurement and reconstruction. In this work, we develop a hybrid quantum-classical coarse-to-fine finite element framework for heterogeneous Darcy flow. We investigate whether a measured quantum coarse solution improves fine-grid initialization and reduces subsequent classical solver work. Rather than solve the full fine-scale system on a quantum device, we apply a method inspired by the Variational Quantum Linear Solver (VQLS) to the Galerkin coarse system. We reconstruct the approximate coarse solution from measurements, prolongate it to the fine grid, and use it to initialize a classical preconditioned iterative solve.} Numerical experiments on steady heterogeneous Darcy flow and a time-dependent SPE10-based problem show that measured quantum coarse solutions can improve fine-grid initialization, while classical correction recovers accurate pressure fields. The effect on classical solver iterations depends on the problem. All quantum computations were simulated using Qiskit Aer.

Introduction

Darcy flow models fluid motion in porous media, with applications in groundwater flow, geothermal energy extraction, and carbon sequestration. Geological permeability can vary by orders of magnitude or be discontinuous [12, 11]. Resolving the resulting local flow features requires fine meshes, and the heterogeneity can produce poorly conditioned linear systems [35, 12]. A coarse discretization may capture the broad pressure trend but miss effects of fine-scale permeability [6]. The steady Darcy problem is elliptic for positive permeability; pressure storage adds a time derivative, giving a parabolic extension [7]. The steady and implicit time-step finite element systems are real symmetric positive definite (SPD).

Quantum linear system algorithms offer theoretical potential for operations on large sparse systems [3, 37, 27]. Under suitable assumptions, the Harrow-Hassidim-Lloyd algorithm [16] prepares a state encoding a linear-system solution with polylogarithmic dependence on the system dimension. Later work improved the dependence on precision [8], and quantum singular value transformation provides a broader framework for quantum linear algebra [14]. The value of these methods depends on conditioning, access to the matrix and right-hand side, and the information needed from the solution [1]. In particular, a quantum solution state does not directly provide the classical pressure coefficients; recovering them requires measurement and reconstruction [17].

Current devices also limit the number of qubits and circuit depth and are affected by gate and readout noise [31]. Variational methods such as the Variational Quantum Linear Solver (VQLS) [4] approximate a solution with a parameterized circuit and

Funding: This work was supported by the U.S. Department of Energy, Office of Science, Energy Earthshots Initiative under Award No. DE-SC0024703.

†Department of Mathematics, Florida State University, 1017 Academic Way, Tallahassee, FL 32306, United States of America ([email protected]; [email protected]; [email protected]). objectives estimated from measurements. These constraints motivate placing the quantum solve on a small coarse system while retaining a classical solve on the fine grid [30, 21]. The question is whether its solution remains useful for the fine-grid solve after measurement and classical reconstruction. Therefore, our motivation is to examine the algorithmic role of an approximate quantum coarse solve within a hybrid coarse-to-fine PDE workflow.

Quantum methods have been studied for discretized PDEs [26, 25, 36, 13, 10, 2]. For subsurface flow, Golden et al. [15] propose a quantum-compatible inverse-Laplacian preconditioner. Henderson et al. [18] study quantum fracture-network solvers, including a variational method; their later work [17] addresses input preparation and extraction of solution information. Here, we focus on a measured quantum coarse solution as an initial approximation for a classical fine-grid Darcy solver.

In this work, we form the coarse system by Galerkin projection of the fine-grid finite element system and pad it to dimension 2n2^n when needed for an nn-qubit register. A VQLS-inspired circuit approximates the coarse solution direction using an energy-based objective estimated from measurements [4, 36]. Tomography and classical postprocessing reconstruct and rescale the coarse coefficient vector. We then prolongate this vector to the fine grid, add the boundary lifting, and use the result to initialize an algebraic-multigrid-preconditioned conjugate-gradient (AMG-PCG) solve [35, 24].

Beyond constructing the solver, we examine what the measured quantum coarse solution contributes to the fine-grid solve:

  • We use Galerkin orthogonality [5] to separate the initial fine-grid energy error into coarse-space approximation error and error introduced by the quantum coarse solve and reconstruction (see (30) in § 4).

  • We compare measured quantum, zero, and exact Galerkin initializations using initial L2L^2 and energy errors and subsequent AMG-PCG iterations. This comparison identifies whether a better initial approximation changes the classical correction.

  • We study steady and time-dependent heterogeneous Darcy flow under finite sampling and modeled noise, accounting for the preparation and measurements needed to recover the coarse solution.

Section 22 presents the finite element and Galerkin formulations. Section 33 describes the quantum coarse solve and classical reconstruction. Section 44 presents fine-grid correction. Section 55 reports the numerical experiments, and Section 66 concludes the paper.

Model Problem and Finite Element Discretization

We define the steady Darcy problem and its fine-grid finite element system, then construct the Galerkin coarse system used by the quantum solver. The time-dependent discretization is specified with Experiment 5.2.

Let Ω⊂R2\Omega\subset\mathbb{R}^2 be a bounded Lipschitz domain. Its boundary is divided into disjoint Dirichlet and Neumann parts, ∂Ω=ΓD∪ΓN\partial\Omega= \Gamma_D \cup\Gamma_N, with ∣ΓD∣>0\lvert\Gamma_D\rvert> 0. The steady pressure p:Ω→Rp:\Omega\to\mathbb{R} satisfies

−∇⋅(K(x)∇p)=fin Ω,(1)-\nabla\cdot\left(K(\mathbf{x})\nabla p\right) = f \quad\text{in } \Omega, \tag*{(1)}
p=gDon ΓD,(2)p = g_D \quad\text{on } \Gamma_D, \tag*{(2)}
(K(x)∇p)⋅n=gNon ΓN.(3)\left(K(\mathbf{x})\nabla p\right)\cdot\mathbf{n} = g_N \quad\text{on } \Gamma_N. \tag*{(3)}

Here x\mathbf{x} is the spatial position, n\mathbf{n} is the outward unit normal, ff is the source term, gDg_D is the prescribed pressure, and gNg_N is the prescribed normal component of K∇pK\nabla p.

We use the isotropic permeability tensor K(x)=κ(x)IK(\mathbf{x}) = \kappa(\mathbf{x})I, where II is the 2×22 \times2 identity matrix. The scalar permeability κ\kappa may be discontinuous, but we assume

0<κmin⁡≤κ(x)≤κmax⁡<∞for almost every x∈Ω.0 < \kappa_{\min} \le\kappa(\mathbf{x}) \le\kappa_{\max} < \infty\quad\text{for almost every } \mathbf{x} \in\Omega.

The ratio κmax⁡/κmin⁡\kappa_{\max}/\kappa_{\min} measures permeability contrast. Large contrast can make the discrete system difficult to solve.

Weak formulation and fine-grid system

Let H1(Ω)H^1(\Omega) be the Sobolev space of square-integrable functions with square-integrable first derivatives. Boundary equalities below are understood in the trace sense. Define the trial and test spaces

Vg={v∈H1(Ω):v=gD on ΓD},V0={v∈H1(Ω):v=0 on ΓD}.V_g = \{v \in H^1(\Omega) : v = g_D \text{ on } \Gamma_D\}, \qquad V_0 = \{v \in H^1(\Omega) : v = 0 \text{ on } \Gamma_D\}.

Multiplying (2.1) by a test function and integrating by parts gives: find p∈Vgp \in V_g such that

a(p,v)=ℓ(v)for every v∈V0,(4)a(p,v) = \ell(v) \quad\text{for every } v \in V_0, \tag*{(4)}

where

a(u,v)=∫ΩK∇u⋅∇v dx,ℓ(v)=∫Ωfv dx+∫ΓNgNv ds.a(u,v) = \int_{\Omega} K\nabla u \cdot\nabla v\,\mathrm{d}x, \qquad\ell(v) = \int_{\Omega} fv\,\mathrm{d}x + \int_{\Gamma_N} g_Nv\,\mathrm{d}s.

The sign of the Neumann term follows the boundary condition in (2.1).

Let Th\mathcal{T}_h be a conforming triangulation of Ω\Omega with mesh size h:=max⁡T∈Thdiam⁡(T)h := \max_{T \in\mathcal{T}_h} \operatorname{diam}(T), where diam⁡(T)\operatorname{diam}(T) is the diameter of triangle TT. We use continuous piecewise linear finite elements,

Vh={vh∈H1(Ω):vh∣T∈P1(T) for every T∈Th},V_h = \{v_h \in H^1(\Omega) : v_h|_T \in\mathbb{P}_1(T) \text{ for every } T \in\mathcal{T}_h\},

where P1(T)\mathbb{P}_1(T) is the space of affine functions on a triangle TT. Let Vh,g=Vh∩VgV_{h,g} = V_h \cap V_g and Vh,0=Vh∩V0V_{h,0} = V_h \cap V_0; the prescribed Dirichlet values are imposed at boundary nodes. We write Kh=κhIK_h = \kappa_h I for the fine-mesh permeability used in assembly and assume κh\kappa_h is uniformly positive and bounded. The fine fields used in Experiments 5.1 and 5.2 are shown in Figure 3(a) and Figure 5, respectively.

Experiment 1 pressure fields and pressure slice

Figure 3. (a) Permeability κh\kappa_h. (b) Reference pressure php_h. (c) Coarse pressure p~Hq\widetilde{p}_H^q. (d) Lifted initial pressure ph(0)p_h^{(0)}. (e) Corrected pressure phcorrp_h^{\mathrm{corr}}. (f) Pressure slice at y=0.5y = 0.5.

Figure 5. Experiment 2. fine permeability κh(x)\kappa_h(\mathbf{x}) from a two-dimensional top slice of the SPE10 dataset; colors show log⁡10κh\log_{10}\kappa_h.

With ah(u,v)=∫ΩKh∇u⋅∇v dxa_h(u,v) = \int_{\Omega} K_h\nabla u \cdot\nabla v\,\mathrm{d}x, the discrete problem is: find ph∈Vh,gp_h \in V_{h,g} such that

ah(ph,vh)=ℓ(vh)for every vh∈Vh,0.(5)a_h(p_h,v_h) = \ell(v_h) \quad\text{for every } v_h \in V_{h,0}. \tag*{(5)}

Let Nhtot=dim⁡VhN_h^{\mathrm{tot}} = \dim V_h be the total number of fine-grid nodal degrees of freedom, including boundary nodes, and let NhDN_h^D count those on ΓD\Gamma_D. The remaining Nh=Nhtot−NhD=dim⁡Vh,0N_h = N_h^{\mathrm{tot}} - N_h^D = \dim V_{h,0} degrees of freedom are unknown. Let {ϕi}i=1Nh\{\phi_i\}_{i=1}^{N_h} be the nodal basis associated with these free nodes. Eliminating the prescribed Dirichlet values gives

Ahph=bh,(6)A_h\mathbf{p}_h = \mathbf{b}_h, \tag*{(6)}

where ph∈RNh\mathbf{p}_h \in\mathbb{R}^{N_h} contains the unknown pressures at free nodes, bh∈RNh\mathbf{b}_h \in\mathbb{R}^{N_h} is the reduced load vector, and

Ah∈RNh×Nh,(Ah)ij=ah(ϕj,ϕi).A_h \in\mathbb{R}^{N_h \times N_h}, \qquad(A_h)_{ij} = a_h(\phi_j,\phi_i).

The Dirichlet values are prescribed separately; they are not entries of ph\mathbf{p}_h. The reduced load includes the source and Neumann terms and the contribution from eliminating those prescribed values. The positivity of κh\kappa_h and ∣ΓD∣>0|\Gamma_D| > 0 make AhA_h symmetric positive definite (SPD).

Galerkin coarse system

Let TH\mathcal{T}_H be a coarse triangulation with mesh size H:=max⁡E∈THdiam⁡(E)>hH := \max_{E \in\mathcal{T}_H} \operatorname{diam}(E) > h, and assume Th\mathcal{T}_h is its conforming refinement. Define the continuous piecewise linear coarse space VHV_H in the same way as VhV_h. Its total nodal count is NHtot=dim⁡VHN_H^{\mathrm{tot}} = \dim V_H; after excluding prescribed Dirichlet nodes, the free coarse count is NH=dim⁡VH,0N_H = \dim V_{H,0}, where VH,0=VH∩V0⊂Vh,0V_{H,0} = V_H \cap V_0 \subset V_{h,0}. Thus NH<NhN_H < N_h.

Choose a boundary lifting Gh∈Vh,gG_h \in V_{h,g} that matches gDg_D on ΓD\Gamma_D, and let gh∈RNhg_h \in\mathbb{R}^{N_h} contain its values only at the free fine nodes. Then ph−Gh∈Vh,0p_h - G_h \in V_{h,0} has free-node coefficient vector ph−gh\mathbf{p}_h - \mathbf{g}_h. We approximate this homogeneous correction by pH∈VH,0p_H \in V_{H,0}. For homogeneous Dirichlet data, we take Gh=0G_h = 0. The Galerkin problem is

ah(pH,vH)=ℓ(vH)−ah(Gh,vH)for every vH∈VH,0.(7)a_h(p_H,v_H) = \ell(v_H) - a_h(G_h,v_H) \qquad\text{for every } v_H \in V_{H,0}. \tag*{(7)}

Let {Φj}j=1NH\{\Phi_j\}_{j=1}^{N_H} be the nodal basis of VH,0V_{H,0} and write pH=∑j=1NH(pH)jΦjp_H = \sum_{j=1}^{N_H} (p_H)_j \Phi_j. The vector pH∈RNH\mathbf{p}_H \in\mathbb{R}^{N_H} contains the homogeneous coarse coefficients. Because the spaces are nested, each Φj\Phi_j can be expressed in the fine basis. This defines the prolongation matrix P∈RNh×NHP \in\mathbb{R}^{N_h \times N_H} by

Φj=∑i=1NhPijϕi,j=1,…,NH.\Phi_j = \sum_{i=1}^{N_h} P_{ij}\phi_i, \qquad j = 1,\ldots,N_H.

The matrix PP maps coarse coefficients to values at the free fine nodes. Galerkin projection of (6) gives

AHpH=bH,AH=PTAhP,bH=PT(bh−Ahgh).(8)A_H \mathbf{p}_H = \mathbf{b}_H, \qquad A_H = P^T A_h P, \qquad\mathbf{b}_H = P^T(\mathbf{b}_h - A_h\mathbf{g}_h). \tag*{(8)}

The subtraction removes the free-node part of the boundary lifting before restricting the fine-grid residual. Since AhA_h is SPD and PP has full column rank, AH∈RNH×NHA_H \in\mathbb{R}^{N_H \times N_H} is also SPD. Moreover,

(AH)ij=ah(Φj,Φi)=∫ΩKh∇Φj⋅∇Φi dx.(A_H)_{ij} = a_h(\Phi_j,\Phi_i) = \int_{\Omega} K_h \nabla\Phi_j \cdot\nabla\Phi_i \, dx.

Thus, the coarse operator retains the fine-mesh permeability through the Galerkin projection.

Denote the exact solution of (8) by pH∗\mathbf{p}_H^* and the measured, reconstructed approximation from the quantum solver by pHq\mathbf{p}_H^q. The corresponding coarse functions lie in VH,0V_{H,0}. Their free-node fine-grid approximations are gh+PpH∗\mathbf{g}_h + P\mathbf{p}_H^* and gh+PpHq\mathbf{g}_h + P\mathbf{p}_H^q, respectively. The prescribed Dirichlet values are restored when constructing the full pressure field.

In the time-dependent experiment, backward Euler produces an SPD fine-grid system at each time step. The same Galerkin projection defines its coarse system; the time-discrete operator and right-hand side are given with the experiment in Section 5.2.

Quantum Coarse Solver

We apply a variational quantum procedure to the Galerkin coarse system (8). In this section, we write it as

Au=b,A=AH,u=pH,b=bH,N=NH.(9)A\mathbf{u} = \mathbf{b}, \qquad A = A_H, \qquad\mathbf{u} = \mathbf{p}_H, \qquad\mathbf{b} = \mathbf{b}_H, \qquad N = N_H. \tag*{(9)}

Thus A∈RN×NA \in\mathbb{R}^{N \times N} is symmetric positive definite (SPD), b∈RN\mathbf{b} \in\mathbb{R}^N is its right-hand side, and u∈RN\mathbf{u} \in\mathbb{R}^N contains the coefficients of the homogeneous coarse pressure correction.

The circuit prepares a state representing an approximate solution direction. Measurements and classical postprocessing recover an explicit coarse coefficient vector, which is then used for fine-grid initialization.

The procedure is inspired by the Variational Quantum Linear Solver (VQLS) [4], but uses an objective derived from the SPD quadratic energy [36] rather than a standard VQLS cost. Guarantees for the standard cost are therefore not assumed for this objective.

Padding and input preparation

An nn-qubit state has m=2nm = 2^n amplitudes. We choose n=⌈log⁡2N⌉n = \lceil\log_2 N \rceil, so that m≥Nm \ge N. If m>Nm > N, we pad the coarse system as

A~γ=(A00γIm−N),b~=(b0),(10)\widetilde{A}_{\gamma} = \begin{pmatrix} A & 0 \\ 0 & \gamma I_{m-N} \end{pmatrix}, \qquad \widetilde{\mathbf{b}} = \begin{pmatrix} \mathbf{b} \\ 0 \end{pmatrix}, \tag*{(10)}

where Im−NI_{m-N} is the identity on the added components, 0∈Rm−N\mathbf{0} \in\mathbb{R}^{m-N}, and λmax⁡(A)\lambda_{\max}(A) is the largest eigenvalue of AA. The choice γ=λmax⁡(A)>0\gamma= \lambda_{\max}(A) > 0 makes A~γ\widetilde{A}_{\gamma} SPD without changing the spectral condition number of AA; the exact padded solution is (uT,0T)T(\mathbf{u}^{\mathsf{T}}, \mathbf{0}^{\mathsf{T}})^{\mathsf{T}}. If m=Nm = N, we set A~γ=A\widetilde{A}_{\gamma} = A and b~=b\widetilde{\mathbf{b}} = \mathbf{b}.

We scale the operator by its largest eigenvalue,

s=λmax⁡(A~γ),A‾=A~γ/s.(11)s = \lambda_{\max}(\widetilde{A}_{\gamma}), \qquad\overline{A} = \widetilde{A}_{\gamma}/s. \tag*{(11)}

The eigenvalues of A‾\overline{A} lie in (0,1](0, 1]. Padding and scaling preserve the solution direction. The eigenvalues used here are computed classically for the small coarse matrix.

The right-hand side b=PT(bh−Ahgh)\mathbf{b} = P^{\mathsf{T}}(\mathbf{b}_h - A_h\mathbf{g}_h) is assembled classically from the fine-grid problem. Although AhA_h is sparse, b\mathbf{b} need not have sparse or simply structured amplitudes: its entries depend on the forcing, boundary lifting, fine-scale permeability, and coarse basis. Its finite element origin does not make state preparation free, and we assume no efficient data-loading oracle. If b=0\mathbf{b} = \mathbf{0}, the coarse solution is zero and no quantum solve is needed. Otherwise, define the normalized padded right-hand-side state

∣b~⟩=b~∥b~∥2.\lvert\widetilde{b} \rangle= \frac{\widetilde{\mathbf{b}}}{\lVert\widetilde{\mathbf{b}} \rVert_2}.

Here ∣0⟩⊗n\lvert0 \rangle^{\otimes n} denotes the joint all-zero state of the nn qubits. From the known entries of b~\widetilde{\mathbf{b}}, we synthesize a unitary Ub∈Cm×mU_b \in\mathbb{C}^{m \times m} satisfying

Ub∣0⟩⊗n=∣b~⟩.(12)U_b \lvert0 \rangle^{\otimes n} = \lvert\widetilde{b} \rangle. \tag*{(12)}

We use Qiskit’s StatePreparation operation. Generic known-amplitude preparation methods include isometry-based synthesis [20] and uniformly controlled rotations [28]; their gate costs can grow as O(2n)O(2^n) for nn qubits. Its inverse Ub†U_b^\dagger is executed in each overlap-measurement circuit, so preparation contributes to circuit depth and noise exposure.

Parameterized trial state

The ansatz prepares a normalized trial state

∣ψ(θ)⟩=U(θ)∣0⟩⊗n,(13)\lvert\psi(\theta) \rangle= U(\theta)\lvert0 \rangle^{\otimes n}, \tag*{(13)}

where θ={θℓ,q}\theta= \{\theta_{\ell,q}\} contains one rotation angle for each layer ℓ=0,…,L−1\ell= 0, \ldots, L - 1 and qubit q=0,…,n−1q = 0, \ldots, n - 1. Thus there are nLnL parameters. Each of the LL layers applies RyR_y rotations to all qubits, followed by a chain of CNOT gates between neighboring qubits. For an angle ϑ\vartheta,

Ry(ϑ)=(cos⁡(ϑ/2)−sin⁡(ϑ/2)sin⁡(ϑ/2)cos⁡(ϑ/2)).R_y(\vartheta)=\begin{pmatrix}\cos(\vartheta/2)&-\sin(\vartheta/2)\\ \sin(\vartheta/2)&\cos(\vartheta/2)\end{pmatrix}.

Because RyR_y and CNOT have real matrix representations, the ideal trial amplitudes are real, matching the real solution of (9). The rightmost gate acts first; therefore, if Urot(ℓ)U_{\mathrm{rot}}^{(\ell)} and Uent(ℓ)U_{\mathrm{ent}}^{(\ell)} denote the combined rotations and CNOTs in layer ℓ\ell, respectively, then

U(ℓ)(θ)=Uent(ℓ)Urot(ℓ),U(θ)=U(L−1)⋯U(0).U^{(\ell)}(\boldsymbol{\theta})=U_{\mathrm{ent}}^{(\ell)}U_{\mathrm{rot}}^{(\ell)},\qquad U(\boldsymbol{\theta})=U^{(L-1)}\cdots U^{(0)}.
Four-qubit trial-state circuit with three layers

Figure 1. Four-qubit trial-state circuit with three layers. Each layer applies RyR_y rotations followed by a nearest-neighbor CNOT chain.

The nearest-neighbor structure follows hardware-efficient ansatz designs [23, 4]. It uses L(n−1)L(n-1) CNOT gates before backend compilation; state preparation and measurement circuits add further gates. The layer count is an experimental choice, and the number of parameters alone does not guarantee an accurate coarse solve.

Energy objective and measurements

For a real vector v∈Rm\mathbf{v}\in\mathbb{R}^m, the padded SPD system has quadratic energy

E(v)=12vTA~γv−b~Tv.E(\mathbf{v})=\frac{1}{2}\mathbf{v}^{\mathsf{T}}\widetilde{A}_\gamma\mathbf{v}-\widetilde{\mathbf{b}}^{\mathsf{T}}\mathbf{v}.

Its minimizer is the padded solution. Writing v=αψ(θ)\mathbf{v}=\alpha\boldsymbol{\psi}(\boldsymbol{\theta}) separates the unknown scale α∈R\alpha\in\mathbb{R} from the normalized trial direction. Minimizing over α\alpha gives

min⁡α∈RE(αψ)=−(b~Tψ)22ψTA~γψ=−∥b~∥222sp0(θ)D(θ).\min_{\alpha\in\mathbb{R}}E(\alpha\boldsymbol{\psi})=-\frac{(\widetilde{\mathbf{b}}^{\mathsf{T}}\boldsymbol{\psi})^2}{2\boldsymbol{\psi}^{\mathsf{T}}\widetilde{A}_\gamma\boldsymbol{\psi}}=-\frac{\lVert\widetilde{\mathbf{b}}\rVert_2^2}{2s}\frac{p_0(\boldsymbol{\theta})}{D(\boldsymbol{\theta})}.

where ψ\boldsymbol{\psi} is the real amplitude vector of ∣ψ(θ)⟩\lvert\psi(\boldsymbol{\theta})\rangle. We minimize the energy-based objective

J(θ)=−p0(θ)D(θ)+ηpadppad(θ),(14)J(\boldsymbol{\theta})=-\frac{p_0(\boldsymbol{\theta})}{D(\boldsymbol{\theta})}+\eta_{\mathrm{pad}}p_{\mathrm{pad}}(\boldsymbol{\theta}), \tag*{(14)}

where ηpad≥0\eta_{\mathrm{pad}}\ge0 penalizes padded amplitudes. Unlike standard VQLS, which aligns A~ψ\widetilde{A}\boldsymbol{\psi} with b~\widetilde{\mathbf{b}} [4], this term comes from minimizing SPD energy over scale [36].

The three quantities in (14) are

p0(θ)=∣⟨b^∣ψ(θ)⟩∣2,p_0(\boldsymbol{\theta})=\left|\langle\widehat{\mathbf{b}}\mid\psi(\boldsymbol{\theta})\rangle\right|^2,
D(θ)=⟨ψ(θ)∣A∣ψ(θ)⟩,D(\boldsymbol{\theta})=\langle\psi(\boldsymbol{\theta})\mid A\mid\psi(\boldsymbol{\theta})\rangle,
ppad(θ)=⟨ψ(θ)∣(Im−ΠN)∣ψ(θ)⟩,p_{\mathrm{pad}}(\boldsymbol{\theta})=\langle\psi(\boldsymbol{\theta})\mid(I_m-\Pi_N)\mid\psi(\boldsymbol{\theta})\rangle,

where ImI_m is the m×mm \times m identity and ΠN=diag⁡(IN,0m−N)\Pi_N = \operatorname{diag}(I_N,0_{m-N}) projects onto the first NN amplitudes; 0m−N0_{m-N} is the square zero matrix on the padded components. If m=Nm=N, then ppad=0p_{\mathrm{pad}}=0. For the real normalized trial states, p0p_0 is the squared overlap with the right-hand-side state and D=ψTAˉψD=\psi^{\mathsf{T}}\bar{A}\psi.

Each circuit execution, or shot, produces one measurement outcome; SS denotes the shots used for a measurement setting. The three terms are estimated as follows.

Overlap. Prepare ∣ψ(θ)⟩|\psi(\theta)\rangle, apply Ub†U_b^{\dagger}, and measure all qubits in the computational basis. The all-zero outcome has probability

p0(θ)=∣⟨0⋯0∣Ub†∣ψ(θ)⟩∣2.(15)p_0(\theta)=\left|\langle0\cdots0|U_b^{\dagger}|\psi(\theta)\rangle\right|^2. \tag*{(15)}

If N0N_0 of SS shots return all zeros, set p^0=N0/S\widehat{p}_0=N_0/S.

Operator expectation. Decompose the known scaled matrix into Pauli strings,

Aˉ=∑ν=1NPaνQν,(16)\bar{A}=\sum_{\nu=1}^{N_{\mathrm{P}}}a_\nu Q_\nu, \tag*{(16)}

where NPN_{\mathrm{P}} is the number of retained terms, aν∈Ra_\nu\in\mathbb{R}, and QνQ_\nu is a tensor product of single-qubit matrices from {I,X,Y,Z}\{I,X,Y,Z\}. Each measured Pauli expectation gives a signed average of +1+1 and −1-1 outcomes. Compatible strings are measured in the same basis setting, and their estimates are combined as

D^=∑ν=1NPaν⟨Qν⟩.\widehat{D}=\sum_{\nu=1}^{N_{\mathrm{P}}}a_\nu\langle Q_\nu\rangle.

Padding. Measure the trial state in the computational basis. Outcomes with indices N,…,m−1N,\ldots,m-1 correspond to padded amplitudes. If NpadN_{\mathrm{pad}} of SS shots have these indices, set p^pad=Npad/S\widehat{p}_{\mathrm{pad}}=N_{\mathrm{pad}}/S. No padding circuit is needed when m=Nm=N.

Because Aˉ\bar{A} is SPD and has largest eigenvalue one, λmin⁡(Aˉ)≤D≤1\lambda_{\min}(\bar{A})\le D\le1, where λmin⁡\lambda_{\min} denotes the smallest eigenvalue. To keep a sampled denominator positive, define

D^safe=min⁡{1,max⁡{λmin⁡(Aˉ),D^}},\widehat{D}_{\mathrm{safe}}=\min\{1,\max\{\lambda_{\min}(\bar{A}),\widehat{D}\}\},

and evaluate

J^=−p^0/D^safe+ηpadp^pad.(17)\widehat{J}=-\widehat{p}_0/\widehat{D}_{\mathrm{safe}}+\eta_{\mathrm{pad}}\widehat{p}_{\mathrm{pad}}. \tag*{(17)}

This safeguard and the ratio can bias finite-shot estimates; gate and readout noise also affect them.

Optimization and classical solution recovery

A classical simultaneous perturbation stochastic approximation (SPSA) optimizer [39] updates θ\theta from measured objective values at two perturbed parameter vectors per iteration. The selected final parameters are denoted by θ⋆\theta^\star.

We measure ∣ψ(θ⋆)⟩|\psi(\theta^\star)\rangle in all 3n3^n combinations of the single-qubit XX, YY, and ZZ bases. Computational-basis probabilities alone do not determine the relative signs of real amplitudes. State tomography combines the measurements into an estimated density matrix ρ^∈Cm×m\widehat{\rho}\in\mathbb{C}^{m\times m} [22]. We take its real symmetric part, clip negative eigenvalues to zero, and renormalize their sum to one. A normalized eigenvector for the largest remaining eigenvalue gives the reconstructed real direction ψ^∈Rm\widehat{\psi}\in\mathbb{R}^m. This step is a classical reconstruction and may be imperfect under sampling and noise.

Quantum Coarse Solve, Lifting, and Fine-Scale Correction

The normalized state specifies a direction but not the magnitude of the solution. For an ideal real trial direction ψ\psi, the magnitude of the energy-minimizing scale could also be estimated from the measured overlap p0p_0 and operator expectation DD:

∣α∣=∥b~∥2p0sD,A~γ=sA~.|\alpha| = \frac{\lVert\widetilde{\mathbf{b}}\rVert_2\sqrt{p_0}}{sD}, \qquad\widetilde{A}_{\gamma} = s\widetilde{A}.

The overlap probability does not determine the sign relative to a chosen real representative of the state. Since classical prolongation requires an explicit coarse coefficient vector, we instead compute the energy-minimizing scale from the tomographically reconstructed direction ψ^\widehat{\psi} and remove the padded components:

αrec=b~Tψ^ψ^TA~γψ^(18)\alpha_{\mathrm{rec}} = \frac{\widetilde{\mathbf{b}}^{\mathsf{T}}\widehat{\psi}}{\widehat{\psi}^{\mathsf{T}}\widetilde{A}_{\gamma}\widehat{\psi}} \tag*{(18)}
uq=RN(αrecψ^),(19)\mathbf{u}_q = R_N(\alpha_{\mathrm{rec}}\widehat{\psi}), \tag*{(19)}

where RN=[IN 0]∈RN×mR_N = [I_N\ 0] \in\mathbb{R}^{N\times m} selects the first NN entries, INI_N is the N×NN \times N identity, and the zero block has m−Nm-N columns. An overall sign change of ψ^\widehat{\psi} also changes the sign of αrec\alpha_{\mathrm{rec}}, leaving uq\mathbf{u}_q unchanged. Both operations are performed on the classical reconstructed vector, not on the quantum state.

For the Darcy problem, pHq=uq\mathbf{p}_H^q = \mathbf{u}_q is the approximate coarse coefficient vector. Its prolongation gives the free-node initial pressure for the classical fine-grid correction,

ph(0)=gh+PpHq.(20)\mathbf{p}_h^{(0)} = \mathbf{g}_h + P\mathbf{p}_H^q. \tag*{(20)}

The 3n3^n tomography settings make this reconstruction most appropriate for small coarse registers.

Quantum Coarse Solve, Lifting, and Fine-Scale Correction

This section describes how the quantum coarse solution from § 3 enters the classical fine-scale correction. The quantum computation approximates the Galerkin coarse solution; prolongation and boundary lifting give a fine-grid initial approximation, which a classical iterative solver then corrects. Thus, the quantum component serves as a coarse-level solver in the coarse-to-fine workflow.

In subsurface flow, strong heterogeneity can require fine meshes to resolve local pressure features. Near-term quantum devices are more suited to small coarse systems because of qubit, circuit-depth, and noise limits [31]. This scale separation motivates the coarse quantum solve followed by classical AMG-preconditioned fine-grid correction.

The construction follows classical multilevel ideas, including coarse-grid correction, deflation, and two-level preconditioners [29, 35, 38, 40, 41]. A coarse representation can capture error components that fine-grid iterations remove slowly. Here, a variational quantum solver supplies the coarse solution used as an initial approximation for the classical correction. The quantum coarse solve is performed once per linear system to construct its initial approximation; it does not modify the fine-grid operator or the AMG preconditioner.

Recall that after strongly imposing Dirichlet boundary conditions and eliminating the prescribed degrees of freedom, the fine-scale system and the Galerkin coarse system are

Ahph=bh,AHpH∗=bH,(21)A_h\mathbf{p}_h = \mathbf{b}_h, \qquad A_H\mathbf{p}_H^* = \mathbf{b}_H, \tag*{(21)}

where

Ah∈RNh×Nh,AH∈RNH×NH,A_h \in\mathbb{R}^{N_h \times N_h}, \qquad A_H \in\mathbb{R}^{N_H \times N_H},

and

ph,bh∈RNh,pH⋆,bH∈RNH,NH<Nh.\mathbf{p}_h,\mathbf{b}_h \in\mathbb{R}^{N_h}, \qquad\mathbf{p}_H^{\star},\mathbf{b}_H \in\mathbb{R}^{N_H}, \qquad N_H < N_h.

Here AhA_h is the fine-scale stiffness matrix assembled with the fine permeability field, while

AH=PTAhP,bH=PT(bh−Ahgh).A_H = P^T A_h P, \qquad\mathbf{b}_H = P^T(\mathbf{b}_h - A_h\mathbf{g}_h).

The vector gh\mathbf{g}_h contains the free-degree-of-freedom values of the boundary lifting GhG_h. The coarse unknown pH\mathbf{p}_H represents the pressure component after subtracting this lifting, and pH⋆\mathbf{p}_H^{\star} denotes its exact Galerkin solution. Thus, the coarse operator is obtained from the fine-scale system; no independently assembled coarse operator or harmonic-averaged permeability is used in the proposed solve.

Using the variational quantum coarse solver described in § 3, we obtain an approximate solution of the coarse system, denoted by pHq∈RNH\mathbf{p}_H^q \in\mathbb{R}^{N_H}, satisfying

AHpHq≈bH.(22)A_H\mathbf{p}_H^q \approx\mathbf{b}_H. \tag*{(22)}

This classical coefficient vector is recovered from quantum measurements by the reconstruction and rescaling procedure described in § 3. It provides the coarse approximation that will be transferred to the fine scale.

To transfer the quantum-computed coarse approximation to the fine grid, we use the natural inclusion IHh:VH,0→Vh,0I_H^h : V_{H,0} \to V_{h,0}. Because the fine mesh is a conforming refinement of the coarse mesh, IHhI_H^h represents the same coarse function in the fine space. Let pHq∈VH,0p_H^q \in V_{H,0} denote the coarse function associated with the coefficient vector pHq\mathbf{p}_H^q, so that pHq=∑j=1NH(pHq)jΦjp_H^q = \sum_{j=1}^{N_H}(p_H^q)_j\Phi_j. Adding this function to the boundary lifting gives

ph(0):=Gh+IHhpHq∈Vh,g.(23)p_h^{(0)} := G_h + I_H^h p_H^q \in V_{h,g}. \tag*{(23)}

In coefficient form, this inclusion is represented by the prolongation matrix

P∈RNh×NH,(24)P \in\mathbb{R}^{N_h \times N_H}, \tag*{(24)}

so that

ph(0)=gh+PpHq.(25)\mathbf{p}_h^{(0)} = \mathbf{g}_h + P\mathbf{p}_H^q. \tag*{(25)}

Here PP denotes the prolongation between the reduced coarse and fine coefficient spaces after the same Dirichlet boundary treatment has been applied on both levels. Since pHqp_H^q vanishes on the Dirichlet boundary, adding its interpolation to GhG_h preserves the prescribed boundary values. For homogeneous Dirichlet data, we take Gh=0G_h = 0 and gh=0\mathbf{g}_h = 0. The vector ph(0)∈RNh\mathbf{p}_h^{(0)} \in\mathbb{R}^{N_h} contains only the free-node values of ph(0)p_h^{(0)} and is used as the initial guess for the fine-scale iterative solver.

We perform the fine-scale correction by applying preconditioned conjugate gradients (PCG) to

Ahph=bh,(26)A_h\mathbf{p}_h = \mathbf{b}_h, \tag*{(26)}

using ph(0)\mathbf{p}_h^{(0)} as the initial guess. The reduced matrix AhA_h is SPD, as shown in § 2. We assume that the algebraic multigrid (AMG) preconditioner defines a fixed SPD operator M−1M^{-1}, so that standard PCG theory applies to the symmetrically preconditioned operator M−1/2AhM−1/2M^{-1/2}A_hM^{-1/2}. A nonsymmetric or variable AMG cycle would require an appropriate alternative Krylov method.

Let

r0=bh−Ahph(0)(27)\mathbf{r}_0=\mathbf{b}_h-A_h\mathbf{p}_h^{(0)} \tag*{(27)}

denote the initial residual associated with the lifted quantum coarse approximation. Since the fine-grid solution ph\mathbf{p}_h satisfies Ahph=bhA_h\mathbf{p}_h=\mathbf{b}_h, we have

r0=Ah(ph−ph(0)).\mathbf{r}_0=A_h(\mathbf{p}_h-\mathbf{p}_h^{(0)}).

Thus, the lifted coarse approximation determines the initial error and residual seen by the fine-grid solver; a smaller initial error does not alone guarantee fewer iterations. Equivalently, the exact fine-grid correction ch=ph−ph(0)\mathbf{c}_h=\mathbf{p}_h-\mathbf{p}_h^{(0)} satisfies Ahch=r0A_h\mathbf{c}_h=\mathbf{r}_0.

Using this preconditioner, the PCG iterates generate a sequence {ph(k)}\{\mathbf{p}_h^{(k)}\} with residuals

rk=bh−Ahph(k).(28)\mathbf{r}_k=\mathbf{b}_h-A_h\mathbf{p}_h^{(k)}. \tag*{(28)}

Formally, the iterates satisfy

ph(k)∈ph(0)+Kk(M−1Ah,M−1r0),(29)\mathbf{p}_h^{(k)}\in\mathbf{p}_h^{(0)}+\mathcal{K}_k(M^{-1}A_h,M^{-1}\mathbf{r}_0), \tag*{(29)}

where

Kk(M−1Ah,M−1r0)=span⁡{M−1r0,(M−1Ah)M−1r0,…,(M−1Ah)k−1M−1r0}.\mathcal{K}_k(M^{-1}A_h,M^{-1}\mathbf{r}_0)=\operatorname{span}\left\{M^{-1}\mathbf{r}_0,(M^{-1}A_h)M^{-1}\mathbf{r}_0,\ldots,(M^{-1}A_h)^{k-1}M^{-1}\mathbf{r}_0\right\}.

Thus, the quantum coarse solve affects the fine-grid iteration through the initial residual r0\mathbf{r}_0 and the initial error e0:=ph−ph(0)\mathbf{e}_0:=\mathbf{p}_h-\mathbf{p}_h^{(0)}. To make this dependence explicit, we write

ph(0)=gh+PpHq,pHq=pH⋆+δH,\mathbf{p}_h^{(0)}=\mathbf{g}_h+P\mathbf{p}_H^q,\qquad\mathbf{p}_H^q=\mathbf{p}_H^\star+\boldsymbol{\delta}_H,

where pH⋆\mathbf{p}_H^\star is the exact solution of the Galerkin coarse system and δH=pHq−pH⋆\boldsymbol{\delta}_H=\mathbf{p}_H^q-\mathbf{p}_H^\star denotes the error in the reconstructed quantum coarse solution. Then

ph−ph(0)=(ph−gh−PpH⋆)−PδH.\mathbf{p}_h-\mathbf{p}_h^{(0)}=(\mathbf{p}_h-\mathbf{g}_h-P\mathbf{p}_H^\star)-P\boldsymbol{\delta}_H.

The Galerkin construction gives [5]

PTAh(ph−gh−PpH⋆)=0.P^T A_h(\mathbf{p}_h-\mathbf{g}_h-P\mathbf{p}_H^\star)=0.

Consequently, the two error components are orthogonal in the energy inner product, and

∥e0∥Ah2=∥ph−gh−PpH⋆∥Ah2+∥δH∥AH2.(30)\|\mathbf{e}_0\|_{A_h}^{2}=\|\mathbf{p}_h-\mathbf{g}_h-P\mathbf{p}_H^\star\|_{A_h}^{2}+\|\boldsymbol{\delta}_H\|_{A_H}^{2}. \tag*{(30)}

where ∥v∥A:=(vTAv)1/2\|\mathbf{v}\|_A:=(\mathbf{v}^T A\mathbf{v})^{1/2}. The first term represents the error of the exact Galerkin coarse approximation, while the second represents the additional error introduced by the approximate quantum coarse solve and classical reconstruction. The subsequent AMG-preconditioned CG iteration reduces this initial fine-grid error according to the convergence behavior of the preconditioned operator.

In particular, for a fixed symmetric positive definite preconditioner M−1M^{-1}, the standard PCG estimate gives

∥ek∥Ah≤2(κ(M−1/2AhM−1/2)−1κ(M−1/2AhM−1/2)+1)k∥e0∥Ah,ek=ph−ph(k).\lVert e_k\rVert_{A_h} \le2\left(\frac{\sqrt{\kappa(M^{-1/2}A_hM^{-1/2})}-1}{\sqrt{\kappa(M^{-1/2}A_hM^{-1/2})}+1}\right)^k\lVert e_0\rVert_{A_h}, \qquad e_k=\mathbf{p}_h-\mathbf{p}_h^{(k)}.

where κ(⋅)\kappa(\cdot) denotes the spectral condition number. Thus, the quantum coarse solve influences the size and structure of the initial error e0\mathbf{e}_0, while the AMG preconditioner influences the worst-case convergence factor through the condition number of the symmetrically preconditioned operator. In practice, the observed convergence also depends on how the initial error is distributed among the modes of the preconditioned system.

For completeness, the AMG-preconditioned conjugate gradient iteration is given as follows. Starting with the initial guess ph(0)\mathbf{p}_h^{(0)} and the residual r0\mathbf{r}_0 defined in (27), define

z0=M−1r0,d0=z0.(31)\mathbf{z}_0=M^{-1}\mathbf{r}_0,\qquad\mathbf{d}_0=\mathbf{z}_0. \tag*{(31)}

Then, for k=0,1,2,…k=0,1,2,\ldots, compute

αk=rkTzkdkTAhdk.(32)\alpha_k=\frac{\mathbf{r}_k^{\mathsf{T}}\mathbf{z}_k}{\mathbf{d}_k^{\mathsf{T}}A_h\mathbf{d}_k}. \tag*{(32)}
ph(k+1)=ph(k)+αkdk.(33)\mathbf{p}_h^{(k+1)}=\mathbf{p}_h^{(k)}+\alpha_k\mathbf{d}_k. \tag*{(33)}
rk+1=rk−αkAhdk.(34)\mathbf{r}_{k+1}=\mathbf{r}_k-\alpha_kA_h\mathbf{d}_k. \tag*{(34)}
zk+1=M−1rk+1.(35)\mathbf{z}_{k+1}=M^{-1}\mathbf{r}_{k+1}. \tag*{(35)}
βk=rk+1Tzk+1rkTzk.(36)\beta_k=\frac{\mathbf{r}_{k+1}^{\mathsf{T}}\mathbf{z}_{k+1}}{\mathbf{r}_k^{\mathsf{T}}\mathbf{z}_k}. \tag*{(36)}
dk+1=zk+1+βkdk.(37)\mathbf{d}_{k+1}=\mathbf{z}_{k+1}+\beta_k\mathbf{d}_k. \tag*{(37)}

The iteration terminates when the prescribed relative residual tolerance is reached. Algorithm 4.1 gives the complete procedure, and Figure 2 summarizes the complete hybrid quantum–classical coarse-to-fine workflow.

Figure 2. Hybrid quantum-classical coarse-to-fine workflow.

For the time-dependent problem, the same initialization and correction are applied at each time step to its SPD time-discrete system, using that step’s operator and right-hand side.

Numerical Experiments

We assess the hybrid coarse-to-fine framework on steady and time-dependent heterogeneous Darcy problems. We examine whether the reconstructed coarse solution provides a useful initial guess for the fine-grid solve. We report coarse-solution accuracy, initial and corrected pressure errors, AMG-PCG iteration counts, and the sampling requirements of the coarse solve.

The reference solution ph\mathbf{p}_h is computed from the same fine-grid finite element system used for correction. Bold symbols denote coefficient vectors, while the corresponding plain symbols denote finite element functions. Pressure vectors contain only the values at nodes where pressure is unknown; prescribed Dirichlet values are included when forming the full pressure functions.

For finite element functions uu and a nonzero reference vv, we define the relative L2(Ω)L^2(\Omega) error by

Erel(u,v):=∥u−v∥L2(Ω)∥v∥L2(Ω).(38)E_{\mathrm{rel}}(u,v):=\frac{\lVert u-v\rVert_{L^2(\Omega)}}{\lVert v\rVert_{L^2(\Omega)}}. \tag*{(38)}

Algorithm 4.1 Hybrid quantum–classical coarse-to-fine Darcy solver

  1. Input: Reduced fine-grid system Ahph=bhA_h\mathbf{p}_h=\mathbf{b}_h with bh≠0\mathbf{b}_h\ne0; prolongation P∈RNh×NHP\in\mathbb{R}^{N_h\times N_H}; boundary lifting GhG_h and its free-node vector gh\mathbf{g}_h; fixed SPD AMG preconditioner M−1M^{-1}; quantum solver settings; PCG tolerance εpcg\varepsilon_{\mathrm{pcg}} and iteration limit kmax⁡k_{\max}.

  2. Form the coarse system:

AH=PTAhP,bH=PT(bh−Ahgh).A_H=P^T A_hP,\qquad\mathbf{b}_H=P^T(\mathbf{b}_h-A_h\mathbf{g}_h).
  1. Solve and reconstruct on the coarse grid: If bH=0\mathbf{b}_H=0, set pHq=0\mathbf{p}_H^q=0. Otherwise, pad and scale (AH,bH)(A_H,\mathbf{b}_H) as in (10)–(11). Prepare the right-hand-side state with UbU_b and trial states ∣ψ(θ)⟩\lvert\psi(\theta)\rangle. Run SPSA on (17) and select θ⋆\theta^\star. At these parameters, perform tomography to reconstruct ψ^\hat{\psi}. Compute αrec\alpha_{\mathrm{rec}} using (18) and set

pHq=RNH(αrecψ^),\mathbf{p}_H^q=R_{N_H}(\alpha_{\mathrm{rec}}\hat{\psi}),

where RNHR_{N_H} keeps the first NHN_H components.

  1. Initialize the fine-grid solve:

ph(0)=gh+PpHq,r0=bh−Ahph(0),z0=M−1r0,d0=z0.\mathbf{p}_h^{(0)}=\mathbf{g}_h+P\mathbf{p}_H^q,\qquad \mathbf{r}_0=\mathbf{b}_h-A_h\mathbf{p}_h^{(0)},\qquad \mathbf{z}_0=M^{-1}\mathbf{r}_0,\qquad \mathbf{d}_0=\mathbf{z}_0.

Set k=0k=0.

  1. Apply AMG-PCG: While ∥rk∥2/∥bh∥2>εpcg\lVert\mathbf{r}_k\rVert_2/\lVert\mathbf{b}_h\rVert_2>\varepsilon_{\mathrm{pcg}} and k<kmax⁡k<k_{\max}, compute

αk=rkTzkdkTAhdk,\alpha_k=\frac{\mathbf{r}_k^T\mathbf{z}_k}{\mathbf{d}_k^T A_h\mathbf{d}_k},
ph(k+1)=ph(k)+αkdk,\mathbf{p}_h^{(k+1)}=\mathbf{p}_h^{(k)}+\alpha_k\mathbf{d}_k,
rk+1=rk−αkAhdk,\mathbf{r}_{k+1}=\mathbf{r}_k-\alpha_kA_h\mathbf{d}_k,
zk+1=M−1rk+1,\mathbf{z}_{k+1}=M^{-1}\mathbf{r}_{k+1},
βk=rk+1Tzk+1rkTzk,\beta_k=\frac{\mathbf{r}_{k+1}^T\mathbf{z}_{k+1}}{\mathbf{r}_k^T\mathbf{z}_k},
dk+1=zk+1+βkdk.\mathbf{d}_{k+1}=\mathbf{z}_{k+1}+\beta_k\mathbf{d}_k.

Then set k←k+1k\leftarrow k+1.

  1. Output: Return the corrected free-node vector phcorr=ph(k)\mathbf{p}_h^{\mathrm{corr}}=\mathbf{p}_h^{(k)} and restore the Dirichlet values to form pcorr\mathbf{p}^{\mathrm{corr}}. Record kk, ∥r0∥2\lVert\mathbf{r}_0\rVert_2, and ∥rk∥2\lVert\mathbf{r}_k\rVert_2.

We evaluate these norms using the assembled fine-grid mass matrix and full nodal vectors.

For the steady problem, pHq\mathbf{p}_H^q contains the reconstructed coarse coefficients before adding the boundary lift. Its finite element function pHqp_H^q has zero Dirichlet values. Adding the boundary lift GHG_H gives the reconstructed coarse solution

p~Hq=GH+pHq.\widetilde{\mathbf{p}}_H^q=G_H+\mathbf{p}_H^q.

Let pH⋆\mathbf{p}_H^\star be the exact solution of AHpH⋆=bHA_H\mathbf{p}_H^\star=\mathbf{b}_H. We assess the reconstructed coefficients

Numerical Experiments

using the relative coarse residual and relative coefficient error:

ρH:=∥AHpHq−bH∥2∥bH∥2,EH,2:=∥pHq−pH⋆∥2∥pH⋆∥2.(39)\rho_H := \frac{\lVert A_H p_H^q-b_H\rVert_2}{\lVert b_H\rVert_2}, \qquad E_{H,2} := \frac{\lVert p_H^q-p_H^\star\rVert_2}{\lVert p_H^\star\rVert_2}. \tag*{(39)}

The residual ρH\rho_H measures how well the reconstructed vector satisfies the coarse system. The coefficient error EH,2E_{H,2} measures its relative Euclidean distance from the exact Galerkin vector.

For the steady fine-grid solve, we compare three initializations:

ph(0)={0,zero initialization,gh+PpH⋆,exact Galerkin initialization,gh+PpHq,reconstructed coarse initialization.(40)p_h^{(0)} = \begin{cases} 0, & \text{zero initialization},\\ g_h + Pp_H^\star, & \text{exact Galerkin initialization},\\ g_h + Pp_H^q, & \text{reconstructed coarse initialization}. \end{cases} \tag*{(40)}

Here, PP prolongs the coarse coefficients to the fine grid, and ghg_h contains the values of IHhGHI_H^hG_H at the nodes where pressure is unknown. For reconstructed coarse initialization, the corresponding fine-grid function is ph(0)=IHhpHqp_h^{(0)} = I_H^h p_H^q. All three initializations retain the prescribed Dirichlet values.

For an unknown-pressure vector v∈RNh\mathbf{v} \in\mathbb{R}^{N_h}, we define the relative fine-grid residual and energy error by

ρh(v):=∥bh−Ahv∥2∥bh∥2,EA(v):=((v−ph)TAh(v−ph)phTAhph)1/2,(41)\rho_h(\mathbf{v}) := \frac{\lVert\mathbf{b}_h-A_h\mathbf{v}\rVert_2}{\lVert\mathbf{b}_h\rVert_2}, \qquad E_A(\mathbf{v}) := \left(\frac{(\mathbf{v}-\mathbf{p}_h)^T A_h(\mathbf{v}-\mathbf{p}_h)}{\mathbf{p}_h^T A_h\mathbf{p}_h}\right)^{1/2}, \tag*{(41)}

where ph\mathbf{p}_h contains the unknown-node coefficients of the reference solution. For each initialization in (40), we report

ρ0:=ρh(ph(0)),Erel(0):=Erel(ph(0),ph),EA(0):=EA(ph(0)).\rho_0 := \rho_h\left(\mathbf{p}_h^{(0)}\right), \qquad E_{\mathrm{rel}}^{(0)} := E_{\mathrm{rel}}\left(\mathbf{p}_h^{(0)},\mathbf{p}_h\right), \qquad E_A^{(0)} := E_A\left(\mathbf{p}_h^{(0)}\right).

After AMG-PCG correction, we report the iteration count and

ρcorr:=ρh(phcorr),Erelcorr:=Erel(phcorr,ph).\rho_{\mathrm{corr}} := \rho_h(p_h^{\mathrm{corr}}), \qquad E_{\mathrm{rel}}^{\mathrm{corr}} := E_{\mathrm{rel}}(p_h^{\mathrm{corr}},p_h).

In the time-dependent experiment, residuals and L2L^2 errors are evaluated at each time step using the backward Euler system and a reference computed on the same spatial mesh and time grid. All reported relative quantities have nonzero denominators.

Both experiments are implemented in Python. We use NumPy and SciPy for finite element assembly and sparse linear algebra. Fine-grid correction uses SciPy’s conjugate-gradient solver with a PyAMG smoothed-aggregation preconditioner (AMG-PCG). We use the default V-cycle settings and construct the AMG hierarchy once for each fixed system matrix.

The quantum circuits are implemented with Qiskit and simulated with Qiskit Aer [32]. Objective evaluations and tomography use finite-shot measurements, with and without modeled gate and readout noise. Ideal statevector calculations provide reference results and the fixed circuit parameters used in the shot-count study. All quantum computations are simulated.

Measurement conditions. Each measurement setting uses a finite number of shots, denoted by SS. One shot is one circuit execution followed by measurement. Because the number of shots is limited, the measured results can vary even with ideal gates and readout. We also consider synthetic noise and device-modeled noise.

For synthetic gate noise, the simulator changes the state using the depolarizing channel

Dλ(ngate)(ρ)=(1−λ)ρ+λI2ngate2ngate.(42)\mathcal{D}_{\lambda}^{(n_{\mathrm{gate}})}(\rho)=(1-\lambda)\rho+\lambda\frac{I_{2^{n_{\mathrm{gate}}}}}{2^{n_{\mathrm{gate}}}}. \tag*{(42)}

Here, ρ\rho describes the state of the qubits affected by the gate. We set ngate=1n_{\mathrm{gate}}=1 for a one-qubit gate and ngate=2n_{\mathrm{gate}}=2 for a two-qubit gate. The matrix I2ngateI_{2^{n_{\mathrm{gate}}}} is the 2ngate×2ngate2^{n_{\mathrm{gate}}}\times2^{n_{\mathrm{gate}}} identity matrix, and I2ngate/2ngateI_{2^{n_{\mathrm{gate}}}}/2^{n_{\mathrm{gate}}} represents a fully random state. The parameter λ\lambda sets how much of this random state is mixed into ρ\rho [33]. We apply this noise after the compiled single-qubit Pauli-X and square-root-of-X gates with strength λ1\lambda_1, and after the two-qubit CNOT gates with strength λ2\lambda_2. Here, XX denotes the quantum bit-flip operation.

For synthetic readout noise, each measured bit is independently recorded as the opposite value with probability ϵro\epsilon_{\mathrm{ro}}:

Pr⁡(record 1∣0)=Pr⁡(record 0∣1)=ϵro.(43)\Pr(\mathrm{record}\ 1\mid0)=\Pr(\mathrm{record}\ 0\mid1)=\epsilon_{\mathrm{ro}}. \tag*{(43)}

Thus, a 0 may be recorded as 1, or a 1 as 0. This changes the recorded result rather than the state before measurement [34]. The mild and moderate synthetic noise settings use different values of (λ1,λ2,ϵro)(\lambda_1,\lambda_2,\epsilon_{\mathrm{ro}}), specified in the experiments below.

For device-modeled noise, Qiskit Aer uses gate and readout errors from the stored FakeManilaV2 calibration snapshot [19]. These errors come from the stored device calibration data rather than the synthetic noise settings above.

Experiment 1: Two-Dimensional Heterogeneous Darcy Flow

In this experiment, we test whether the reconstructed coarse solution improves the initial fine-grid solution ph(0)p_h^{(0)} and reduces AMG-PCG iterations. We also examine how shot count and modeled noise affect coarse-solution accuracy.

Problem setup. We consider the steady Darcy problem (2.1) on Ω=(0,1)2\Omega=(0,1)^2. we impose Dirichlet boundary conditions on the left and the right boundaries (p(0,y)=(p(0,y)= 1 and p(1,y)=0p(1,y)=0, together with homogeneous no-flow conditions on the top and bottom boundaries and set the source term to f(x,y)=10sin⁡(πx)sin⁡(πy)f(x,y)=10\sin(\pi x)\sin(\pi y). The fine and Galerkin coarse meshes contain 8,192 and 32 elements, respectively. Using linear finite elements and eliminating the prescribed Dirichlet boundary values give Nh=4,095N_h=4,095 and NH=15N_H=15 degrees of freedom, respectively. We use the heterogeneous fine-scale permeability Kh=κhIK_h=\kappa_h I shown in Figure 3a. Its fine-scale variations make it challenging for the coarse solution to capture the local behavior of the pressure field. Following (10), we augment the 15 coarse degrees of freedom with one auxiliary unknown, giving a 16-dimensional padded system represented on four qubits. We set γ=λmax⁡(AH)\gamma=\lambda_{\max}(A_H), use a six-layer ansatz with 24 parameters, and choose the padding-penalty weight ηpad=1\eta_{\mathrm{pad}}=1.

We present the results in two parts. First, we assess the accuracy of the reconstructed coarse solutions under finite-shot sampling and modeled noise, then test their effect on the initial fine-grid solution and classical solver (AMG-PCG) iteration count. Second, we study how the number of measurement shots affects coarse-solution accuracy while holding the circuit parameters fixed.

i) Coarse-solution accuracy and its effect on the fine-grid solve. In the first study, we test whether a reconstructed coarse solution from simulated finite-shot measurements provides a useful initial solution, ph(0)p_h^{(0)}, for the fine-grid solve. We consider three measurement conditions defined above (p. 14): finite-shot sampling without gate or readout noise, mild synthetic noise, and device-modeled noise. For mild synthetic noise, we use (λ1,λ2,ϵro)=(10−4,10−3,0.005)(\lambda_1,\lambda_2,\epsilon_{\mathrm{ro}})=(10^{-4},10^{-3},0.005).

For each condition, we perform five independent SPSA runs with 200 updates and 2,048 shots per objective circuit. In each run, we select a candidate using fresh measurements with 4,096 shots per circuit and reconstruct its state using all 81 product-Pauli bases with 4,096 shots per basis.

Table 1 reports the relative coarse residual ρH\rho_H and coefficient error EH,2E_{H,2} defined in (39). Device-modeled noise gives the largest mean values of both measures. Finite-shot sampling and mild noise give similar coefficient errors, while mild noise gives a lower mean coarse residual.

Measurement conditionρH\rho_HEH,2E_{H,2}
Finite shots0.721±0.1150.721 \pm0.1150.267±0.0610.267 \pm0.061
Mild noise0.590±0.1000.590 \pm0.1000.282±0.0300.282 \pm0.030
Device-modeled noise0.797±0.1030.797 \pm0.1030.410±0.0480.410 \pm0.048

Table 1. Experiment 1. Accuracy of reconstructed coarse solutions. Entries are means and sample standard deviations over five independent SPSA runs per measurement condition.

Table 2 compares the initializations defined in (40). We report the initial residual ρ0\rho_0, relative L2L^2 error Erel(0)E_{\mathrm{rel}}^{(0)}, and energy error EA(0)E_{\mathrm{A}}^{(0)}, using the definitions in (38) and (41). Under all three measurement conditions, reconstructed coarse initialization gives smaller Erel(0)E_{\mathrm{rel}}^{(0)} and EA(0)E_{\mathrm{A}}^{(0)} than zero initialization. Exact Galerkin initialization gives the smallest errors. Both types of coarse initialization give larger ρ0\rho_0 than zero initialization. After correction, all cases have comparable ErelcorrE_{\mathrm{rel}}^{\mathrm{corr}} and require 26 AMG-PCG iterations. Thus, in this experiment, we observe smaller initial pressure errors without a reduction in AMG-PCG iterations.

To illustrate the pressure fields, we select the device-modeled noise run with the

Initializationρ0\rho_0Erel(0)E_{\mathrm{rel}}^{(0)}EA(0)E_A^{(0)}AMG-PCG iterationsErelcorrE_{\mathrm{rel}}^{\mathrm{corr}} (×10−13\times10^{-13})
Zero1.0001.0001.000264.42
Exact Galerkin28.4230.5730.758263.04
Finite shots26.184 ±\pm 0.7850.650 ±\pm 0.0220.800 ±\pm 0.012263.29 ±\pm 0.26
Mild noise26.499 ±\pm 0.7160.649 ±\pm 0.0160.795 ±\pm 0.008263.26 ±\pm 0.23
Device-modeled noise25.044 ±\pm 1.0840.704 ±\pm 0.0230.823 ±\pm 0.012263.55 ±\pm 0.23

caption: tbl:2: Experiment 1. Initial residual ρ0\rho_0, relative L2L^2 error Erel(0)E_{\mathrm{rel}}^{(0)}, energy error EA(0)E_A^{(0)}, AMG-PCG iterations, and corrected relative L2L^2 error ErelcorrE_{\mathrm{rel}}^{\mathrm{corr}}. The three measurement-condition rows use reconstructed coarse initialization. Entries with ±\pm show means and sample standard deviations over five independent runs.

:::

median coarse residual. Figure 3 displays κh\kappa_h, php_h, p~Hq\widetilde{p}_H^q, ph(0)p_h^{(0)}, phcorrp_h^{\mathrm{corr}}, and the pressures along y=0.5y = 0.5. The lifted quantum solution captures the large-scale pressure structure, and classical correction recovers the fine-grid reference solution to solver accuracy.

Figure 3: Experiment 1. fields for the device-modeled noise run with the median coarse residual: (a) κh\kappa_h, (b) php_h, (c) p~Hq\widetilde{p}_H^q, (d) ph(0)=IHhp~Hqp_h^{(0)} = I_H^h\widetilde{p}_H^q, and (e) phcorrp_h^{\mathrm{corr}}. Panel (f) compares these pressures along y=0.5y = 0.5: php_h (solid line), p~Hq\widetilde{p}_H^q (diamonds at coarse nodes), ph(0)p_h^{(0)} (dashed line), and phcorrp_h^{\mathrm{corr}} (circles).

Table 3 reports measurement costs for objective evaluation, tomography, and a complete SPSA run. Each objective uses 22 Pauli groups, an overlap circuit, and a padding circuit. The compiled standalone UbU_b has depth 54 and 23 CNOT gates; Ub†U_b^\dagger is executed on every overlap-measurement shot. The complete run includes gain calibration, 200 SPSA updates, checkpoint measurements, candidate selection, and final readout.

MeasurementCircuit executionsShots per circuitTotal shots
One SPSA objective evaluation242,04849,152
Final tomography814,096331,776
Complete measured SPSA run10,521-22,302,720

Table 3. Experiment 1. Simulated circuit and shot counts for the measured SPSA runs in the first study. Shots per circuit vary within the complete run.

ii) Effect of shot count. The first study used fixed shot counts for each measurement stage. We now vary the shot count to examine how it affects the accuracy of the reconstructed coarse solution. To separate measurement effects from differences between SPSA runs, we fix the circuit parameters at values obtained from ideal statevector optimization.

For each shot count and measurement condition, we repeat the objective evaluation and state reconstruction ten times using fresh measurement samples. In each repetition, we use the selected shot count for every objective circuit and tomography basis. We use the noise models as previously described (p. 14). Alongside the three conditions used in the first study, we include moderate synthetic noise with (λ1,λ2,ϵro)=(10−3,10−2,0.02)(\lambda_1,\lambda_2,\epsilon_{\mathrm{ro}})=(10^{-3},10^{-2},0.02).

Figure 4 shows that the mean coarse residual decreases with increasing shot count under all four measurement conditions. Mild noise gives results close to finite-shot sampling, while moderate synthetic noise and device-modeled noise give larger residuals. Device-modeled noise gives the largest mean residual at every shot count. Thus, increasing the shot count reduces the coarse residual, but differences between measurement conditions persist over the range tested.

Relative coarse residual versus shots per objective circuit and tomography basis

Figure 4. Experiment 1. Relative coarse residual ρH\rho_H versus shots per objective circuit and tomography basis. Circuit parameters are fixed at values obtained from ideal statevector optimization. Points show means and error bars show sample standard deviations over ten independent measurement repetitions per setting.

Experiment 2: Time-Dependent Darcy Flow with SPE10 Permeability

In this experiment, we apply the coarse-to-fine correction framework to a time-dependent Darcy problem with a heterogeneous SPE10-based permeability field [9]. Time discretization produces a linear system at each time step. We approximately solve the corresponding coarse system using the quantum circuit and reconstruct the coarse solution from measurements. We then prolongate this solution to the fine grid and use it to initialize the classical AMG-PCG solve.

We assess the accuracy of the reconstructed coarse solution, the fidelity of its associated quantum state, and the pressure error after fine-grid correction. We also examine whether reusing circuit parameters reduces sampling requirements and compare AMG-PCG iteration counts for initialization from the reconstructed coarse solution and the exact Galerkin coarse solution.

Problem setup. We consider the pressure field p=p(x,t):Ω×[0,T]→Rp=p(\mathbf{x},t):\Omega\times[0,T]\to\mathbb{R}, which satisfies

∂p∂t−∇⋅(Kh(x)∇p)=f(x,t)in Ω×(0,T].(44)\frac{\partial p}{\partial t}-\nabla\cdot\left(K_h(\mathbf{x})\nabla p\right)=f(\mathbf{x},t) \qquad\text{in }\Omega\times(0,T]. \tag*{(44)}

Here we set Ω=(0,Lx)×(0,60)\Omega=(0,L_x)\times(0,60), Lx=220L_x=220, and T=1T=1, and we impose Dirichlet boundary conditions on the left and the right boundaries (p(0,y,t)=1p(0,y,t)=1 and p(Lx,y,t)=0p(L_x,y,t)=0), together with homogeneous no-flow conditions on the upper and

Experiment 2: Time-Dependent Darcy Flow with SPE10 Permeability

lower boundaries. The initial condition is p(x,0)=1−x/Lxp(\boldsymbol{x},0)=1-x/L_x. We set the source term to

f(x,t)=a(t)(G0.3(x)−G0.7(x)),Gc(x)=exp⁡(−(x/Lx−c)2+(y/60−0.5)20.01),a(t)={10,0<t≤0.5,20,0.5<t≤1.(45)\begin{aligned} f(\boldsymbol{x},t)&=a(t)\left(G_{0.3}(\boldsymbol{x})-G_{0.7}(\boldsymbol{x})\right),\\ G_c(\boldsymbol{x})&=\exp\left(-\frac{(x/L_x-c)^2+(y/60-0.5)^2}{0.01}\right),\qquad a(t)=\begin{cases}10,&0<t\le0.5,\\20,&0.5<t\le1.\end{cases} \tag*{(45)} \end{aligned}

The two Gaussian terms represent a localized source-sink pair. Their amplitudes double after t=0.5t=0.5, producing a transient pressure response with fixed permeability and boundary conditions.

We use the heterogeneous permeability Kh(x)=κh(x)IK_h(\boldsymbol{x})=\kappa_h(\boldsymbol{x})I obtained from the top two-dimensional layer of the SPE10 dataset [9] and shown in Figure 5. The fine and Galerkin coarse meshes contain 26,400 and 32 elements, respectively. Using linear finite elements and eliminating the prescribed Dirichlet boundary values give Nh=13,359N_h=13,359 and NH=15N_H=15 degrees of freedom, respectively. Following (10), we augment the 15 coarse degrees of freedom with one auxiliary unknown, giving a 16-dimensional padded system represented on four qubits. As in Experiment 5.1, we use a six-layer ansatz with 24 parameters.

Time discretization and coarse solution. We use backward Euler time discretization with Δt=0.05\Delta t=0.05, giving Nt=T/Δt=20N_t=T/\Delta t=20 time steps and ti=iΔtt_i=i\Delta t. Let MhfullM_h^{\mathrm{full}} and AhfullA_h^{\mathrm{full}} denote the fine-grid mass and Darcy stiffness matrices before eliminating the prescribed pressure values. Let FF index the nodes where pressure is unknown and DD index the nodes with prescribed Dirichlet values. At time tit_i, the fine-grid system is

Bhphi=bhi,Bh=(Mhfull+ΔtAhfull)FF,B_h p_h^i=b_h^i,\qquad B_h=\left(M_h^{\mathrm{full}}+\Delta t A_h^{\mathrm{full}}\right)_{FF},
bhi=(Mhfullph,fulli−1+Δtfh,fulli)F−(Mhfull+ΔtAhfull)FDgD.(46)b_h^i=\left(M_h^{\mathrm{full}}p_{h,\mathrm{full}}^{i-1}+\Delta t f_{h,\mathrm{full}}^i\right)_F-\left(M_h^{\mathrm{full}}+\Delta t A_h^{\mathrm{full}}\right)_{FD}g_D. \tag*{(46)}

Here, phip_h^i contains the unknown pressures. For i>1i>1, ph,fulli−1p_{h,\mathrm{full}}^{i-1} contains the corrected solution from the preceding time step of the same run, including its boundary values. The vector fh,fullif_{h,\mathrm{full}}^i is the assembled load vector, and gDg_D contains the prescribed pressure values.

We represent the coarse solution as GH+uHiG_H+u_H^i, where GH(x,y)=1−x/LxG_H(x,y)=1-x/L_x satisfies the prescribed pressure conditions and uHiu_H^i vanishes on the Dirichlet boundaries. We set Gh=IHhGHG_h=I_H^hG_H and let ghg_h contain its values at the nodes indexed by FF. With PP denoting the prolongation matrix from coarse to fine unknowns, the Galerkin system is

BHuHi=bHi,BH=PTBhP,bHi=PT(bhi−Bhgh).(47)B_Hu_H^i=b_H^i,\qquad B_H=P^TB_hP,\qquad b_H^i=P^T(b_h^i-B_hg_h). \tag*{(47)}

The matrix BHB_H remains fixed throughout the simulation.

At each time step, the measured coarse solver produces the reconstructed coefficients uHq,iu_H^{q,i}. Let uHq,iu_H^{q,i} denote the corresponding finite element function. Adding GHG_H gives the reconstructed coarse solution p~Hq,i=GH+uHq,i\widetilde{p}_H^{q,i}=G_H+u_H^{q,i}, including the prescribed boundary values. The initial fine-grid vector is

ph(0),i=gh+PuHq,i.(48)p_h^{(0),i}=g_h+Pu_H^{q,i}. \tag*{(48)}

The classical solver (AMG-PCG) then solves

Bhδhi=bhi−Bhph(0),i(49)B_h\delta_h^i=b_h^i-B_hp_h^{(0),i} \tag*{(49)}

and gives the corrected solution

phcorr,i=ph(0),i+δhi.(50)p_h^{\mathrm{corr},i}=p_h^{(0),i}+\delta_h^i. \tag*{(50)}

We use the same AMG hierarchy throughout each trajectory and an explicitly recomputed relative residual tolerance of 10−1010^{-10}.

Measurement and parameter initialization. We follow the measurement and reconstruction procedure of Experiment 5.1. Each objective circuit uses 2,048 shots, and final tomography uses 4,096 shots for each of the 34=813^4=81 product-Pauli bases. All measurements are simulated with Qiskit Aer. We use the same three measurement conditions as in Experiment 5.1: finite-shot sampling without gate or readout noise, mild synthetic noise, and device-modeled noise.

For each condition, we compare two strategies for initializing the circuit parameters. Independent initialization uses fresh parameters at every time step. With parameter reuse, we initialize the circuit parameters at the first time step in the same way as for independent initialization. At each subsequent step, we use the parameters selected at the preceding step:

θ(0),i=θ∗,i−1,i>1,(51)\theta^{(0),i} = \theta^{*,i-1}, \qquad i > 1, \tag*{(51)}

where θ∗,i−1\theta^{*,i-1} denotes the selected parameters from the preceding step. We perform three independent runs of 20 time steps for each combination of measurement condition and initialization strategy, giving 18 runs in total.

For both strategies, we first reconstruct the coarse solution using the initial circuit parameters. We accept these parameters without SPSA updates if the relative residual of the reconstructed coarse solution satisfies

∥BHuHq,i−bHi∥2∥bHi∥2≤0.25.(52)\frac{\left\|B_H u_H^{q,i}-b_H^i\right\|_2}{\left\|b_H^i\right\|_2} \le0.25. \tag*{(52)}

Otherwise, we perform SPSA updates, checking this criterion every 20 updates, and stop when it is satisfied or the limit of 100 updates is reached. We select the tested parameters with the smallest measured coarse residual and perform an independent final readout to reconstruct the coarse solution used for fine-grid initialization.

We present the results in two parts. First, we assess coarse-solution accuracy, state fidelity, and pressure errors using the nine runs with parameter reuse. Second, we examine how parameter reuse affects sampling requirements and compare AMG-PCG iterations for initialization from the reconstructed coarse solution and the exact Galerkin solution.

i) Coarse-solution accuracy, state fidelity, and pressure errors. We compare the initial and corrected fine-grid solutions with an independently computed reference on the same spatial mesh and time grid. Their relative L2L^2 errors are

Erels,i=∥phs,i−phref,i∥L2(Ω)∥phref,i∥L2(Ω),s∈{(0),corr}.(53)E_{\mathrm{rel}}^{s,i} = \frac{\left\|p_h^{s,i}-p_h^{\mathrm{ref},i}\right\|_{L^2(\Omega)}}{\left\|p_h^{\mathrm{ref},i}\right\|_{L^2(\Omega)}}, \qquad s \in\{(0),\mathrm{corr}\}. \tag*{(53)}

We evaluate these norms using the finite element mass matrix.

Figure 6 shows the reconstructed coarse solution, corrected fine-grid solution, and reference solution at three times under device-modeled noise with parameter reuse. We show the run with the median final coarse residual among the three runs. The coarse solution captures the high- and low-pressure regions but misses their fine spatial features. Fine-grid correction recovers these features and gives a solution close to the reference.

Pressure fields for the representative run under device-modeled noise with parameter reuse

Figure 6. Experiment 2. Pressure fields for the representative run under device-modeled noise with parameter reuse. Rows show the reconstructed coarse solution p~Hq,i\tilde{p}_{H}^{q,i}, corrected fine-grid solution phcorr,ip_{h}^{\mathrm{corr},i}, and reference solution phref,ip_{h}^{\mathrm{ref},i}. Columns correspond to ti=0.05t_i=0.05, 0.5, and 1. All panels use the same color scale. The coarse solution includes the prescribed boundary values, and its mesh is shown in the top row.

We next assess the reconstructed coarse solution and its associated quantum state. The coefficient error measures how closely the reconstructed coefficients match the exact Galerkin solution. State fidelity measures how closely the reconstructed quantum state matches the target state defined by the normalized exact Galerkin solution.

To construct this target state, we compute uH∗,i=BH−1bHi\mathbf{u}_H^{*,i}=B_H^{-1}b_H^i, append a zero for the unused padded component, and normalize the resulting vector. We define the coefficient error and state fidelity as

EH,2i=∥uHq,i−uH⋆,i∥2∥uH⋆,i∥2,∣ψ⋆i⟩=(uH⋆,i,0)T∥uH⋆,i∥2,Fi=⟨ψ⋆i∣ρ^i∣ψ⋆i⟩.(54)\begin{aligned} E_{H,2}^{i} &= \frac{\lVert u_{H}^{q,i}-u_{H}^{\star,i}\rVert_{2}}{\lVert u_{H}^{\star,i}\rVert_{2}},\\ \lvert\psi_{\star}^{i}\rangle&= \frac{(u_{H}^{\star,i},0)^{T}}{\lVert u_{H}^{\star,i}\rVert_{2}},\\ \mathcal{F}_{i} &= \langle\psi_{\star}^{i}\lvert\hat{\rho}_{i}\rvert\psi_{\star}^{i}\rangle. \tag*{(54)} \end{aligned}

Here, ρ^i\hat{\rho}_{i} is the density matrix reconstructed from independent final tomography measurements. A smaller coefficient error indicates a more accurate coarse solution, while fidelity Fi\mathcal{F}_{i} closer to one indicates better agreement with the target state. The exact Galerkin solution is used only to evaluate accuracy. These comparisons are made before adding the boundary lift.

fig:7a shows similar coefficient errors under mild noise and device-modeled noise. fig:7b shows that fidelity remains near 0.89 under finite-shot sampling and mild noise, but near 0.61 under device-modeled noise. Neither metric changes noticeably at the source-amplitude change at t=0.5t=0.5.

Alongside these accuracy measures, we check whether probability is assigned to the unused state introduced by padding. The original coarse system has 15 coefficients, while its four-qubit representation has 16 components. The extra component, corresponding to ∣1111⟩\lvert1111\rangle, should ideally have zero probability. We estimate this probability as

ℓpadi=C1111iSpadi,(55)\ell_{\mathrm{pad}}^{i}=\frac{C_{1111}^{i}}{S_{\mathrm{pad}}^{i}}, \tag*{(55)}

Figure 7. (a) Relative coefficient error EH,2iE_{H,2}^{i}. (b) Target-state fidelity Fi\mathcal{F}_{i}. Experiment 2. Coefficient error and state fidelity with parameter reuse. Curves and shaded bands show means and sample standard deviations over three trajectories per condition. The dotted line marks the source-amplitude change at t=0.5t = 0.5.

where C1111iC_{1111}^{i} counts the 1111 outcomes among the SpadiS_{\mathrm{pad}}^{i} shots of the final padding-measurement circuit. With parameter reuse, the final-time estimates are (3.581±6.202)×10−3(3.581 \pm6.202) \times10^{-3} under finite-shot sampling, (1.628±1.973)×10−3(1.628 \pm1.973) \times10^{-3} under mild noise, and (4.069±0.282)×10−3(4.069 \pm0.282) \times10^{-3} under device-modeled noise. These are means and sample standard deviations over three runs per condition. Thus, at the final time, less than 0.5%0.5\% of the measured probability is assigned to the unused state on average under each condition.

Table 4 compares pressure errors before and after fine-grid correction at selected times. The initial error increases over time, while the corrected solution remains close to the discrete reference under all three measurement conditions.

Conditiontit_iErel(0),iE_{\mathrm{rel}}^{(0),i}Ecorr,iE_{\mathrm{corr},i}
Finite shots0.050.089 ±\pm 0.0011.49×10−121.49 \times10^{-12}
Finite shots0.50.465 ±\pm 0.0052.36×10−112.36 \times10^{-11}
Finite shots10.558 ±\pm 0.0063.90×10−113.90 \times10^{-11}
Mild noise0.050.089 ±\pm 0.0011.47×10−121.47 \times10^{-12}
Mild noise0.50.457 ±\pm 0.0062.44×10−112.44 \times10^{-11}
Mild noise10.549 ±\pm 0.0074.10×10−114.10 \times10^{-11}
Device-modeled noise0.050.088 ±\pm 0.0011.53×10−121.53 \times10^{-12}
Device-modeled noise0.50.459 ±\pm 0.0052.45×10−112.45 \times10^{-11}
Device-modeled noise10.550 ±\pm 0.0084.08×10−114.08 \times10^{-11}

Table 4. Experiment 2. Relative L2L^2 pressure errors before and after fine-grid correction with parameter reuse. Initial errors are means ±\pm sample standard deviations over three runs per condition; corrected errors are maxima over those runs.

Thus, fine-grid correction gives comparable pressure accuracy across the three measurement conditions, despite the lower state fidelity under device-modeled noise.

This accuracy refers to agreement with the reference on the same spatial mesh and time grid.

ii) Sampling requirements and AMG-PCG iterations. We examine whether reusing circuit parameters reduces the sampling required for the coarse solve and whether coarse initialization reduces the iterations required for fine-grid correction.

Table 5 compares the total simulated shots per 20-step run for independent parameter initialization and parameter reuse. The totals include gain calibration, SPSA objective evaluations, intermediate reconstructions, and independent final readouts. These counts measure sampling requirements, not runtime.

ConditionParameter initializationShots per run (10610^{6})
Finite shotsIndependent209.81 ±\pm 6.00
Finite shotsParameter reuse25.03 ±\pm 4.33
Mild noiseIndependent212.41 ±\pm 3.00
Mild noiseParameter reuse25.03 ±\pm 4.33
Device-modeled noiseIndependent260.92 ±\pm 10.50
Device-modeled noiseParameter reuse26.54 ±\pm 2.60

Table 5. Experiment 2. Total simulated shots per 20-step run. Entries are means ±\pm sample standard deviations over three trajectories per condition and initialization strategy.

Parameter reuse reduces the mean sampling requirement by approximately 88–90% across the three measurement conditions. Most time steps require no further SPSA updates: 56 of the 60 coarse solves under finite-shot sampling and mild noise, and 57 under device-modeled noise. These solves still require measurements to check the initial parameters and reconstruct the coarse solution.

For fine-grid correction, the reconstructed coarse solution requires 160 AMG-PCG iterations in total over 20 time steps under all three measurement conditions and both parameter strategies. Initialization from the exact Galerkin coarse solution requires the same number of iterations. Both initializations produce corrected solutions close to the discrete reference. Thus, parameter reuse reduces sampling requirements. Initialization from the reconstructed coarse solution gives the same AMG-PCG iteration count and comparable corrected pressure accuracy as exact Galerkin initialization.

Conclusion

Conclusion. We developed a hybrid quantum-classical coarse-to-fine finite element framework for heterogeneous Darcy flow. A variational quantum solver approximates the Galerkin coarse solution; measurement and classical reconstruction produce an explicit coefficient vector. Prolongating that vector and adding the boundary lifting gives an initial pressure for classical AMG-PCG correction.

The results in Experiment 1 show that measured quantum initialization lowers the initial fine-grid L2L^{2} and energy errors relative to zero initialization under finite sampling and modeled noise. However, this improvement does not reduce the subsequent AMG-PCG iteration count. The fixed-parameter study shows that additional shots improve coarse accuracy, while modeled noise continues to affect the reconstruction. In the time-dependent workflow, reusing circuit parameters from the preceding time step reduces the mean sampling requirements, while the total AMG-PCG iteration count remains unchanged. This highlights the usefulness of previous time-step information in reducing the measurement cost of the quantum coarse solve.

This framework provides a prototype for integrating quantum approximations into established classical fine-grid solvers. Although this work focuses on Darcy flow, the hybrid coarse-to-fine PDE workflow can also be applied to other SPD discretizations in multiphysics systems. Future work should examine larger coarse systems, alternative coarse spaces, more efficient reconstruction, and implementation on quantum hardware.

Acknowledgments. The work of all authors K. Chawla, S. Lee, and J. Valyou was supported by the U.S. Department of Energy, Office of Science, Energy Earthshots Initiatives under Award Number DE-SC 0024703.

References

References

  1. [1]S. Aaronson, Read the fine print, Nature Physics, 11 (2015), pp. 291–293.DOI
  2. [2]A. Arora, B. M. Ward, and C. Oskay, An implementation of the finite element method in hybrid classical/quantum computers, Finite Elements in Analysis and Design, 248 (2025), p. 104354.arxiv.org/abs/2411.09038
  3. [3]G. T. Balducci, B. Chen, M. Möller, M. Gerritsma, and R. D. Breuker, Review and perspectives in quantum computing for partial differential equations in structural mechanics, Frontiers in Mechanical Engineering, 8 (2022).DOI
  4. [4]C. Bravo-Prieto, R. LaRose, M. Cerezo, Y. Subaşi, L. Cincio, and P. J. Coles, Variational quantum linear solver, Quantum, 7 (2023), p. 1188.
  5. [5]W. L. Briggs, V. E. Henson, and S. F. McCormick, A Multigrid Tutorial, SIAM, 2000.
  6. [6]K. Chawla, S. Lee, and Y. Shin, A parallel and adaptive mesh-free method for discontinuous coefficient fields in heterogenous porous media, 2026. arXiv:2605.16564.arxiv.org/abs/2605.16564
  7. [7]Z. Chen, G. Huan, and Y. Ma, Computational Methods for Multiphase Flows in Porous Media, vol. 2 of Computational Science and Engineering, Society for Industrial and Applied Mathematics, Philadelphia, PA, 2006.DOI
  8. [8]A. M. Childs, R. Kothari, and R. D. Somma, Quantum algorithm for systems of linear equations with exponentially improved dependence on precision, SIAM Journal on Computing, 46 (2017), pp. 1920–1950.DOI
  9. [9]M. A. Christing and M. J. Blunt, Tenth SPE comparative solution project: A comparison of upscaling techniques, SPE Reservoir Evaluation & Engineering, 4 (2001), pp. 308–317. https://doi.org/10.2118/72469-PA.
  10. [10]M. Deiml and D. D. Peterseim, Quantum realization of the finite element method, 2024. arXiv:2403.19512.DOI
  11. [11]L. J. Durlofsky, Numerical calculation of equivalent grid block permeability tensors for heterogeneous porous media, Water Resources Research, 27 (1991), pp. 699–708.
  12. [12]Y. Efendiev and T. Y. Hou, Multiscale Finite Element Methods: Theory and Applications, Springer, 2009.
  13. [13]Y. Fang et al., Qubit-efficient quantum algorithm for differential equations, Nature Communications, 14 (2023), pp. 1–9.
  14. [14]A. Gilyén, Y. Su, G. H. Low, and N. Wiebe, Quantum singular value transformation and beyond: Exponential improvements for quantum matrix arithmetics, in Proceedings of the 51st Annual ACM SIGACT Symposium on Theory of Computing, 2019, pp. 193–204.DOI
  15. [15]J. Golden, D. O’Malley, and H. Viswanathan, Quantum computing for preconditioners for hydrological linear systems, Scientific Reports, 12 (2022), p. 22285.DOI
  16. [16]A. W. Harrow, A. Hassidim, and S. Lloyd, Quantum algorithm for linear systems of equations, Physical Review Letters, 103 (2009), p. 150502.pubmed.ncbi.nlm.nih.gov/19905613
  17. [17]J. M. Henderson, J. Kath, J. K. Golden, A. G. Percus, and D. O’Malley, Addressing quantum computers “fine print” with efficient state preparation and information extraction for quantum algorithms and geologic fracture networks, Scientific Reports, 14 (2024), p. 3592.DOI
  18. [18]J. M. Henderson, M. Podzorova, M. Cerezo, J. K. Golden, L. Gleyzer, H. S. Viswanathan, and D. O’Malley, Quantum algorithms for geologic fracture networks, Scientific Reports, 13 (2023), p. 2906.DOI
  19. [19]IBM Quantum, Face provider. Qiskit IBM Runtime Documentation. Accessed October 16, 2026.
  20. [20]R. Iten, R. Colbeck, I. Kukuljan, J. Home, and M. Christandl, Quantum circuits for isometries, Physical Review A, 93 (2016), p. 032318.DOI
  21. [21]B. Jacob, A. A. Howard, and P. Stinis, Bridging quantum and classical computing for partial differential equations through multifidelity machine learning, 2025. arXiv:2512.05241.
  22. [22]D. F. V. James, P. G. Kwiat, W. J. Munro, and A. G. White, Measurement of qubits, Physical Review A, 64 (2001), p. 052312.DOI
  23. [23]A. Kandala, A. Mezzacapo, K. Temme, M. Takita, M. Brink, J. M. Chow, and J. M. Gambetta, Hardware-efficient variational quantum eigensolver for small molecules and quantum magnets, Nature, 549 (2017), pp. 242–246.DOI
  24. [24]Y. Li, L. T. Zikanov, and C. Zuo, Reduced krylov basis methods for parametric partial differential equations, SIAM Journal on Numerical Analysis, 63 (2025), pp. 976–999.arxiv.org/abs/2405.07139
  25. [25]H.-Y. Liu, Y.-C. Wang, Y.-C. Luo, and Y.-J. Chen, Variational quantum linear solver for poisson equation, Scientific Reports, 11 (2021), p. 12453.
  26. [26]M. Lubasch, J. Joo, P. Moinier, and M. Kiffner, Variational quantum algorithms for nonlinear problems, Physical Review A, 101 (2020), p. 010301.DOI
  27. [27]M. E. S. Morales, L. Pira, P. Schleich, K. Koor, P. C. S. Costa, D. An, A. Aspuru-Guzik, L. Lin, P. Rebenrost, and D. W. Berry, Quantum linear system solvers: A survey of algorithms and applications, 2024. arXiv:2411.02522.arxiv.org/abs/2411.02522
  28. [28]M. Möttönen, J. J. Vartiainen, V. Bergholm, and M. M. Salomaa, Transformation of quantum states using uniformly controlled rotations, Quantum Information and Computation, 5 (2005), pp. 467–473.arxiv.org/abs/quant-ph/0407010
  29. [29]R. A. Nicolaides, Deflation of conjugate gradients with applications to boundary value problems, SIAM Journal on Numerical Analysis, 24 (1987), pp. 355–365.DOI
  30. [30]G. G. Pollachini, J. P. L. C. Salazar, C. B. D. Goes, T. O. Maciel, and E. I. Duzzioni, A hybrid classical-quantum approach to solve the heat equation using quantum annealers, Physical Review A, 104 (2021), p. 032426.
  31. [31]J. Preskill, Quantum computing in the NISQ era and beyond, Quantum, 2 (2018), p. 79.DOI
  32. [32]Qiskit Contributors, Qiskit: An open-source framework for quantum computing, 2021.
  33. [33]Qiskit Development Team, Depolarizing error. Qiskit Aer Documentation. Accessed October 16, 2026.
  34. [34]Qiskit Development Team, ReadoutError. Qiskit Aer Documentation. Accessed October 16, 2026.
  35. [35]Y. Saad, Iterative Methods for Sparse Linear Systems, SIAM, Philadelphia, PA, 2 ed., 2003.DOI
  36. [36]Y. Sato, R. Kondo, S. Koide, H. Takamatsu, and N. Imoto, Variational quantum algorithm based on the minimum potential energy for solving the poisson equation, Physical Review A, 104 (2021), p. 052409.DOI
  37. [37]M. A. Schalkers and M. Möller, Efficient and fail-safe quantum algorithm for the transport equation, Journal of Computational Physics, 502 (2024), p. 112816.DOI
  38. [38]B. F. Smith, P. E. Bjørstad, and W. D. Gropp, Domain Decomposition: Parallel Multilevel Methods for Elliptic Partial Differential Equations, Cambridge University Press, Cambridge, UK, 1996.
  39. [39]J. C. Spall, Multivariate stochastic approximation using a simultaneous perturbation gradient approximation, IEEE Transactions on Automatic Control, 37 (1992), pp. 332–341.DOI
  40. [40]A. Toselli and O. B. Widlund, Domain Decomposition Methods—Algorithms and Theory, vol. 34 of Springer Series in Computational Mathematics, Springer, Berlin, 2005.DOI
  41. [41]C. Vuik, R. Nabben, and J. M. Tang, Deflation techniques for domain decomposition methods applied to porous media flow problems, SIAM Journal on Scientific Computing, 27 (2006), pp. 1742–1766.

Paper details

vlnc:W_h38z6x3v
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 10

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents