Skip to content

Where advantage could come from

Every lesson in this track has ended with a caution. This last one collects the cautions and the reasons for hope into one picture. The aim is that you can read a headline about quantum machine learning and know which questions to ask.

The short version: there is no demonstrated quantum advantage on a practical learning problem with classical data. There are rigorous advantages on carefully constructed problems, and a strong case for an advantage when the data is itself quantum. The details matter, so here they are.

“Quantum advantage in machine learning” can mean three different things.

  • Speed. The quantum method reaches the same answer in less time.
  • Data. The quantum method needs fewer examples or fewer experiments to learn the same thing.
  • Quality. The quantum model predicts better than any classical model that could feasibly be trained.

Whichever is meant, the comparison has to be against the best classical method, not a convenient one, and it has to count every cost: loading the data, reading out the answer, and repeating the circuit enough times to beat shot noise.

The first wave of optimism came from linear algebra. In 2009 Harrow, Hassidim and Lloyd gave a quantum algorithm, known as HHL, for systems of linear equations Ax=bAx = b. For an N×NN \times N system its running time grows like a power of log⁡N\log N, where classical methods need time at least proportional to NN. Since much of machine learning is linear algebra, a series of proposals followed: quantum versions of principal component analysis, support vector machines, recommendation systems and more, each promising an exponential speedup.

The speedup holds only under conditions, which Scott Aaronson summarised in 2015 under the title “Read the fine print”.

  1. Input. The vector bb must be available as a quantum state ∣b⟩\ket{b}. This is the amplitude-encoding problem from Encoding data. For general data it costs about NN operations, unless a quantum RAM exists.
  2. The matrix. AA must be sparse, or have some other structure that makes it cheap to simulate, and it must be well conditioned. The running time grows with the condition number, which for many real problems itself grows with NN.
  3. Output. The algorithm produces the state ∣x⟩\ket{x}, not the list of numbers xx. A quantum state of log⁡2N\log_2 N qubits yields only a little information per measurement, so you can estimate a summary, such as one overlap or one average, but not read out the solution.

Each condition can be met in some settings. A proposal has an exponential speedup only if all three are met together, for a problem someone wants solved.

Check

HHL has produced a 20-qubit state ∣x⟩\ket{x} encoding a solution with about a million entries. How many times must the algorithm be run to learn every entry?

The input condition turned out to hide more than it seemed to. Several of the proposed algorithms assumed a quantum RAM holding the data in a form that allows a particular state to be prepared quickly. In 2018 Ewin Tang, then an undergraduate, asked what a classical algorithm could do with the comparable kind of access: being able to sample entries of the data with probability proportional to their squared size. The answer, for the recommendation-system algorithm that had been a leading candidate for exponential speedup, was that a classical algorithm does almost as well. The gap shrank from exponential to polynomial.

The method was then extended, by Tang and others, to principal component analysis, low-rank linear systems, clustering and related tasks. This line of work is called dequantization. What it showed is that in those algorithms much of the apparent power came from the assumption about data access, combined with the data being approximately low-rank, and not from quantum mechanics.

Two qualifications keep this from being the end of the story. The dequantized algorithms have running times with high powers in them, so a polynomial quantum speedup may remain in those cases. And HHL itself, for sparse matrices of high rank, has not been dequantized and is not expected to be: it can perform any quantum computation. What is missing there is a practical learning problem of that form that also satisfies the fine print.

Variational models: squeezed from two sides

Section titled “Variational models: squeezed from two sides”

Variational models avoid the data-loading problem by using small encodings. This track has met three limits on them.

  • Expressive models are hard to train. Unstructured circuits on many qubits have barren plateaus, and expressive feature maps give kernels that concentrate.
  • Trainable models tend to be simulable. The structured circuits known to avoid plateaus mostly stay in parts of state space that classical computers can handle.
  • Simple models have classical stand-ins. A model whose output is a Fourier series with few terms can be matched by fitting that series classically.

None of these is a proof that no useful variational model exists. Together they mark out a narrow target: a model structured enough to train, whose structure nevertheless resists classical simulation, applied to data that suits it. Nobody has shown such a model on a practical problem, and nobody has shown it to be impossible.

A further point is easy to miss. Classical models get to use the data too. In 2021 Huang and co-workers showed that a classical learner given training examples can sometimes predict the outputs of a quantum model that would be hard to compute from scratch. A circuit being hard to simulate does not, by itself, make the function it computes hard to learn.

Check

A paper shows that the circuit used in its quantum classifier is hard to simulate classically. Does that establish a quantum advantage for the classifier?

There are learning problems on which a quantum advantage has been proved, end to end, with classical data.

The clearest is the one from Quantum kernels. Liu, Arunachalam and Temme built a classification problem in which the labels depend on the discrete logarithm of the input. A quantum kernel method learns it. No efficient classical algorithm can do noticeably better than guessing, unless discrete logarithms are easy classically, which would also break much of today’s cryptography. The proof covers training, noise from finite shots and all.

The limitation is where the power comes from. The feature map is built from the same ingredients as Shor’s algorithm, and the dataset was constructed so that this is exactly what is needed. The result settles a question of principle: quantum learners can be exponentially better than classical ones on some classical data. It does not tell us that images, text, or measurements from a laboratory have hidden structure of this kind. Most researchers suspect that ordinary data does not.

The strongest case for quantum machine learning is one in which the data never was classical.

Suppose the thing you want to learn about is a quantum system: a material, a molecule, the output of a quantum sensor or of another quantum computer. The conventional approach measures each copy of the state, writes down the classical outcome, and analyses the record. A quantum learner can do something else. It can store copies in quantum memory and process several of them together before measuring.

Huang, Preskill and collaborators proved that for certain tasks of this kind, such as predicting properties of an unknown state or identifying a symmetry of an unknown process, the joint approach needs exponentially fewer experiments than any strategy that measures copies one at a time. In 2022 the effect was demonstrated on a superconducting processor with a few dozen qubits.

Three features make this different from everything above.

  • There is no loading problem. The data arrives as quantum states.
  • The advantage is in the number of experiments, and it is proved from information theory, with no assumption about what classical computers cannot do.
  • It survives a moderate amount of noise, which is why it could be shown on current hardware.

The open question is how many problems of scientific interest have this form. It is an active area, and a plausible first home for useful quantum learning.

Check

For which of these tasks is the evidence for a quantum advantage in learning strongest today?

When you meet a claim of quantum advantage in machine learning, these five questions sort most of them.

  1. Is the whole pipeline counted? Look for the cost of loading the data and of reading out the result, including the number of shots.
  2. What is the classical baseline? It should include the best known methods, any dequantized algorithm for the task, and simulation of the quantum circuit itself by classical techniques.
  3. Is it about scaling or about one instance? A small experiment that matches a classical model shows the hardware works. An advantage is a statement about how costs grow.
  4. How large is the speedup? Error correction multiplies the cost of every quantum gate by a large factor. Analyses of this overhead suggest that a quadratic speedup is unlikely to pay off in practice in the early generations of fault-tolerant machines. Larger speedups are a different matter.
  5. Does anyone need the problem solved? A constructed problem can establish a principle. It is not the same as an application.

A claim that answers all five well would be important news. As of this writing there is none for classical data.

Approach Status
Exponential speedups for linear algebra on classical data Depend on fast data loading and limited readout; several removed by dequantization
Variational models on classical data No demonstrated advantage; caught between trainability and classical simulability
Quantum kernels Advantage proved for a constructed problem; none shown on natural data
Learning from quantum data Exponential advantage in number of experiments, proved and demonstrated at small scale
VQE and QAOA Run on small problems; no practical advantage shown

It would be wrong to read this as a verdict that the field has failed. More than fifteen years of work have replaced vague hope with a fairly exact map of where an advantage cannot be and where it might be, and several of the negative results gave classical computing new algorithms along the way. The honest position is that the question is open, and narrower than it used to be.

That completes the Quantum Machine Learning track. Two other tracks supply ideas this one leaned on:

  • Quantum Algorithms covers phase estimation and Shor’s algorithm, the sources of the speedups that are not in doubt.
  • Quantum Error Correction explains the overhead that any large quantum computation, learning included, will have to pay.
RecallAnswer from memory, then check
LessonFinish this lesson