Variational Quantum Linear Solver
- 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 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 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 as an optimization over quantum states:
- Prepare a parameterized ansatz state .
- Define the normalized global cost as where .
- Alternatively, use the unnormalized global cost which vanishes exactly when .
- In Hamiltonian language, define and cost is .
This framework ensures that minimizing 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 are set by the condition where is the condition number of .
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 qubits receives a single rotation: so the ansatz state is .
- 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 into terms suitable for quantum implementation. Two major approaches:
Pauli-String Decomposition
- General real symmetric tridiagonal admits an expansion with Pauli strings and nonzero for of the possible strings.
- Example for (2 qubits): Number of terms: .
Mixed Pauli + Multi-Qubit Decomposition
- By incorporating SWAP and multi-qubit 'center-switch' CS gates, the number of terms reduces to .
- For :
- At larger , 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 cost evaluation, mixed decomposition nearly doubled circuit depth (ratio 51: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 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: (1 qubit) and (2 qubits), both simulated (Qiskit’s qasm_simulator) and deployed on real quantum hardware (IBMQ Athens).
- Observed performance:
- For , simulated cost vanishes; hardware cost biased (due to noise) but fidelity .
- For , simulated cost (ansatz depth-limited); fidelity ; hardware fidelity .
- 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 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 (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 | Depth-1 | Small N, high coherence, shallow | |
| Pauli + Multi-Qubit | 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
- "Solving 1D Poisson problem with a Variational Quantum Linear Solver" (Balducci et al., 2024)
- "Preconditioning for a Variational Quantum Linear Solver" (Hosaka et al., 2023)
- "Application of a variational hybrid quantum-classical algorithm to heat conduction equation" (2207.14630)
- "Variational Quantum Linear Solver" (Bravo-Prieto et al., 2019)