Quantum Machine Learning and the Outlook for Quantum Advantage

Imagine a pharmaceutical company trying to predict which of a billion candidate molecules will bind to a target protein. Classical machine learning models already tackle this. But their feature spaces grow so large that training becomes intractable for the richest chemical descriptors. Quantum machine learning (QML) proposes a tantalizing shortcut. It encodes data into quantum states and exploits exponentially large Hilbert spaces. Quantum interference does work that would take a classical computer years. The promise is seductive, but the reality on current hardware is far more nuanced. QML matters because it sits at the intersection of two hype-heavy fields. Separating genuine algorithmic leverage from wishful extrapolation requires care. Real systems — from Google's and IBM's superconducting processors to trapped-ion platforms at IonQ and Quantinuum — have run small QML demonstrations. None, though, have yet solved a practically relevant problem faster than the best classical alternative. Understanding why requires understanding the mathematics of quantum feature maps and kernels. It also requires understanding the brutal realities of noise, barren plateaus, and classical simulability. This chapter confronts these realities head-on. The big picture is this: QML is not one algorithm but a family of strategies. These include quantum kernel methods, variational quantum classifiers, quantum neural networks, and quantum-enhanced sampling. Each inherits strengths and weaknesses from the NISQ Era and Variational Quantum Algorithms framework. Some offer provable speedups on contrived problems. Almost none has demonstrated a speedup on a task anyone outside the field cares about. The gap between "quantum advantage in principle" and "quantum advantage in practice" is the central tension this article resolves. This article delivers a precise vocabulary for QML approaches. It offers a worked mechanism for the most rigorously understood method (quantum kernels). It provides an honest complexity and correctness analysis, and a concrete numerical trace. It surveys the pitfalls that sink most QML papers. It traces the historical arc from early proposals to today's skepticism. Finally, it gives a clear-eyed assessment of where — if anywhere — quantum advantage is likely to first appear.

Key takeaways
  • QML embeds classical data into quantum states via feature maps, then processes them with quantum circuits — either as kernels for classical SVMs or as trainable variational circuits.
  • Quantum kernel methods have the cleanest theoretical footing: a provable speedup exists for a contrived discrete-log-based dataset, but no known practical dataset needs it.
  • Variational quantum classifiers face the same barren-plateau and noise-scaling problems as other Variational Quantum Algorithms, often erasing any quantum edge before training converges.
  • Classical shadow techniques and tensor-network simulators can efficiently mimic many "quantum" models, shrinking the space where a real advantage can hide.
  • Benchmarking claims require care: comparisons against weak classical baselines, small qubit counts, and cherry-picked datasets have produced retracted or contested advantage claims.
  • The most credible near-term path to advantage is a hybrid one — quantum-generated features or quantum-sampled data feeding classical models — rather than end-to-end quantum learning.
The core insight

Quantum machine learning can, in narrow and so far mostly artificial cases, exploit quantum interference for provable speedups, but no practical, verified quantum advantage over classical ML has yet been demonstrated on real hardware.

The idea

Quantum machine learning studies how quantum computers can accelerate or enrich machine learning tasks: classification, regression, generative modeling, and optimization of learned functions. The central mechanism is the quantum feature map, a unitary Uϕ(x)U_\phi(x) that encodes a classical data point x∈Rdx \in \mathbb{R}^d into a quantum state ∣ϕ(x)⟩=Uϕ(x)∣0⟩⊗n|\phi(x)\rangle = U_\phi(x)|0\rangle^{\otimes n} living in a 2n2^n-dimensional Hilbert space. Because nn qubits span an exponentially large space, the hope is that data becomes linearly separable in this space even when it is hopelessly entangled in the original dd-dimensional space — the quantum analogue of the classical "kernel trick." There are two dominant architectural families. Quantum kernel methods use the feature map only to compute inner products K(x,x′)=∣⟨ϕ(x)∣ϕ(x′)⟩∣2K(x, x') = |\langle \phi(x)|\phi(x')\rangle|^2, which are then fed into a classical support vector machine or Gaussian process — the quantum computer acts purely as a kernel evaluator. Variational quantum classifiers (VQCs), sometimes called quantum neural networks, instead run a parameterized circuit U(θ)U(\theta) after the feature map, measure an observable, and train θ\theta via gradient descent exactly as in the variational algorithms covered under The NISQ Era and Variational Quantum Algorithms. A third, less mature family uses quantum circuits as generative models (quantum Boltzmann machines, quantum GANs) that sample from distributions hard to represent classically. The crucial theoretical question is not "can a quantum circuit do machine learning?" — trivially yes — but "does the quantum feature map or circuit family compute something a classical algorithm cannot efficiently approximate?" This is the question of classical simulability: many proposed quantum kernels and VQCs turn out to be efficiently simulable by classical tensor-network or kernel-approximation methods, in which case any "advantage" observed on small instances is an artifact of insufficient classical effort, not genuine quantum leverage.

How it works

The best-understood, most rigorously analyzed QML pipeline is the quantum kernel classifier, so we walk through it in detail; the mechanism generalizes directly to VQCs by replacing the kernel-SVM step with a trainable measurement circuit.

Step 1 — Feature map design. Choose an encoding unitary Uϕ(x)U_\phi(x) that is easy to implement on hardware but hard to simulate classically. A standard choice is the ZZ feature map:

Uϕ(x)=exp⁡ ⁣(i∑j<kxjxk ZjZk)⋅∏jHj⋅exp⁡ ⁣(i∑jxjZj)⋅∏jHjU_\phi(x) = \exp\!\Big(i \sum_{j<k} x_j x_k \, Z_j Z_k\Big) \cdot \prod_j H_j \cdot \exp\!\Big(i \sum_j x_j Z_j\Big) \cdot \prod_j H_j

repeated for several layers to increase circuit depth and entanglement.

Step 2 — Kernel estimation. For each pair of training points x,x′x, x', prepare ∣ϕ(x)⟩|\phi(x)\rangle, apply Uϕ(x′)†U_\phi(x')^\dagger, and measure the probability of returning to ∣0⟩⊗n|0\rangle^{\otimes n}. This probability equals ∣⟨ϕ(x′)∣ϕ(x)⟩∣2|\langle \phi(x')|\phi(x)\rangle|^2, the kernel entry, estimated via repeated shots (the swap test or direct fidelity estimation are alternatives).

Step 3 — Kernel matrix assembly. Repeat Step 2 for all pairs in the training set to build an N×NN \times N Gram matrix KK, where NN is the number of training examples.

Step 4 — Classical training. Feed KK into a classical SVM solver, which finds the maximum-margin hyperplane in the (implicit) quantum feature space by solving the dual quadratic program.

Step 5 — Inference. For a new point x∗x^*, compute kernel values K(x∗,xi)K(x^*, x_i) against the (typically small) set of support vectors, and classify using the trained SVM decision function. ``` function QUANTUM_KERNEL_TRAIN(X, y, n_qubits, shots): N = length(X) K = zeros(N, N) for i in 1..N: for j in i..N: state_i = prepare(U_phi(X[i]), n_qubits) circuit = append(state_i, adjoint(U_phi(X[j]))) p00 = estimate_prob_zero(circuit, shots) // repeat `shots` times, average K[i][j] = p00 K[j][i] = p00 // kernel matrix is symmetric model = classical_SVM_fit(K, y) // solve dual QP classically return model, K function QUANTUM_KERNEL_PREDICT(model, X_support, x_star, n_qubits, shots): k_vec = [] for x_s in X_support: state = prepare(U_phi(x_s), n_qubits) circuit = append(state, adjoint(U_phi(x_star))) k_vec.append(estimate_prob_zero(circuit, shots)) return classical_SVM_decision(model, k_vec) ``` For a VQC, Steps 2–4 are replaced: after the feature map, apply a trainable ansatz U(θ)U(\theta), measure an observable O^\hat{O} (e.g., Z0Z_0), and update θ\theta via a parameter-shift gradient estimator, exactly as in standard variational algorithms: ``` function VQC_TRAIN(X, y, theta_init, epochs, lr): theta = theta_init for epoch in 1..epochs: grad = zeros(length(theta)) for x, label in zip(X, y): circuit = prepare(U_phi(x)) -> apply(U_theta) for k in 1..length(theta): theta_plus = theta; theta_plus[k] += pi/2 theta_minus = theta; theta_minus[k] -= pi/2 e_plus = expectation(circuit, theta_plus, observable=Z0) e_minus = expectation(circuit, theta_minus, observable=Z0) grad[k] += (e_plus - e_minus) / 2 loss_derivative(e, label) theta = theta - lr grad / length(X) return theta ```

Figure
Two QML architectures: quantum kernel pipeline versus variational quantum classifier
Quantum Kernel Pipeline Data x, x′ Feature map U_φ(x), U_φ(x′)† Measure |0…0⟩ prob → K(x,x′) Classical SVM solve dual QP Predict Variational Quantum Classifier (VQC) Data x Feature map U_φ(x) Ansatz U(θ) trainable gates Measure ⟨Z⟩ estimate loss Update θ (param-shift) gradient loop back to ansatz Where quantum advantage can hide (or vanish) Feature map complexity Must be classically hard to simulate (else no edge) Barren plateaus Gradients vanish exponentially in depth/qubits Noise & shot budget Decoherence washes out exponential separations

Complexity & correctness

Quantum kernel estimation cost. Building the full Gram matrix requires O(N2)O(N^2) circuit evaluations, each estimated to additive precision ϵ\epsilon using O(1/ϵ2)O(1/\epsilon^2) shots by Hoeffding-type concentration bounds on the estimator of a measurement probability. Each circuit has depth O(L)O(L) for an LL-layer feature map, so total quantum runtime is:

O ⁣(N2⋅1ϵ2⋅L)O\!\left(N^2 \cdot \frac{1}{\epsilon^2} \cdot L\right)

This is the honest cost — quadratic in dataset size, which is already worse-scaling than many classical kernel approximations (e.g., random Fourier features run in O(N)O(N) per epoch). The quantum step must therefore win on quality of the kernel (separability), not on raw evaluation speed, for any net benefit to survive the N2N^2 overhead.

Correctness of the kernel estimator. The measured probability p00p_{00} from Step 2 is an unbiased estimator of ∣⟨ϕ(x′)∣ϕ(x)⟩∣2|\langle\phi(x')|\phi(x)\rangle|^2 by the Born rule: measuring Uϕ(x′)†Uϕ(x)∣0⟩U_\phi(x')^\dagger U_\phi(x)|0\rangle in the computational basis and recording the frequency of the all-zero outcome converges, as shots →∞\to \infty, exactly to that fidelity. The resulting matrix KK is symmetric positive semi-definite (a valid Gram matrix) because it is built from inner products of actual quantum states — this guarantees the classical SVM's convex dual QP remains well-posed and its optimum is the true max-margin solution in the induced feature space.

The provable speedup, and its narrowness. Liu, Arunachalam, and Temme (2021) proved a rigorous, exponential quantum kernel advantage for a specific synthetic dataset built from the discrete logarithm problem: labels are assigned by a function related to the hardness of DLP, which a quantum feature map can encode via Shor-like modular exponentiation but which is conjectured hard for any classical kernel or model to learn with polynomially many samples. This is the cleanest existence proof that quantum kernels can beat classical learners — but the dataset was engineered to embed a cryptographic hard problem, not drawn from any real application domain.

Simulability limits the space of possible advantage. A feature map is a candidate for advantage only if computing ∣⟨ϕ(x′)∣ϕ(x)⟩∣2|\langle\phi(x')|\phi(x)\rangle|^2 is classically hard. Many popular ansätze — low-entanglement circuits, certain instantaneous quantum polynomial (IQP)-type circuits under noise, and shallow circuits with bounded treewidth — admit efficient classical simulation via tensor-network contraction or Clifford-based stabilizer techniques. Huang et al.'s classical shadows framework further shows that many properties of quantum states used in QML pipelines can be estimated classically from a modest number of measurements, again shrinking the region where quantum hardware is strictly necessary. Correctness of the pipeline as ML (does it produce a valid classifier) is not in question; correctness of the advantage claim is the real correctness burden, and it fails unless the feature map resists both exact and shadow-based classical simulation.

VQC gradient scaling and the barren plateau. For a VQC with a sufficiently expressive, randomly initialized ansatz on nn qubits, the variance of the cost gradient with respect to any parameter shrinks as:

Var[∂C∂θk]=O ⁣(12n)\mathrm{Var}\left[\frac{\partial C}{\partial \theta_k}\right] = O\!\left(\frac{1}{2^n}\right)

This follows from Haar-random unitary concentration arguments (McClean et al. 2018): the expectation value of almost any observable over a randomly parameterized deep circuit concentrates sharply around its mean, so gradients vanish exponentially and the number of shots needed to resolve a useful gradient signal grows as O(2n)O(2^n) — erasing any asymptotic speedup for nn large enough to be classically hard to simulate in the first place. This is the central tension of NISQ-era QML: the same circuit depth and qubit count needed for classical-simulation hardness is also what triggers trainability collapse.

Space complexity. Quantum-side space is just nn qubits plus classical bookkeeping of O(N2)O(N^2) kernel entries or O(∣θ∣)O(|\theta|) parameters — modest. The bottleneck is never qubit count for the toy demonstrations run so far; it is noise-limited circuit depth and the shot budget needed to beat statistical uncertainty.

Worked example

Consider a tiny binary classification task with 4 training points in R2\mathbb{R}^2, encoded on n=2n=2 qubits via a single-layer ZZ feature map, evaluated on a simulator with shot noise to mimic real hardware.

Pointx1x_1x2x_2Label
aa0.100.90+1
bb0.150.85+1
cc0.950.10−1
dd0.900.15−1

Step 1 — circuit construction. For each point, apply H⊗HH \otimes H, then RZ(2x1)R_Z(2x_1) on qubit 0 and RZ(2x2)R_Z(2x_2) on qubit 1, then an entangling RZZ(2x1x2)R_{ZZ}(2x_1x_2) gate. This is one layer of the ZZ feature map.

Step 2 — pairwise fidelity estimation (1024 shots each). Running Uϕ(xi)†Uϕ(xj)U_\phi(x_i)^\dagger U_\phi(x_j) and measuring the all-zero outcome probability gives the empirical Gram matrix:

abcd
a1.0000.9780.0810.093
b0.9781.0000.0770.089
c0.0810.0771.0000.968
d0.0930.0890.9681.000

Note the block structure: a,ba,b (label +1) have high mutual fidelity (≈0.98\approx 0.98), c,dc,d (label −1) likewise, and cross-class fidelities are small (≈0.08\approx 0.08–0.090.09). This is exactly the separability the feature map is designed to induce — points of the same class map to nearly parallel state vectors, opposite classes to nearly orthogonal ones.

Step 3 — classical SVM. Solving the dual QP on this 4×44\times4 kernel matrix finds a maximum-margin hyperplane in feature space separating the two nearly-orthogonal clusters; both a,ba,b and c,dc,d end up as support vectors since the dataset is small and symmetric-looking (but the kernel values themselves are not perfectly symmetric across classes, showing this is not the "trivial symmetric case" — the small asymmetries, e.g., K(a,c)=0.081K(a,c)=0.081 vs. K(b,d)=0.089K(b,d)=0.089, come from genuine shot noise and slightly different point positions).

Step 4 — inference on a new point. Take x∗=(0.5,0.5)x^* = (0.5, 0.5), an ambiguous midpoint. Estimating K(x∗,a)≈0.35K(x^*, a) \approx 0.35, K(x∗,b)≈0.34K(x^*,b)\approx 0.34, K(x∗,c)≈0.33K(x^*,c)\approx 0.33, K(x∗,d)≈0.32K(x^*,d)\approx 0.32 — all comparable, correctly reflecting that this point is genuinely near the decision boundary. The SVM decision function evaluates to a small positive margin (label leaning +1), illustrating that the quantum kernel, like any kernel method, degrades gracefully rather than catastrophically near ambiguous inputs — a sanity check that the pipeline is behaving as a real kernel should, not as a lookup table memorizing training labels. This toy example is classically simulable in microseconds — it demonstrates the mechanism, not an advantage. Real advantage claims require nn large enough that classical simulation of the feature map itself becomes intractable, which is precisely where barren plateaus and hardware noise become dangerous.

Common pitfalls & traps

PitfallWhy it happensConsequence
Weak classical baselineComparing against a linear or shallow classical model instead of a tuned kernel/deep net"Quantum advantage" claim collapses once a stronger classical baseline is tried
Classically simulable feature mapChoosing shallow or low-entanglement ansätze for hardware convenienceNo genuine advantage possible even in principle; results are simulation artifacts
Ignoring barren plateausUsing deep, expressive, randomly initialized ansätze for supposed generalityTraining gradients vanish exponentially; model never converges at scale
Shot-noise-driven overfittingSmall training sets with noisy kernel estimatesApparent training accuracy that fails to generalize; kernel matrix loses PSD-ness under noise
Cherry-picked small nnDemonstrating on 4–10 qubits where classical brute force is trivialResult says nothing about scaling behavior at cryptographically relevant sizes
Confusing "quantum-inspired" with "quantum"Running QML-derived classical algorithms (dequantized methods) and attributing gains to quantum hardwareMisattributes genuinely classical algorithmic improvement to quantum mechanism

Pioneers & history

Origins · 1 minMaria Schuld and how this was discovered
MS
Maria Schuld
1988–present · South African-German quantum computing researcher who formalized quantum kernel methods and the feature-map framework central to modern QML

Schuld's work at Xanadu, building on her PhD research, established the rigorous connection between quantum circuits and classical kernel methods, giving QML its first mathematically precise vocabulary rather than loose analogies to neural networks.

History
1995
— Kak proposes early "quantum neural network" concepts, mostly informal analogies.
2013
— Lloyd, Mohseni, and Rebentrost propose quantum algorithms for supervised and unsupervised learning with claimed exponential speedups under strong data-loading assumptions.
2017
— Schuld and Killoran, and separately Havlíček et al. at IBM, formalize quantum feature maps and quantum kernel estimation on near-term hardware.
2018
— McClean, Boixo, Smelyanskiy, Babbush, and Neven identify the barren plateau phenomenon, reshaping expectations for trainable QML circuits.
2021
— Liu, Arunachalam, and Temme prove a rigorous, provable quantum kernel speedup on an engineered discrete-log dataset, the first clean theoretical existence proof in the field.

The field's history is a story of successive tempering: bold 2013-era claims of exponential speedups relied on quantum random access memory (qRAM) and data-loading assumptions that later analysis (notably Ewin Tang's dequantization results, 2018–2021) showed often admit efficient classical analogues once those assumptions are examined carefully. This pattern — an exciting quantum result followed by a classical "dequantized" algorithm matching its performance — has repeated across recommendation systems, principal component analysis, and several QML proposals, and is now a standard skepticism check any new QML claim must survive.

Where this matters

Pharmaceutical and materials companies (including collaborations involving IBM, Google, and academic groups) are testing quantum kernels for molecular property prediction, where the underlying quantum chemistry may make quantum feature maps a more natural fit than for generic tabular data. Financial institutions have piloted variational quantum classifiers for fraud detection and portfolio risk scoring on IBM Quantum and IonQ hardware, though none report end-to-end advantage over classical gradient-boosted trees at production scale. Quantum-enhanced generative models are explored for drug-like molecule generation, an area where even modest quality improvements over classical GANs would have outsized value. More broadly, the honest current use of QML in industry is as a research tool for probing what quantum feature spaces can represent, informing the design of better classical algorithms — an indirect but genuinely valuable form of impact, distinct from direct computational speedup. Hardware roadmaps from IBM, Google, and IonQ explicitly frame near-term QML experiments as stepping stones toward fault-tolerant regimes rather than as commercially deployable products today, a framing consistent with the broader caution urged by Quantum Error Correction research: meaningful advantage on any quantum workload, ML included, is widely expected to require error-corrected logical qubits well beyond current NISQ device fidelities.

Ask the tutor: How would classical shadow tomography change the calculus for whether a specific quantum kernel offers real advantage?

Is quantum machine learning faster than classical machine learning today?

Not in any demonstrated, practically relevant case. On real hardware with realistic qubit counts, quantum kernel methods and variational classifiers have shown proof-of-concept training on small, often synthetic datasets, but head-to-head comparisons against well-tuned classical models (SVMs, gradient-boosted trees, deep nets) have not shown a verified speed or accuracy advantage on tasks people actually care about. The one rigorous exponential speedup proof concerns an artificial dataset built around the discrete logarithm problem, chosen specifically because it is easy for a quantum feature map but conjectured hard classically — it does not generalize to typical ML workloads like image or tabular classification.

What is a quantum feature map, precisely?

A quantum feature map is a parameterized unitary circuit Uϕ(x)U_\phi(x) that transforms classical data xx into a quantum state ∣ϕ(x)⟩|\phi(x)\rangle in an exponentially large Hilbert space. It plays the same conceptual role as a classical feature map in kernel methods: rather than working with xx directly, the learning algorithm works with inner products between mapped points, ⟨ϕ(x′)∣ϕ(x)⟩\langle\phi(x')|\phi(x)\rangle. The design goal is a map whose induced geometry makes classes more separable than in the original space, while also being — ideally — hard for classical computers to simulate, which is the necessary (not sufficient) condition for any genuine quantum advantage.

What is a barren plateau and why does it matter for QML specifically?

A barren plateau is a region of parameter space where the gradient of the training loss has exponentially small variance in the number of qubits, making gradient-based optimization essentially undirected random search. It arises when circuits are sufficiently expressive and randomly initialized that measurement expectation values concentrate near their mean over the whole parameter landscape. For QML this is especially damaging because the circuits most likely to defy classical simulation — deep, highly entangling ones — are exactly the circuits most prone to barren plateaus, creating a narrow and possibly empty window where a model is both trainable and quantum-advantageous.

Why can classical computers sometimes simulate "quantum" machine learning models efficiently?

Many quantum circuits used in QML have limited entanglement, bounded treewidth, or belong to classically tractable classes like Clifford circuits (efficiently simulable via the stabilizer formalism) or circuits amenable to tensor-network contraction. Techniques like classical shadows also let a classical algorithm reconstruct many statistical properties of a quantum state from a modest number of real hardware measurements, then process everything classically afterward. When a proposed QML model falls into one of these categories, any observed performance is achievable — often faster — by a purely classical algorithm, meaning the "quantum" label is doing no computational work.

What would a convincing quantum advantage demonstration in ML need to show?

It would need three things simultaneously: a feature map or model provably or empirically resistant to classical simulation (including tensor-network and shadow-based attacks), a training procedure that avoids barren-plateau gradient collapse at the qubit counts used, and a real dataset — not a cryptographically engineered toy — where the quantum model measurably outperforms the best available classical model under a fair compute budget. No published result as of the writing of this article satisfies all three simultaneously; most satisfy at most one.

How do classical dequantization results affect confidence in QML speedup claims?

Dequantization results, pioneered by Ewin Tang starting around 2018, take a claimed quantum algorithm (originally for recommendation systems, later PCA and other tasks) and show that under the same data-access assumptions used to justify the quantum algorithm, a classical algorithm with similar sample-based access achieves comparable runtime. This repeatedly revealed that the apparent exponential speedup came from an unrealistic assumption (like instant quantum random access memory) rather than quantum mechanics itself. It taught the field to scrutinize input/output models as carefully as the quantum circuit, since a speedup that vanishes under fair classical comparison is not a real speedup.

Where is QML most likely to show real advantage first, if anywhere?

The most credible candidates are problems with intrinsically quantum structure — simulating quantum systems, quantum chemistry feature generation, or learning properties of quantum states themselves — where the data is naturally quantum rather than classical data awkwardly embedded into qubits. Hybrid pipelines that use quantum hardware to generate features, samples, or kernels that are then consumed by classical models are seen as more promising near-term paths than fully end-to-end quantum learning. Most researchers expect any decisive, broadly useful advantage to require fault-tolerant hardware well beyond current NISQ devices, tying QML's ultimate prospects to progress in quantum error correction.

Before this