Skip to main content
. 2019 Nov 7;9:16251. doi: 10.1038/s41598-019-52275-6

Table 2.

Comparison of various algorithms for solving N × N linear systems Ax=b, with respect to time and space complexities, and Input/Output issues.

Algorithm Time Space for A Input/Output
Classical Direct2,3 O(N3) O(N2) efficient for any A,x,b
Classical Iterative2,3 O(N2) O(N2) efficient for any A,x,b
Quantum HHL4 O(log(N)) O(log(N)) qubits norm x not available difficult for A,x,b
Classical MC45,53,55 (for one component xI) O(N) O(N) efficient for any x,b limited A (stochastic P)
Classical RW on HC (for one component xI) O(log(N)) O(log(N)) efficient for any x,b limited A (factorisable P)
Hybrid QW on HC (for one component xI) O(log(N)) O(log(N)) qubits efficient for any x,b limited A (correlated P)

Note that for classical Monte Carlo (MC) method, classical random walk (RW) and hybrid quantum random walk (QW), the time complexities in the table are per sampling time. It takes O(cns) samplings to achieve the desired accuracy (see the text).