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 when needed for an -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 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 presents the finite element and Galerkin formulations. Section describes the quantum coarse solve and classical reconstruction. Section presents fine-grid correction. Section reports the numerical experiments, and Section 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 be a bounded Lipschitz domain. Its boundary is divided into disjoint Dirichlet and Neumann parts, , with . The steady pressure satisfies
Here is the spatial position, is the outward unit normal, is the source term, is the prescribed pressure, and is the prescribed normal component of .
We use the isotropic permeability tensor , where is the identity matrix. The scalar permeability may be discontinuous, but we assume
The ratio measures permeability contrast. Large contrast can make the discrete system difficult to solve.
Weak formulation and fine-grid system
Let 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
Multiplying (2.1) by a test function and integrating by parts gives: find such that
where
The sign of the Neumann term follows the boundary condition in (2.1).
Let be a conforming triangulation of with mesh size , where is the diameter of triangle . We use continuous piecewise linear finite elements,
where is the space of affine functions on a triangle . Let and ; the prescribed Dirichlet values are imposed at boundary nodes. We write for the fine-mesh permeability used in assembly and assume 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.

Figure 3. (a) Permeability . (b) Reference pressure . (c) Coarse pressure . (d) Lifted initial pressure . (e) Corrected pressure . (f) Pressure slice at .
Figure 5. Experiment 2. fine permeability from a two-dimensional top slice of the SPE10 dataset; colors show .
With , the discrete problem is: find such that
Let be the total number of fine-grid nodal degrees of freedom, including boundary nodes, and let count those on . The remaining degrees of freedom are unknown. Let be the nodal basis associated with these free nodes. Eliminating the prescribed Dirichlet values gives
where contains the unknown pressures at free nodes, is the reduced load vector, and
The Dirichlet values are prescribed separately; they are not entries of . The reduced load includes the source and Neumann terms and the contribution from eliminating those prescribed values. The positivity of and make symmetric positive definite (SPD).
Galerkin coarse system
Let be a coarse triangulation with mesh size , and assume is its conforming refinement. Define the continuous piecewise linear coarse space in the same way as . Its total nodal count is ; after excluding prescribed Dirichlet nodes, the free coarse count is , where . Thus .
Choose a boundary lifting that matches on , and let contain its values only at the free fine nodes. Then has free-node coefficient vector . We approximate this homogeneous correction by . For homogeneous Dirichlet data, we take . The Galerkin problem is
Let be the nodal basis of and write . The vector contains the homogeneous coarse coefficients. Because the spaces are nested, each can be expressed in the fine basis. This defines the prolongation matrix by
The matrix maps coarse coefficients to values at the free fine nodes. Galerkin projection of (6) gives
The subtraction removes the free-node part of the boundary lifting before restricting the fine-grid residual. Since is SPD and has full column rank, is also SPD. Moreover,
Thus, the coarse operator retains the fine-mesh permeability through the Galerkin projection.
Denote the exact solution of (8) by and the measured, reconstructed approximation from the quantum solver by . The corresponding coarse functions lie in . Their free-node fine-grid approximations are and , 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
Thus is symmetric positive definite (SPD), is its right-hand side, and 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 -qubit state has amplitudes. We choose , so that . If , we pad the coarse system as
where is the identity on the added components, , and is the largest eigenvalue of . The choice makes SPD without changing the spectral condition number of ; the exact padded solution is . If , we set and .
We scale the operator by its largest eigenvalue,
The eigenvalues of lie in . Padding and scaling preserve the solution direction. The eigenvalues used here are computed classically for the small coarse matrix.
The right-hand side is assembled classically from the fine-grid problem. Although is sparse, 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 , the coarse solution is zero and no quantum solve is needed. Otherwise, define the normalized padded right-hand-side state
Here denotes the joint all-zero state of the qubits. From the known entries of , we synthesize a unitary satisfying
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 for qubits. Its inverse 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
where contains one rotation angle for each layer and qubit . Thus there are parameters. Each of the layers applies rotations to all qubits, followed by a chain of CNOT gates between neighboring qubits. For an angle ,
Because 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 and denote the combined rotations and CNOTs in layer , respectively, then

Figure 1. Four-qubit trial-state circuit with three layers. Each layer applies rotations followed by a nearest-neighbor CNOT chain.
The nearest-neighbor structure follows hardware-efficient ansatz designs [23, 4]. It uses 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 , the padded SPD system has quadratic energy
Its minimizer is the padded solution. Writing separates the unknown scale from the normalized trial direction. Minimizing over gives
where is the real amplitude vector of . We minimize the energy-based objective
where penalizes padded amplitudes. Unlike standard VQLS, which aligns with [4], this term comes from minimizing SPD energy over scale [36].
The three quantities in (14) are
where is the identity and projects onto the first amplitudes; is the square zero matrix on the padded components. If , then . For the real normalized trial states, is the squared overlap with the right-hand-side state and .
Each circuit execution, or shot, produces one measurement outcome; denotes the shots used for a measurement setting. The three terms are estimated as follows.
Overlap. Prepare , apply , and measure all qubits in the computational basis. The all-zero outcome has probability
If of shots return all zeros, set .
Operator expectation. Decompose the known scaled matrix into Pauli strings,
where is the number of retained terms, , and is a tensor product of single-qubit matrices from . Each measured Pauli expectation gives a signed average of and outcomes. Compatible strings are measured in the same basis setting, and their estimates are combined as
Padding. Measure the trial state in the computational basis. Outcomes with indices correspond to padded amplitudes. If of shots have these indices, set . No padding circuit is needed when .
Because is SPD and has largest eigenvalue one, , where denotes the smallest eigenvalue. To keep a sampled denominator positive, define
and evaluate
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 from measured objective values at two perturbed parameter vectors per iteration. The selected final parameters are denoted by .
We measure in all combinations of the single-qubit , , and bases. Computational-basis probabilities alone do not determine the relative signs of real amplitudes. State tomography combines the measurements into an estimated density matrix [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 . 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 , the magnitude of the energy-minimizing scale could also be estimated from the measured overlap and operator expectation :
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 and remove the padded components:
where selects the first entries, is the identity, and the zero block has columns. An overall sign change of also changes the sign of , leaving unchanged. Both operations are performed on the classical reconstructed vector, not on the quantum state.
For the Darcy problem, is the approximate coarse coefficient vector. Its prolongation gives the free-node initial pressure for the classical fine-grid correction,
The 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
where
and
Here is the fine-scale stiffness matrix assembled with the fine permeability field, while
The vector contains the free-degree-of-freedom values of the boundary lifting . The coarse unknown represents the pressure component after subtracting this lifting, and 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 , satisfying
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 . Because the fine mesh is a conforming refinement of the coarse mesh, represents the same coarse function in the fine space. Let denote the coarse function associated with the coefficient vector , so that . Adding this function to the boundary lifting gives
In coefficient form, this inclusion is represented by the prolongation matrix
so that
Here denotes the prolongation between the reduced coarse and fine coefficient spaces after the same Dirichlet boundary treatment has been applied on both levels. Since vanishes on the Dirichlet boundary, adding its interpolation to preserves the prescribed boundary values. For homogeneous Dirichlet data, we take and . The vector contains only the free-node values of 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
using as the initial guess. The reduced matrix is SPD, as shown in § 2. We assume that the algebraic multigrid (AMG) preconditioner defines a fixed SPD operator , so that standard PCG theory applies to the symmetrically preconditioned operator . A nonsymmetric or variable AMG cycle would require an appropriate alternative Krylov method.
Let
denote the initial residual associated with the lifted quantum coarse approximation. Since the fine-grid solution satisfies , we have
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 satisfies .
Using this preconditioner, the PCG iterates generate a sequence with residuals
Formally, the iterates satisfy
where
Thus, the quantum coarse solve affects the fine-grid iteration through the initial residual and the initial error . To make this dependence explicit, we write
where is the exact solution of the Galerkin coarse system and denotes the error in the reconstructed quantum coarse solution. Then
The Galerkin construction gives [5]
Consequently, the two error components are orthogonal in the energy inner product, and
where . 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 , the standard PCG estimate gives
where denotes the spectral condition number. Thus, the quantum coarse solve influences the size and structure of the initial error , 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 and the residual defined in (27), define
Then, for , compute
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 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 and a nonzero reference , we define the relative error by
Algorithm 4.1 Hybrid quantum–classical coarse-to-fine Darcy solver
Input: Reduced fine-grid system with ; prolongation ; boundary lifting and its free-node vector ; fixed SPD AMG preconditioner ; quantum solver settings; PCG tolerance and iteration limit .
Form the coarse system:
Solve and reconstruct on the coarse grid: If , set . Otherwise, pad and scale as in (10)–(11). Prepare the right-hand-side state with and trial states . Run SPSA on (17) and select . At these parameters, perform tomography to reconstruct . Compute using (18) and set
where keeps the first components.
Initialize the fine-grid solve:
Set .
Apply AMG-PCG: While and , compute
Then set .
Output: Return the corrected free-node vector and restore the Dirichlet values to form . Record , , and .
We evaluate these norms using the assembled fine-grid mass matrix and full nodal vectors.
For the steady problem, contains the reconstructed coarse coefficients before adding the boundary lift. Its finite element function has zero Dirichlet values. Adding the boundary lift gives the reconstructed coarse solution
Let be the exact solution of . We assess the reconstructed coefficients
Numerical Experiments
using the relative coarse residual and relative coefficient error:
The residual measures how well the reconstructed vector satisfies the coarse system. The coefficient error measures its relative Euclidean distance from the exact Galerkin vector.
For the steady fine-grid solve, we compare three initializations:
Here, prolongs the coarse coefficients to the fine grid, and contains the values of at the nodes where pressure is unknown. For reconstructed coarse initialization, the corresponding fine-grid function is . All three initializations retain the prescribed Dirichlet values.
For an unknown-pressure vector , we define the relative fine-grid residual and energy error by
where contains the unknown-node coefficients of the reference solution. For each initialization in (40), we report
After AMG-PCG correction, we report the iteration count and
In the time-dependent experiment, residuals and 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 . 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
Here, describes the state of the qubits affected by the gate. We set for a one-qubit gate and for a two-qubit gate. The matrix is the identity matrix, and represents a fully random state. The parameter sets how much of this random state is mixed into [33]. We apply this noise after the compiled single-qubit Pauli-X and square-root-of-X gates with strength , and after the two-qubit CNOT gates with strength . Here, denotes the quantum bit-flip operation.
For synthetic readout noise, each measured bit is independently recorded as the opposite value with probability :
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 , 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 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 . we impose Dirichlet boundary conditions on the left and the right boundaries 1 and , together with homogeneous no-flow conditions on the top and bottom boundaries and set the source term to . 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 and degrees of freedom, respectively. We use the heterogeneous fine-scale permeability 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 , use a six-layer ansatz with 24 parameters, and choose the padding-penalty weight .
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, , 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 .
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 and coefficient error 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 | ||
| Finite shots | ||
| Mild noise | ||
| Device-modeled noise |
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 , relative error , and energy error , using the definitions in (38) and (41). Under all three measurement conditions, reconstructed coarse initialization gives smaller and than zero initialization. Exact Galerkin initialization gives the smallest errors. Both types of coarse initialization give larger than zero initialization. After correction, all cases have comparable 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 | AMG-PCG iterations | () | |||
| Zero | 1.000 | 1.000 | 1.000 | 26 | 4.42 |
| Exact Galerkin | 28.423 | 0.573 | 0.758 | 26 | 3.04 |
| Finite shots | 26.184 0.785 | 0.650 0.022 | 0.800 0.012 | 26 | 3.29 0.26 |
| Mild noise | 26.499 0.716 | 0.649 0.016 | 0.795 0.008 | 26 | 3.26 0.23 |
| Device-modeled noise | 25.044 1.084 | 0.704 0.023 | 0.823 0.012 | 26 | 3.55 0.23 |
caption: tbl:2: Experiment 1. Initial residual , relative error , energy error , AMG-PCG iterations, and corrected relative error . The three measurement-condition rows use reconstructed coarse initialization. Entries with show means and sample standard deviations over five independent runs.
:::
median coarse residual. Figure 3 displays , , , , , and the pressures along . 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) , (b) , (c) , (d) , and (e) . Panel (f) compares these pressures along : (solid line), (diamonds at coarse nodes), (dashed line), and (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 has depth 54 and 23 CNOT gates; is executed on every overlap-measurement shot. The complete run includes gain calibration, 200 SPSA updates, checkpoint measurements, candidate selection, and final readout.
| Measurement | Circuit executions | Shots per circuit | Total shots |
| One SPSA objective evaluation | 24 | 2,048 | 49,152 |
| Final tomography | 81 | 4,096 | 331,776 |
| Complete measured SPSA run | 10,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 .
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.

Figure 4. Experiment 1. Relative coarse residual 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 , which satisfies
Here we set , , and , and we impose Dirichlet boundary conditions on the left and the right boundaries ( and ), 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 . We set the source term to
The two Gaussian terms represent a localized source-sink pair. Their amplitudes double after , producing a transient pressure response with fixed permeability and boundary conditions.
We use the heterogeneous permeability 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 and 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 , giving time steps and . Let and denote the fine-grid mass and Darcy stiffness matrices before eliminating the prescribed pressure values. Let index the nodes where pressure is unknown and index the nodes with prescribed Dirichlet values. At time , the fine-grid system is
Here, contains the unknown pressures. For , contains the corrected solution from the preceding time step of the same run, including its boundary values. The vector is the assembled load vector, and contains the prescribed pressure values.
We represent the coarse solution as , where satisfies the prescribed pressure conditions and vanishes on the Dirichlet boundaries. We set and let contain its values at the nodes indexed by . With denoting the prolongation matrix from coarse to fine unknowns, the Galerkin system is
The matrix remains fixed throughout the simulation.
At each time step, the measured coarse solver produces the reconstructed coefficients . Let denote the corresponding finite element function. Adding gives the reconstructed coarse solution , including the prescribed boundary values. The initial fine-grid vector is
The classical solver (AMG-PCG) then solves
and gives the corrected solution
We use the same AMG hierarchy throughout each trajectory and an explicitly recomputed relative residual tolerance of .
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 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:
where 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
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 errors are
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.

Figure 6. Experiment 2. Pressure fields for the representative run under device-modeled noise with parameter reuse. Rows show the reconstructed coarse solution , corrected fine-grid solution , and reference solution . Columns correspond to , 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 , append a zero for the unused padded component, and normalize the resulting vector. We define the coefficient error and state fidelity as
Here, is the density matrix reconstructed from independent final tomography measurements. A smaller coefficient error indicates a more accurate coarse solution, while fidelity 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 .
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 , should ideally have zero probability. We estimate this probability as
Figure 7. (a) Relative coefficient error . (b) Target-state fidelity . 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 .
where counts the 1111 outcomes among the shots of the final padding-measurement circuit. With parameter reuse, the final-time estimates are under finite-shot sampling, under mild noise, and under device-modeled noise. These are means and sample standard deviations over three runs per condition. Thus, at the final time, less than 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.
| Condition | |||
| Finite shots | 0.05 | 0.089 0.001 | |
| Finite shots | 0.5 | 0.465 0.005 | |
| Finite shots | 1 | 0.558 0.006 | |
| Mild noise | 0.05 | 0.089 0.001 | |
| Mild noise | 0.5 | 0.457 0.006 | |
| Mild noise | 1 | 0.549 0.007 | |
| Device-modeled noise | 0.05 | 0.088 0.001 | |
| Device-modeled noise | 0.5 | 0.459 0.005 | |
| Device-modeled noise | 1 | 0.550 0.008 |
Table 4. Experiment 2. Relative pressure errors before and after fine-grid correction with parameter reuse. Initial errors are means 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.
| Condition | Parameter initialization | Shots per run () |
| Finite shots | Independent | 209.81 6.00 |
| Finite shots | Parameter reuse | 25.03 4.33 |
| Mild noise | Independent | 212.41 3.00 |
| Mild noise | Parameter reuse | 25.03 4.33 |
| Device-modeled noise | Independent | 260.92 10.50 |
| Device-modeled noise | Parameter reuse | 26.54 2.60 |
Table 5. Experiment 2. Total simulated shots per 20-step run. Entries are means 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 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]S. Aaronson, Read the fine print, Nature Physics, 11 (2015), pp. 291–293.DOI
- [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]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]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]W. L. Briggs, V. E. Henson, and S. F. McCormick, A Multigrid Tutorial, SIAM, 2000.
- [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]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]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]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]M. Deiml and D. D. Peterseim, Quantum realization of the finite element method, 2024. arXiv:2403.19512.DOI
- [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]Y. Efendiev and T. Y. Hou, Multiscale Finite Element Methods: Theory and Applications, Springer, 2009.
- [13]Y. Fang et al., Qubit-efficient quantum algorithm for differential equations, Nature Communications, 14 (2023), pp. 1–9.
- [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]J. Golden, D. O’Malley, and H. Viswanathan, Quantum computing for preconditioners for hydrological linear systems, Scientific Reports, 12 (2022), p. 22285.DOI
- [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]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]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]IBM Quantum, Face provider. Qiskit IBM Runtime Documentation. Accessed October 16, 2026.
- [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]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]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]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]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]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]M. Lubasch, J. Joo, P. Moinier, and M. Kiffner, Variational quantum algorithms for nonlinear problems, Physical Review A, 101 (2020), p. 010301.DOI
- [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]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]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]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]J. Preskill, Quantum computing in the NISQ era and beyond, Quantum, 2 (2018), p. 79.DOI
- [32]Qiskit Contributors, Qiskit: An open-source framework for quantum computing, 2021.
- [33]Qiskit Development Team, Depolarizing error. Qiskit Aer Documentation. Accessed October 16, 2026.
- [34]Qiskit Development Team, ReadoutError. Qiskit Aer Documentation. Accessed October 16, 2026.
- [35]Y. Saad, Iterative Methods for Sparse Linear Systems, SIAM, Philadelphia, PA, 2 ed., 2003.DOI
- [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]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]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]J. C. Spall, Multivariate stochastic approximation using a simultaneous perturbation gradient approximation, IEEE Transactions on Automatic Control, 37 (1992), pp. 332–341.DOI
- [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]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.


