Papers
Topics
Authors
Recent
Search
2000 character limit reached

Variational Quantum Linear Solver

Updated 17 January 2026
  • Variational Quantum Linear Solver is a hybrid algorithm that variationally prepares a quantum state encoding the solution to Ax=b with rigorous error bounds.
  • It employs a hardware-efficient ansatz and decomposes matrices using both Pauli-string and multi-qubit techniques to balance circuit depth and measurement counts.
  • The method integrates quantum state preparation with classical optimization, proving effective for PDEs and structured sparse matrices as validated in simulations and early hardware tests.

The Variational Quantum Linear Solver (VQLS) is a hybrid quantum–classical algorithm developed for solving linear systems of the form Ax=bA x = b on noisy intermediate-scale quantum (NISQ) hardware, with demonstrated compatibility for solving PDEs and banded linear algebra problems such as those arising from finite element and finite difference discretizations. VQLS variationally prepares a quantum state %%%%1%%%% that encodes the solution, optimizing its parameters through a quantum–classical feedback loop so that Ax(θ)bA |x(\theta)\rangle \propto |b\rangle or reaches a prescribed accuracy set by a cost function. The algorithm’s technical performance, decomposition strategy, and resource scaling have been validated up to real hardware implementations for small tridiagonal systems and by extensive simulations for larger, structured sparse matrices (Balducci et al., 2024).

1. VQLS Cost Function and Problem Mapping

The key variational principle of VQLS recasts the linear system Ax=bA x = b as an optimization over quantum states:

  • Prepare a parameterized ansatz state x(θ)=V(θ)0|x(\theta)\rangle = V(\theta)|0\rangle.
  • Define the normalized global cost as CG(θ)=1bΨ(θ)2C_G(\theta) = 1 - |\langle b | \Psi(\theta) \rangle |^2 where Ψ(θ)=Ax(θ)/Ax(θ)|\Psi(\theta)\rangle = A |x(\theta)\rangle/\|A |x(\theta)\rangle\|.
  • Alternatively, use the unnormalized global cost CG(θ)=x(θ)AAx(θ)2Rex(θ)Ab+bbC'_G(\theta) = \langle x(\theta)|A^\dagger A|x(\theta)\rangle - 2\,\mathrm{Re}\langle x(\theta)|A^\dagger|b\rangle + \langle b|b\rangle which vanishes exactly when Ax(θ)=bA |x(\theta)\rangle = |b\rangle.
  • In Hamiltonian language, define HG=A(Ibb)AH_G = A^\dagger(I - |b\rangle\langle b|)A and cost is CG(θ)=x(θ)HGx(θ)/x(θ)AAx(θ)C_G(\theta) = \langle x(\theta) | H_G | x(\theta) \rangle / \langle x(\theta) |A^\dagger A| x(\theta) \rangle.

This framework ensures that minimizing CGC_G drives the output quantum state toward a normalized solution of the linear system, with mathematically rigorous error guarantees (Bravo-Prieto et al., 2019). Boundaries on the tolerated solution error ϵ\epsilon are set by the condition CGϵ2/κ2C_G \geq \epsilon^2/\kappa^2 where κ\kappa is the condition number of AA.

2. Ansatz Design and Circuit Architecture

For proof-of-principle runs on tridiagonal systems such as the discretized 1D Poisson equation, a minimalist hardware-efficient ansatz is employed:

  • Each of nn qubits receives a single RY(θi)R_Y(\theta_i) rotation: RY(θi)=exp(iθiY/2)R_Y(\theta_i) = \exp(-i\,\theta_i\,Y/2) so the ansatz state is x(θ)=i=1nRY(θi)0|x(\theta)\rangle = \bigotimes_{i=1}^n R_Y(\theta_i)|0\rangle.
  • No entangling gates are used, minimizing circuit depth and thus mitigating decoherence sources on NISQ devices.
  • For larger or less trivial problems, additional layers or entangling gates may be needed for sufficient expressivity, though circuit depth must remain compatible with device coherence times (Balducci et al., 2024).

3. Structured Matrix Decomposition: Pauli vs Multi-Qubit Basis

Efficient evaluation of cost functions necessitates decomposing AA into terms suitable for quantum implementation. Two major approaches:

Pauli-String Decomposition

  • General real symmetric tridiagonal AA admits an expansion A=i=1N2ciPiA = \sum_{i=1}^{N^2} c_i P_i with PiP_i Pauli strings and nonzero cic_i for NN of the 2n2n2^n\,\cdot\,2^n possible strings.
  • Example for N=4N=4 (2 qubits): A=2I1I01I1X012X1X012Y1Y0A = 2 I_1 I_0 - 1 I_1 X_0 - \frac{1}{2} X_1 X_0 - \frac{1}{2} Y_1 Y_0 Number of terms: 2n2^n.

Mixed Pauli + Multi-Qubit Decomposition

  • By incorporating SWAP and multi-qubit 'center-switch' CS gates, the number of terms reduces to 2n1+n2^{n-1} + n.
  • For N=4N=4: A=2I1I01SWAP1,0+1Z1Z01I1X0A = 2 I_1 I_0 - 1 SWAP_{1,0} + 1 Z_1 Z_0 - 1 I_1 X_0
  • At larger nn, this reduction becomes significant compared to the pure Pauli basis.

Trade-offs:

  • Pure Pauli decomposition yields more terms but very shallow circuits (depth-1 measurements).
  • Mixed decomposition reduces measurement term count but increases circuit depth due to multi-controlled operations (Toffoli chains).
  • On a benchmark 4×44\times4 cost evaluation, mixed decomposition nearly doubled circuit depth (ratio \sim51:99 for Pauli vs mixed), so choice of decomposition should consider hardware coherence and gate errors (Balducci et al., 2024).

4. Quantum-Classical Optimization and Hardware Implementation

The optimization loop consists of:

  • Quantum subroutine: evaluate cost function by preparing x(θ)|x(\theta)\rangle and measuring expectations via Hadamard tests, with 8192 shots per expectation for robust statistics.
  • Classical subroutine: utilize a gradient-free optimizer (COBYLA) to minimize cost.
  • System sizes tested: N=2N=2 (1 qubit) and N=4N=4 (2 qubits), both simulated (Qiskit’s qasm_simulator) and deployed on real quantum hardware (IBMQ Athens).
  • Observed performance:
    • For N=2N=2, simulated cost vanishes; hardware cost biased (due to noise) but fidelity F=xexactxf20.99F=|\langle x_{exact}|x_f\rangle|^2 \geq 0.99.
    • For N=4N=4, simulated cost 0.05\sim0.05 (ansatz depth-limited); fidelity F0.96F \approx 0.96; hardware fidelity F0.940.97F \approx 0.94-0.97.
  • Shot noise and hardware decoherence typically bias cost estimates, but the variational loop is robust to these disturbances, yielding well-optimized parameters.

5. Generalization and Outlook

The decomposition strategy for AA is the critical bottleneck for resource scaling:

  • The mixed Pauli + multi-qubit approach generalizes to other structured sparse matrices, such as those arising from the discretization of banded PDEs.
  • For large NN (PDEs, FE matrices), balancing the number of measurement terms against the achievable circuit depths is fundamental.
  • Extending VQLS decomposition beyond tridiagonal forms involves identifying permutation-like structures (SWAP/CS blocks) before resorting to large Pauli sets.

The research agenda includes:

  • Applying decomposition and variational ansatz strategies to 2D and 3D Poisson equations, higher-dimensional PDE discretizations, and broader classes of sparse linear systems.
  • Engineering deeper ansätze compatible with problem structure and device limitations.
  • Developing adaptive ansatz growth, error mitigation, and possibly combining classical preconditioning for greater efficiency (Balducci et al., 2024, Hosaka et al., 2023).
  • Systematic benchmarking on real hardware, especially as qubit counts and coherence times improve.

6. Algorithmic Summary Table

Decomposition Type Term Count (n qubits) Circuit Depth Typical Use Case
Pauli-String 2n2^n Depth-1 Small N, high coherence, shallow
Pauli + Multi-Qubit 2n1+n2^{n-1}+n Increased (Toffoli) Structured sparse, large N

Decomposition choice and ansatz adaptation are essential for achieving optimal efficiency, accuracy, and noise robustness in NISQ-era VQLS algorithms.

References

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Variational Quantum Linear Solver Algorithm.