Skip to content
DAH

Dequantization and quantum-inspired classical algorithms

Classical algorithms that match quantum machine-learning speedups up to polynomial factors when given comparable sampling access to the data, showing that many claimed exponential speedups came from the input model.

On this page13 sections
Why other work relies on it

Before a quantum linear-algebra or machine-learning speedup counts, it has to survive dequantization; the polynomial gap that remains sets how much advantage those applications can offer.

Ordinary algorithms that copy the tricks of quantum machine learning and nearly match its speed.

  1. 1Quantum ML assumes special data loading
  2. 2Same structure allows weighted sampling
  3. 3Sampling mimics superposition classically
  4. 4Exponential speedups shrink to polynomial
  5. 5Open: how big is the gap

The input model. Quantum machine-learning algorithms on classical data usually assume a quantum random-access memory: a data structure (a binary tree of partial sums of squared entries) that can load a vector vv as the quantum state ∑ivi∣i⟩/∥v∥\sum_i v_i|i\rangle/\|v\| quickly. Tang's observation: the same tree lets a classical computer sample an index ii with probability ∣vi∣2/∥v∥2|v_i|^2/\|v\|^2 and query any entry. This is sample-and-query access.

Why sampling helps. To estimate a product like uTvu^T v or ABAB for huge matrices, you do not need every term: sampling terms in proportion to their size, and averaging, gives an accurate estimate with a number of samples that depends on norms and accuracy, not on the dimension. For a matrix of low rank kk (it is well approximated using only kk directions), these estimates let a classical algorithm find an approximate singular value decomposition in time polynomial in kk and only logarithmic in the dimension, like the quantum algorithm.

The general result. The quantum singular value transformation (QSVT) applies a polynomial to the singular values of a matrix and covers almost all quantum linear algebra. Chia et al. (2020) showed a classical version for low-rank matrices, so QSVT gives no exponential speedup there. The best classical cost (Bakshi and Tang, 2023) is roughly d11d^{11} in the polynomial degree dd, versus about dd for the quantum algorithm, so a large polynomial gap remains.

Limits. Sparse, full-rank matrices described by formulas (as in Hamiltonian simulation and HHL) are BQP-complete and cannot be dequantized unless quantum computers are no more powerful than classical ones.

Go deeper

The full technical text.

The recommendation-systems story

Kerenidis and Prakash (2016) gave a quantum algorithm that samples recommendations from a low-rank approximation of an m×nm\times n preference matrix in time poly(k) polylog(mn)\mathrm{poly}(k)\,\mathrm{polylog}(mn), assuming the matrix is stored in a binary-tree data structure that a quantum random-access memory (QRAM) can query in superposition. It was regarded as one of the best candidates for an exponential speedup in machine learning.

Tang (2018; STOC 2019) gave a classical algorithm with running time O(poly(k)log⁡(mn))O(\mathrm{poly}(k)\log(mn)), only polynomially slower. The key observation is that the same data structure lets a classical computer sample an index ii with probability ∣vi∣2/∥v∥2|v_i|^2/\|v\|^2 and query entries, called sample-and-query access. These ℓ2\ell^2-norm samples play the role that superpositions play in the quantum algorithm.

The general framework

The method spread quickly: Tang (2018) for principal component analysis, Gilyén, Lloyd and Tang (2018) for low-rank regression, and then Chia, Gilyén, Li, Lin, Tang and Wang (STOC 2020), who gave a classical version of the quantum singular value transformation (QSVT) for matrices of low "stable rank" ∥A∥F2/∥A∥2\|A\|_F^2/\|A\|^2. Since QSVT covers essentially all quantum linear algebra, this showed that in the QRAM input model QSVT on such matrices gives no exponential speedup, and it recovered dequantizations of recommendation systems, PCA, clustering, support vector machines and semidefinite programs.

The remaining gap is polynomial but large. Bakshi and Tang (2023) gave a classical algorithm that outputs a description of vv with ∥v−p(A)b∥≤ε∥b∥\|v-p(A)b\|\le\varepsilon\|b\| in time O~(d11∥A∥F4/(ε2∥A∥4))\tilde O(d^{11}\|A\|_F^4/(\varepsilon^2\|A\|^4)) for a degree-dd polynomial pp, improving the O~(d22∥A∥F6/(ε6∥A∥6))\tilde O(d^{22}\|A\|_F^6/(\varepsilon^6\|A\|^6)) of Chia et al.; QSVT estimates an entry of p(A)bp(A)b in O~(d∥A∥F/(ε∥A∥))\tilde O(d\|A\|_F/(\varepsilon\|A\|)) after loading the data.

What dequantization does not reach

Dequantization needs low stable rank and sampling access. Sparse, full-rank, well-conditioned matrices given by formulas, the setting of HHL and Hamiltonian simulation, are BQP-complete, so they cannot be dequantized unless BPP = BQP. Gharibian and Le Gall (2023) mapped the boundary for sparse matrices: low-degree QSVT can be dequantized to constant precision, but inverse-polynomial precision is BQP-complete. Problems whose input is itself quantum (data from a quantum experiment) are a different setting, with separate speedups.

Why it matters

A speedup that is only polynomial must also beat error-correction overhead, and quadratic gaps rarely do (Babbush et al., 2021). Dequantization is therefore the first test any proposed quantum machine-learning application on classical data has to pass, and the size of the remaining polynomial gap is the open question.

Words on this page (6)
Words on this page
recommendation system
Software that predicts what a user will like from many users' ratings.
low-rank matrix
A matrix that is well approximated using only a few independent directions.
singular value decomposition
Writing a matrix as rotations and stretches; the stretch factors are singular values.
sample-and-query access
Being able to read any entry and to pick entries at random with probability proportional to their squared size.
quantum machine learning
Using quantum computers for data-analysis and learning tasks.
QSVT
Quantum singular value transformation, a framework that unifies most quantum algorithms for matrices.
New to this? Read first (2)
New to this? Read first

Understanding map

map of the whole wiki →

What to read before Dequantization and quantum-inspired classical algorithms (left), and what builds on it: entries that depend on it and its open problems (right). Every box links to its page.

  1. Start with
  2. Step 2
  3. Step 3
  4. Step 4
  5. Step 5
  6. Step 6
  7. Then

Open problems & questions

Progress timeline

  1. Mar 2, 2023
    Improved classical SVT
    Related to: Optimal classical cost of low-rank singular value transformation, and so the largest quantum speedup for it

    Bakshi and Tang reduced the cost to O~(d11∥A∥F4/(ε2∥A∥4))\tilde O(d^{11}\|A\|_F^4/(\varepsilon^2\|A\|^4)).

    source
  2. Mar 2, 2023
    Smaller polynomial gap

    Bakshi and Tang improved classical SVT to O~(d11∥A∥F4/(ε2∥A∥4))\tilde O(d^{11}\|A\|_F^4/(\varepsilon^2\|A\|^4)).

    source
  3. Nov 17, 2021
    Sparse QSVT boundary

    Gharibian and Le Gall showed constant-precision sparse QSVT is classically easy and inverse-polynomial precision is BQP-complete.

    source
  4. Oct 14, 2019
    Classical singular value transformation

    Chia et al. dequantized low-rank QSVT in general.

    source
  5. Oct 14, 2019
    General classical SVT
    Related to: Optimal classical cost of low-rank singular value transformation, and so the largest quantum speedup for it

    Chia et al. gave a classical SVT with time O~(d22∥A∥F6/(ε6∥A∥6))\tilde O(d^{22}\|A\|_F^6/(\varepsilon^6\|A\|^6)).

    source
  6. Jul 10, 2018
    Sample-and-query model
    Related to: Optimal classical cost of low-rank singular value transformation, and so the largest quantum speedup for it

    Tang dequantized quantum recommendation systems.

    source
  7. Jul 10, 2018
    Tang's dequantization

    Tang matched the quantum recommendation algorithm classically up to polynomial factors.

    source
  8. Mar 29, 2016
    Quantum recommendation systems

    Kerenidis and Prakash proposed an exponentially faster quantum recommendation algorithm in the QRAM model.

    source