English

Faster quantum-inspired algorithms for solving linear systems

Quantum Physics 2023-04-18 v2 Numerical Analysis Numerical Analysis

Abstract

We establish an improved classical algorithm for solving linear systems in a model analogous to the QRAM that is used by quantum linear solvers. Precisely, for the linear system A\x=\bA\x = \b, we show that there is a classical algorithm that outputs a data structure for \x\x allowing sampling and querying to the entries, where \x\x is such that \xA+\bϵA+\b\|\x - A^{+}\b\|\leq \epsilon \|A^{+}\b\|. This output can be viewed as a classical analogue to the output of quantum linear solvers. The complexity of our algorithm is O~(κF4κ2/ϵ2)\widetilde{O}(\kappa_F^4 \kappa^2/\epsilon^2 ), where κF=AFA+\kappa_F = \|A\|_F\|A^{+}\| and κ=AA+\kappa = \|A\|\|A^{+}\|. This improves the previous best algorithm [Gily{\'e}n, Song and Tang, arXiv:2009.07268] of complexity O~(κF6κ6/ϵ4)\widetilde{O}(\kappa_F^6 \kappa^6/\epsilon^4). Our algorithm is based on the randomized Kaczmarz method, which is a particular case of stochastic gradient descent. We also find that when AA is row sparse, this method already returns an approximate solution \x\x in time O~(κF2)\widetilde{O}(\kappa_F^2), while the best quantum algorithm known returns \x\ket{\x} in time O~(κF)\widetilde{O}(\kappa_F) when AA is stored in the QRAM data structure. As a result, assuming access to QRAM and if AA is row sparse, the speedup based on current quantum algorithms is quadratic.

Keywords

Cite

@article{arxiv.2103.10309,
  title  = {Faster quantum-inspired algorithms for solving linear systems},
  author = {Changpeng Shao and Ashley Montanaro},
  journal= {arXiv preprint arXiv:2103.10309},
  year   = {2023}
}

Comments

24 pages. The main algorithm (Theorem 13) was improved via a better complexity analysis