13.9
A short introduction to quantum machine learning
"Quantum + AI" is the loudest compound phrase in the news. This section performs a sober teardown: variational circuits and quantum kernels are genuine research directions, the data-loading bottleneck and barren plateaus are genuine roadblocks — and then, a look back down the whole ladder.
Recommended first
After this section you should be able to
- State how a variational quantum circuit works, and its direct lineage from the variational method of Chapter 7
- Use the data-loading bottleneck and the barren-plateau argument to explain why the "exponential speedup" slogan must be discounted
- Assemble a checklist for evaluating any quantum machine learning proposal
“Quantum computing × artificial intelligence” — no combination in the past decade of technology news has glittered more. Multiply two fields each carrying enormous expectations, and the product ought to be exponentially impressive.
This section goes the other way: no sales pitch — due diligence. What in this field is honest physics, what is a promissory note not yet redeemed, and what is merely two buzzwords nailed together for marketing — we take it apart item by item, with tools you already own. As the final section of the book, it is also a full-dress rehearsal: judging the truth of frontier claims is exactly where the fundamentals matter most.
Substance, part one: variational quantum circuits — the variational method reborn as a circuit
The skeleton of the vast majority of current “quantum machine learning” experiments is the variational quantum circuit (VQC), and you already know the recipe (section 7.3):
- Build a quantum circuit with knobs on it: the angles of single-qubit rotation gates, , are tunable parameters, with entangling gates interleaved (section 9.2);
- The circuit turns the initial state into a trial state ;
- Measure a cost function — for a molecular ground state, the energy ;
- A classical computer updates from the measurement results, and back to step 2.
This is the variational method: the trial wavefunction has been swapped from “a formula on paper” to “a state prepared by a circuit”, with the minimisation handed to a classical optimiser — a quantum–classical hybrid loop. The molecular-chemistry version is called VQE, and since 2017 it has run on real hardware for small systems such as lithium hydride and water; swap the cost function for a classification loss, and the circuit becomes a “quantum neural network”. The physics is impeccable — the variational principle guarantees unconditionally, and hardware noise can only loosen the upper bound, never trick you across the lower one.
The trouble is a single word: scale. Can it beat classical methods on a problem that matters? That question runs straight into the two walls below.
Roadblock one: the data-loading bottleneck
Quantum machine learning’s most seductive slogan: the state vector of qubits has amplitudes, so encode your data into the amplitudes (amplitude encoding) and qubits can “hold” a billion-dimensional vector — exponential compression! The linear algebra that follows (such as the celebrated HHL algorithm for linear systems) then enjoys, in theory, an exponential speedup.
Order of magnitude: how many gates to load the data in — and how many measurements to get the answer out?basic~8 min
The price of admission. Amplitude encoding must turn given classical numbers into the state . How many elementary gates does it take to prepare a generic -qubit state?
Counting degrees of freedom gives the lower bound: the target state has independent amplitudes to specify, while each elementary gate carries only continuous parameters. For the circuit’s parameter count to catch up with the amplitude count, the number of gates must satisfy
(A rigorous counting argument gives exactly .) In other words: loading generic data points takes time — exactly as expensive as a classical computer reading the array once. However fast the subsequent computation, the loading fee has already eaten the “exponential speedup”. For an exponential advantage to survive, only two escape routes remain: the data has special structure that allows cheap preparation, or there exists a still-hypothetical quantum random access memory (QRAM) — whose physical realisation remains an open question.
The price of exit. When the computation ends, the answer is the amplitudes of a state — but a single measurement collapses out only classical bits (section 3.8). To read one amplitude to precision , Born statistics demands preparing and measuring times. Read out the whole vector? That’s one round each for amplitudes — exponential time, and the speedup is zeroed out again. Only one style of use survives: ask the state only a few global questions (one expectation value, one overlap), and never demand the complete answer.
Conclusion. Before evaluating any quantum machine learning proposal, ask the two customs questions: how does the classical data get in? how does the answer get out? Tang’s 2018 “dequantisation” results are the famous footnote to this principle: granted classical algorithms the same generous data-access assumptions, a batch of “exponentially faster” quantum algorithms — recommendation systems among them — were matched by polynomial classical ones. Half the original advantage came from the quantum mechanics, and half from unequal bookkeeping.
Roadblock two: barren plateaus
Variational circuits carry an internal injury as well. Training runs on the gradients , and it can be proven (McClean et al., 2018) that for circuits deep enough and random enough, the gradient has mean zero and a variance that decays exponentially in the number of qubits:
The cost-function landscape becomes an exponentially flat expanse — a barren plateau. The sting is that measurements carry shot noise: resolving a gradient of size takes samples, and means each single step of gradient descent costs measurements — an exponential training bill, and you have lost at the starting line before the problem is even addressed. The physical intuition: a random deep circuit stirs the state into the trackless depths of a -dimensional Hilbert space, where any local observable is numb to any single parameter. The way out is to keep the circuit from being “too random”: shallow circuits, ansätze with physical meaning (in chemistry, built along coupled-cluster structure), symmetries that shrink the search space — yet a recent line of analyses shows that precisely these “trainable” structured circuits tend, in turn, to fall within reach of classical simulation. This narrow gate between trainability and quantum advantage is the field’s most honest current statement of its own problem.
So what substance actually remains
Quantum kernel methods offer a second route: don’t train the quantum circuit at all — use it only to map data points to quantum states, , measure the overlap of two states, and feed it to a classical support vector machine as the kernel. For specially constructed problems (built on the hardness of the discrete logarithm), a rigorously proven quantum advantage exists — the in-principle existence proof stands; but for naturally occurring datasets, there is no evidence yet that quantum kernels beat well-chosen classical ones.
The sober overall assessment:
- The most promising near-term target is quantum data itself — the outputs of quantum simulators and quantum sensors are natively quantum states, with no data-loading bottleneck; theory and experiment (2022) have already shown exponential advantages for certain learning tasks on quantum experimental data. “Quantum machines learning quantum” is a far healthier business than “quantum machines learning classical data”.
- A quantum advantage on classical data has not been demonstrated, and under the three-way squeeze of the loading bottleneck, barren plateaus, and dequantisation, none should be expected soon.
- Part of the field’s value lies in the algorithms themselves, and part in forcing classical algorithms to improve (dequantisation produced new classical algorithms) — which is nothing to be ashamed of, scientifically.
Key formulas
Variational quantum circuit
Chapter 7's variational method as a circuit; quantum state preparation and measurement + classical parameter updates
Data-loading bottleneck
Loading generic classical data cancels the exponential speedup; reading out the full vector is equally exponential
Barren plateau
Gradients of deep random circuits vanish exponentially; resolving them takes ~2ⁿ measurements
Quantum kernel
Provable advantage on specially constructed problems; no wins yet on natural data
Self-check3 questions
- 1.
Using amplitude encoding to load a 1024-dimensional classical vector into a quantum state, what is the minimum number of qubits required?
qubits0% relative tolerance - 2.
A "barren plateau" refers to:
- 3.
Which of the following belong to a sober assessment of quantum machine learning today? (Select all that apply.)
Select all that apply
Looking back down the ladder
This is the last page of the book’s main text. Look back at the steps you have climbed:
Starting from the ultraviolet catastrophe of blackbody radiation (Chapter 1), you learned to make the wavefunction carry probability (Chapter 2), abstracted it into a vector in Hilbert space (Chapter 3), solved the potential well, the harmonic oscillator, and the hydrogen atom (Chapters 4–6), learned to approximate where exact solutions run out (Chapter 7), made particles indistinguishable (Chapter 8), forged superposition and entanglement into information resources (Chapter 9), admitted that no system is an island (Chapter 10), put on path-integral eyes (Chapter 11), and had quantum mechanics shake hands with relativity (Chapter 12). And in this chapter you have seen the same toolkit at work: explaining the integers of topological materials, driving artificial crystals at nanokelvin, underpinning artificial atoms on a chip, estimating the temperature of black holes, and auditing the quantum promises in press releases.
You have not finished learning quantum mechanics — no one ever has. But you have crossed the threshold that actually matters: from “reading other people’s retellings” to “reading the original literature”. The reviews and lecture notes listed at the end of each section of this chapter are written in a language you already speak; the preprints landing daily in the quant-ph section of arXiv no longer have methods sections that read like scripture in a lost tongue. Pick the direction that made you stop and think for five extra minutes somewhere in this book, find its review article, and read your way in. Nothing is hard to one who knows how — and you, now, are one who knows.
May the scenery be good, all the way through Hilbert space.
(For further reading and entry points into the literature, see Appendix D.)
Section 98 of 106 · use ← → to turn the page