Variational Quantum Linear Solver
- Variational Quantum Linear Solver is a hybrid algorithm that transforms linear algebra problems into ground state search tasks using shallow, parameterized circuits.
- It integrates Hamiltonian morphing, adaptive ansatz strategies, and efficient cost-function measurements to enhance performance on noisy intermediate-scale devices.
- The approach demonstrates practical success in handling sparse matrices, machine learning models, and physical simulations while mitigating noise and resource constraints.
The Variational @@@@1@@@@ (VQLS) is a class of hybrid quantum–classical algorithms developed to prepare quantum states that encode the solution of linear algebraic problems, most prominently systems of linear equations, using shallow, parameterized quantum circuits and classical optimizers. VQLS is tailored to near-term noisy intermediate-scale quantum (NISQ) devices by circumventing the prohibitive circuit depths and error correction demands of algorithms such as the Harrow-Hassidim-Lloyd (HHL) quantum linear system solver. VQLS frameworks not only provide rigorous operational bounds on solution precision but also introduce advanced techniques—such as Hamiltonian morphing, adaptive and dynamic ansatz strategies, and efficient cost function measurement schemes—allowing them to address large, sparse, and structured problems arising in scientific computing, optimization, and machine learning.
1. Problem Mapping: Linear Algebra as Ground State Search
At the core of VQLS is the recasting of key linear algebraic problems as ground-state search problems of specially constructed Hamiltonians. For matrix–vector multiplication and matrix inversion tasks, the solution state is the unique ground state (of zero eigenvalue) for an associated positive semi-definite Hamiltonian:
- For matrix–vector multiplication with a sparse (possibly non-Hermitian) matrix and state , the normalized solution
is the ground state of
- For a Hermitian invertible system , the solution
is the ground state of
By encoding the linear system as a ground state search, the variational search reduces to minimizing the expectation value of with respect to a parameterized quantum state (Xu et al., 2019).
2. Variational Hybrid Quantum-Classical Framework
The VQLS procedure adopts a variational hybrid scheme structurally akin to Variational Quantum Eigensolvers (VQE):
- A parameterized ansatz circuit prepares the trial state .
- The cost function (energy) is
where is the Hamiltonian encoding the linear algebraic problem.
- The classical optimizer updates the parameters iteratively to minimize , using either stochastic gradient descent or advanced optimizers (e.g., BFGS, AMSGrad, SPSA) (Bravo-Prieto et al., 2019, Pellow-Jarman et al., 2021).
- Gradients are typically computed using finite differences, the parameter-shift rule, or dedicated quantum circuits.
Global and local cost functions are employed to quantify proximity to the solution, e.g.,
Operational termination criteria guarantee that for final cost and system condition number , the error satisfies (Bravo-Prieto et al., 2019).
3. Hamiltonian Morphing, Adaptive, and Dynamic Ansatz Strategies
VQLS addresses the optimization landscape challenges, such as local minima and barren plateaus, through advanced techniques:
- Hamiltonian morphing: Instead of optimizing over the full target Hamiltonian, the algorithm evolves through an interpolated family connecting an easy-to-prepare initial ground state to the target Hamiltonian. At each incremental step , the ansatz parameters are “warm-started” from the previous solution, tracking the ground state and facilitating optimization (Xu et al., 2019, Sanavio et al., 30 May 2025).
- Adaptive ansatz: The algorithm dynamically increases the complexity or depth of the parameterized circuit only when needed, based on the observed cost function value. For instance, when the residual does not drop below a threshold, additional circuit layers are introduced, thus mitigating over-parameterization and excessive noise accumulation (Patil et al., 2021).
- Dynamic ansatz with switching parameter (SP): A switching parameter governs when to grow the circuit depth, with total resource cost (TRC) metrics introduced to quantify trade-offs between the number of circuit evaluations and circuit depth (Patil et al., 2021).
4. Measurement, Circuit Decomposition, and Resource Trade-Offs
Efficient measurement strategies are critical for practical deployment:
- Matrices are generally decomposed via Linear Combination of Unitaries (LCU) as . Cost function evaluation requires quantum circuits for overlapping terms such as , commonly estimated via Hadamard tests or Hadamard-Overlap Test circuits which minimize controlled gate overhead (Bravo-Prieto et al., 2019).
- For structured sparse matrices, alternate decompositions (e.g., sigma basis with unitary completion, or multi-qubit gate decompositions such as SWAP and center-switch gates) can reduce the number of terms from (Pauli basis) to , thus alleviating the scaling of circuit evaluations, albeit sometimes at the expense of increased circuit depth (Gnanasekaran et al., 25 Apr 2024, Balducci et al., 6 Dec 2024).
- Sophisticated error mitigation strategies, including probabilistic error cancellation, can restore operational fidelity under NISQ noise (Bravo-Prieto et al., 2019, Pellow-Jarman et al., 2021).
5. Numerical Performance, Resource Scaling, and Solution Certification
Numerical and hardware implementations validate VQLS accuracy and scaling:
- For sparse, structured matrices (sizes up to ), the required circuit depth to reach fidelity scales linearly with the matrix condition number .
- For random -qubit systems, computation time fits (Xu et al., 2019).
- Hardware experiments yield high solution fidelities (e.g., for a $2$-dimensional problem on IBM Quantum) (Xu et al., 2019).
- Preconditioning via incomplete LU (ILU) factorization further reduces required circuit depth and mitigates the impact of matrix conditioning by better homogenizing the spectrum of (Hosaka et al., 2023).
- Solution verification is inherent: the ground state energy of the constructed Hamiltonian is zero, so the cost function minimum provides a direct fidelity guarantee; e.g., implies high overlap with the exact solution, up to a term set by .
6. Practical Implications, Limitations, and Applications
VQLS is particularly effective for:
- Sparse and structured matrices, where the off-diagonal pattern can be exploited for efficient decomposition and measurement (Xu et al., 2019, Gnanasekaran et al., 25 Apr 2024).
- NISQ hardware: Shallow circuits and resource-aware ansatz tuning ensure near-term implementability (Bravo-Prieto et al., 2019, Patil et al., 2021).
- Machine learning and optimization: Key subroutines such as matrix inversion and matrix–vector multiplication are central to regression, kernel methods, quantum SVMs, and broader optimization frameworks (Yi et al., 2023).
- Physical simulation: Large-scale PDEs, computational fluid dynamics, and open quantum system simulations harness structured matrices, where VQLS has demonstrated competitive accuracy and scaling (Bosco et al., 5 Sep 2024, Yao et al., 28 Aug 2025).
- Quantum transport and device simulation: Extension to problems with complex, nonsymmetric matrices further broadens application scope (Yang et al., 6 Sep 2025).
Limitations include:
- Circuit execution overhead: The number of quantum circuit evaluations for cost function estimation may scale as (for LCU terms), which can be prohibitive for general dense matrices (Turati et al., 10 Sep 2024, Balducci et al., 6 Dec 2024).
- Ansatz expressivity: The need for sufficiently expressive circuits becomes acute for general, unstructured matrices or in problems where the solution wavefunction lies in a complex subspace; shallow circuits may fail to reach high fidelity in these instances.
- State preparation: Efficiently preparing the right-hand side as a quantum state is non-trivial for arbitrary , and may require additional circuit depth (Turati et al., 10 Sep 2024).
- Noise sensitivity: While noise-resilience is observed (due to the robustness of the cost minimum), performance degradation can occur for particularly deep or highly parameterized circuits, or for ill-conditioned systems (Pellow-Jarman et al., 2021).
7. Extensions, Variants, and Future Directions
Variants and ongoing developments include:
- Hybrid multi-ansatz architectures: Combining several circuit branches in a tree-like structure to expand the expressible state space and further mitigate barren plateaus, particularly effective in high-dimensional, stiff systems (e.g., compressible Navier–Stokes solvers) (Yao et al., 28 Aug 2025).
- Evolutionary/genetic ansatz construction: Leveraging algorithmic (genetic) search for hardware-efficient circuit structures tuned for the problem instance (Pellow-Jarman et al., 2021).
- Logical ansatz/CQS methods: Building the solution as a linear combination of shallow circuits, with classical regression for optimal weights (Pellow-Jarman et al., 2021).
- Adiabatic/variational-adiabatic protocols with warm starts: Adiabatically morphing the system Hamiltonian through a parametric family, warm-starting the optimizer at every step to robustly track the ground state and mitigate barren plateaus, even with shallow circuits (Sanavio et al., 30 May 2025).
- Mod-2 and non-Hermitian extensions: Adapting VQLS protocols to solve binary-valued systems modulo $2$ (using CNOT networks and rotation-only ansätze) or to address quantum transport with complex nonsymmetric Hamiltonians via new cost functions and decomposition schemes (Aboumrad et al., 2023, Yang et al., 6 Sep 2025).
- Classical analogues and benchmarking: Neural network–based classical variational solvers (VNLS) constructed in parallel with VQLS for benchmarking quantum advantage and for identifying where true hardness lies (i.e., efficient quantum state sampling) (Knitter et al., 2022, De et al., 10 Apr 2025).
VQLS continues to be a focus in quantum algorithm and application research, with advances in ansatz design, problem mapping, measurement reduction, and hybridization bridging the gap between quantum resource constraints and the need for efficient, scalable linear algebra in simulation, optimization, and data science.