Skip to content

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):

  1. Build a quantum circuit with knobs on it: the angles of single-qubit rotation gates, θ=(θ1,,θM)\vec\theta=(\theta_1,\dots,\theta_M), are tunable parameters, with entangling gates interleaved (section 9.2);
  2. The circuit turns the initial state 00\ket{0\cdots0} into a trial state ψ(θ)\ket{\psi(\vec\theta)};
  3. Measure a cost function — for a molecular ground state, the energy E(θ)=ψ(θ)|H^ψ(θ)E(\vec\theta)=\braket{\psi(\vec\theta)}{\hat H|\psi(\vec\theta)};
  4. A classical computer updates θ\vec\theta 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 E(θ)E0E(\vec\theta)\ge E_0 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 nn qubits has 2n2^n amplitudes, so encode your data into the amplitudes (amplitude encoding) and n=30n=30 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.

Roadblock two: barren plateaus

Variational circuits carry an internal injury as well. Training runs on the gradients E/θk\partial E/\partial\theta_k, 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:

Var[Eθk]12n(13.9.2)\operatorname{Var}\left[\frac{\partial E}{\partial\theta_k}\right]\sim\frac{1}{2^n}\tag{13.9.2}

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 gg takes 1/g2\sim1/g^2 samples, and g2n/2g\sim2^{-n/2} means each single step of gradient descent costs 2n\sim2^n 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 2n2^n-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, xϕ(x)x\mapsto\ket{\phi(x)}, measure the overlap ϕ(x)|ϕ(x)2|\braket{\phi(x)}{\phi(x')}|^2 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.

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