The solution of linear systems of equations is the basis of many other quantum algorithms, and recent results provided an algorithm with optimal scaling in both the condition number $κ$ and the allowable error $ε$ [PRX Quantum \textbf{3}, 040303 (2022)]. That work was based on the discrete adiabatic theorem, and worked out an explicit constant factor for an upper bound on the complexity. Here we show via numerical testing on random matrices that the constant factor is in practice about 1,200 times smaller than the upper bound found numerically in the previous results. That means that this approach is far more efficient than might naively be expected from the upper bound. In particular, it is about an order of magnitude more efficient than using a randomised approach from [arXiv:2305.11352] that claimed to be more efficient.
The discrete adiabatic quantum linear system solver has lower constant factors than the randomized adiabatic solver
- Paper ID: 2312.07690
- Title: The discrete adiabatic quantum linear system solver has lower constant factors than the randomized adiabatic solver
- Authors: Pedro C. S. Costa, Dong An, Ryan Babbush, Dominic W. Berry
- Classification: quant-ph (Quantum Physics)
- Publication Date: December 2023, Latest version October 11, 2025
- Paper Link: https://arxiv.org/abs/2312.07690
Solving linear systems of equations is fundamental to many quantum algorithms. Recent research has provided algorithms with optimal complexity in both condition number κ and allowable error ε PRX Quantum 3, 040303 (2022). This work is based on the discrete adiabatic theorem and provides explicit constant factors for the complexity upper bound. Through numerical testing on random matrices, this paper demonstrates that the actual constant factors are approximately 1200 times smaller than the numerically derived upper bounds in previous results. This indicates that the method is far more efficient in practice than naively expected from the upper bounds. In particular, it is approximately one order of magnitude more efficient than the randomized method claiming superior efficiency arXiv:2305.11352.
The quantum linear system problem (QLSP) is one of the core problems in quantum computing, aiming to efficiently produce a quantum state |x⟩ proportional to the solution of the linear equation Ax = b. Solving this problem is fundamental to many other quantum algorithms, including those in quantum machine learning and quantum optimization.
- HHL Algorithm: Harrow, Hassidim, and Lloyd first proposed the quantum linear system algorithm with complexity O(poly(n)κ²/ε)
- Adiabatic Quantum Computing Methods: Subsequent research based on adiabatic quantum computing (AQC) provided improvements, particularly Costa et al. in 6 achieved optimal complexity O(κlog(1/ε)) based on the discrete adiabatic theorem
- Randomized Methods: An alternative approach uses randomized time evolution to simulate the quantum Zeno effect
Although the discrete adiabatic method achieves optimal asymptotic complexity theoretically, the strict upper bound yields a very large constant factor α = 2305, raising questions about its practical efficiency. Meanwhile, the randomized method claims superior practical efficiency due to tighter upper bounds. This paper aims to verify the actual performance of these methods through numerical experiments.
- Revealed the actual constant factors of the discrete adiabatic method: Extensive numerical experiments discovered an actual constant factor α = 1.84, approximately 1200 times smaller than the theoretical upper bound
- Demonstrated the practical superiority of the discrete adiabatic method: Numerical tests show the quantum walk method is on average approximately 7 times more efficient than the randomized method
- Provided comprehensive performance comparison: Including cases for positive definite and general non-Hermitian matrices, with tests across different dimensions and condition numbers
- Considered complete algorithm overhead: Analyzed total complexity including filtering steps, proving that the discrete adiabatic method maintains at least a 3-fold improvement even accounting for all overhead
Given an invertible matrix A ∈ C^(N×N) with ∥A∥ = 1, and a normalized vector |b⟩ ∈ C^N, the goal is to prepare a normalized state |x̃⟩ that approximates |x⟩ = A^(-1)|b⟩/∥A^(-1)|b⟩∥ with precision ∥|x̃⟩ - |x⟩∥ ≤ ε.
For positive definite Hermitian matrices A, construct the Hamiltonian:
- H₀ := (0 Qb; Qb 0)
- H₁ := (0 AQb; QbA 0)
where Qb = I_N - |b⟩⟨b| is the projection operator.
The time-dependent Hamiltonian is:
H(s) = (1 - f(s))H₀ + f(s)H₁
The scheduling function f(s) is designed according to the energy gap condition:
f(s) = κ/(κ-1)1 - (1 + s(κ^(p-1) - 1))^(1/(1-p))
Convert to Hermitian form by doubling the matrix dimension:
A := (0 A; A† 0)
The corresponding Hamiltonian is:
H(s) = (0 A(f(s))Qb; QbA(f(s)) 0)
where A(f) := (1-f)σz⊗I_N + fA.
The randomized method implements the following operation:
e^(-it_q H(v_q)) ⋯ e^(-it₂H(v₂))e^(-it₁H(v₁))
where:
- vⱼ = vₐ + j(vb - vₐ)/q are the discretized time points
- tⱼ are random variables selected according to a specific probability distribution
The probability density function is:
p_j(t) ∝ (J_p(Δ(vⱼ)|t|/2)/(Δ^(p-1)(vⱼ)|t|^p))²
where J_p is the Bessel function of the first kind, p = 1.165.
- Dimensions: 4×4, 8×8, 16×16 random matrices
- Condition Numbers: κ = 10, 20, 30, 40, 50
- Matrix Types: Positive definite Hermitian matrices and general non-Hermitian matrices
- Sample Size: 100 independent random matrices generated for each condition number
- Quantum Walk Method: Number of walk steps required to achieve target error Δ = 0.4
- Randomized Method: Total evolution time ∑|tⱼ| required to achieve the same error
- Error Definition: 2-norm error ∥|x̃⟩ - |x⟩∥
- Scheduling function parameter p = 1.4
- Geometric mean used for complexity calculation
- Error bars including interquartile range and full data range
- 200 repetitions for each randomized method instance
For the case κ = 50:
- Theoretical Upper Bound: α = 2305
- Actual Measurement: α = 1.84
- Improvement Factor: Approximately 1250 times
| Condition Number κ | QW Steps | QW Error | RM Time | RM Error | Improvement Factor |
|---|
| 10 | 36 | 0.348 | 281 | 0.395 | 7.81 |
| 20 | 76 | 0.381 | 604 | 0.397 | 7.95 |
| 30 | 120 | 0.400 | 963 | 0.398 | 8.03 |
| 40 | 176 | 0.399 | 1330 | 0.397 | 7.56 |
| 50 | 232 | 0.397 | 1722 | 0.399 | 7.42 |
Using actual matrices from the SuiteSparse matrix collection:
- Directed Graph Problem (ID=168, κ=4.041×10²): QW is 9.58 times faster than RM
- Circuit Simulation Problem (ID=1199, κ=6.302×10⁵): QW is 457 times faster than RM
Experiments show that complexity has minimal dependence on matrix dimension, consistent with theoretical expectations, as complexity primarily depends on condition number rather than dimension.
Considering total complexity after filtering steps:
- For typical target errors ε > 0.0004, the adiabatic part dominates
- The QW method maintains significant advantages over the RM method even after including filtering overhead
- The optimal error threshold Δ is approximately 0.4, consistent with experimental settings
- HHL Algorithm: Pioneering work with complexity O(κ²/ε)
- Variational Time Amplitude Amplification: Improved dependence on precision
- Adiabatic Quantum Computing Methods: Provided better complexity scaling
- Optimal Polynomial Filtering: Further optimized implementation
Harrow and Kothari proved a lower bound of Ω(κlog(1/ε)) for the quantum linear system problem, which was first achieved in Costa et al.'s work.
The randomized method proposed by Subaşı et al. has complexity O(κlog(κ/ε)). Although it has an additional log κ factor, it claims superior practical efficiency due to smaller constant factors.
- Huge Gap Between Theory and Practice: The actual constant factors of the discrete adiabatic method are 1200 times smaller than the theoretical upper bound
- Method Superiority: The quantum walk method outperforms the randomized method in all tested cases
- Practical Value: The method is not only theoretically optimal but also highly efficient in practice
- Error Threshold: Uses a relatively large target error Δ = 0.4, which may lead to certain outlier cases
- Matrix Types: Primarily tests random matrices; structured matrices in practical applications may show different performance
- Comparison Fairness: The RM method comparison uses evolution time rather than specific quantum gate counts
- More Precise Constant Factor Analysis: Develop tighter theoretical bounds
- Structured Matrices: Investigate performance on matrices with special structures
- Hardware Implementation: Verify these results on actual quantum hardware
- High Practical Value: Addresses the important gap between theory and practice
- Sufficient Experiments: Extensive testing on random matrices and real application cases
- Comprehensive Analysis: Considers complete algorithm overhead including filtering steps
- Reliable Results: All test instances demonstrate consistent advantages
- Insufficient Theoretical Explanation: Lacks deep analysis of why actual constant factors are so small
- Comparison Baseline: Comparison with RM method may not be entirely direct (time vs. steps)
- Scale Limitations: Tested matrix dimensions are relatively small (maximum 16×16)
This work has significant impact on the quantum algorithm community:
- Reassessment of Algorithm Efficiency: Reminds researchers that theoretical upper bounds may be overly conservative
- Algorithm Selection Guidance: Provides clear guidance for algorithm selection in practical applications
- Future Research Direction: Stimulates demand for more precise complexity analysis
This method is particularly suitable for:
- Quantum algorithms requiring high-precision linear solving
- Practical problems with moderate condition numbers
- Application scenarios sensitive to constant factors
This paper cites key literature in the field of quantum linear system solving, including:
- 1 Original HHL algorithm
- 6 Costa et al.'s discrete adiabatic method
- 10 Jennings et al.'s randomized method improvements
- 14 Berry et al.'s Hamiltonian simulation optimization