Overview
Quantum machine learning (QML) asks whether quantum computers can learn from data better than classical computers: with less time, fewer samples, or less memory. Early proposals, surveyed by Biamonte et al., promised exponential speed-ups for linear-algebra-based methods such as principal component analysis (Lloyd, Mohseni and Rebentrost). Those speed-ups depend on how data reaches the quantum computer, and Aaronson set out the conditions under which they survive. Later work showed that, under a matching classical input model, several of them can be reproduced classically up to polynomial factors (dequantization).
What is proved today falls into three groups, which must not be confused:
- Classical data, computational separations that rest on a complexity assumption and on constructed problems (Liu, Arunachalam and Temme).
- Quantum data, information-theoretic separations in the number of copies of a quantum state or runs of an experiment, which need no complexity assumption but require coherent quantum memory (Huang, Kueng and Preskill; Chen et al.).
- Heuristic models (quantum kernels and parameterized circuits on real datasets), for which there is numerical evidence on small or engineered problems but no proved advantage.
Intuition
A classical learning algorithm sees data as numbers. A quantum model first turns each input into a quantum state and then measures something about it. Two things can make this useful: the states may live in a space too large to compute with classically, or the data may already be quantum, as when the "data" is the output of a quantum experiment.
Both have catches. A huge feature space is only helpful if the learner can still generalize from a reasonable number of examples and can estimate the quantities it needs from a reasonable number of measurements; in large Hilbert spaces random states are nearly orthogonal, so kernel values crowd around a constant and become unmeasurable. And loading classical data into amplitudes is itself a costly step; if it is assumed to be free, a classical algorithm given the corresponding sampling access may do nearly as well.
Prerequisites
Quantum linear algebra for the QRAM-based algorithms, variational quantum algorithms for parameterized models, quantum measurements, and basic statistical learning theory (kernels, generalization, sample complexity). The lesson Quantum machine learning fundamentals gives an introduction.
Mathematical Definitions
Let be an input set. A quantum feature map on qubits is a map from to density operators on ; typically with for a circuit whose gate angles depend on . The quantum kernel of the feature map is
In the pure case is the probability of the all-zeros outcome when is applied to and all qubits are measured, so it can be estimated from shots with standard error at most . A quantum kernel method estimates the Gram matrix on training inputs, and a classical algorithm, such as a support vector machine, learns a predictor from it.
This framework was proposed by Havlíček et al., with a demonstration on a superconducting processor, and by Schuld and Killoran, who stressed the analogy with feature Hilbert spaces in classical kernel theory. Neither paper claims a proven learning advantage; whether a given quantum kernel helps depends on whether it is hard to compute classically and whether it matches the structure of the data.
Let be classical data with entries encoded as -bit strings. A quantum random access memory for is a unitary on an address register of qubits and a -qubit data register with
so that a superposition of addresses is mapped to in one call. For with , amplitude encoding is the preparation of
on qubits. The QRAM input model assumes that , and hence (with suitable precomputed partial norms) the preparation of , cost time polylogarithmic in after a one-time loading of the data.
The physical cost is a separate question. In the bucket-brigade architecture of Giovannetti, Lloyd and Maccone a memory call throws only switches instead of the of conventional designs, which reduces the number of components that must be entangled during a query. Whether such devices can be built with the required error rates is open, and Aaronson lists data loading among the caveats that decide whether a claimed speed-up survives. The classical analogue of this input model, sample-and-query access, is the one under which Tang and later work dequantize several algorithms.
A learning separation is always a statement about a resource (time, number of examples, number of copies of a state, memory) under a stated access model (what the learner may do with the data) and, for computational separations, a stated complexity assumption. A claim that names none of these is not a claim of advantage.
Theorems
For every finite set of inputs , the Gram matrix is real, symmetric and positive semidefinite: for all . Moreover , and exactly when is pure.
So is a valid kernel in the sense of classical kernel methods, with feature space the real vector space of Hermitian operators under the Hilbert–Schmidt inner product and feature vector . Learning with is therefore linear learning in that feature space, and by the representer theorem the optimal predictor of a regularized kernel method is a linear combination of the — which is why only kernel values, not the exponentially large feature vectors, are needed. Schuld and Killoran developed this feature-space view of quantum models.
- is any map from an input set into density operators on a finite-dimensional Hilbert space, and .
Proof · Proof that quantum kernels are positive semidefinite
Real and symmetric. For Hermitian , , so is real, and gives symmetry.
Positive semidefinite. For let , a Hermitian operator. Then
Bounds. for positive operators, since and . By the Cauchy–Schwarz inequality for the Hilbert–Schmidt inner product, , because for a positive operator of unit trace. Finally , the purity, equals 1 if and only if has a single non-zero eigenvalue, that is, is pure.
Dequantization
Under the assumptions, for a matrix , a vector and a suitable function applied to singular values, there is a classical algorithm that outputs a description of a vector close to which supports sampling and entry queries, in time polynomial in the stable-rank-type ratios, the inverse precision and the parameters of , and independent of the dimension apart from the cost of the sampling operations (Chia, Gilyén, Li, Lin, Tang and Wang). The framework recovers and often improves earlier dequantizations: recommendation systems (Tang, STOC 2019), low-rank regression and matrix inversion (Gilyén, Lloyd and Tang, preprint), and principal component analysis and nearest-centroid clustering (Tang, PRL 2021), and adds low-rank Hamiltonian simulation and discriminant analysis.
The classical algorithms are polynomially slower than the quantum ones, so polynomial quantum speed-ups may remain. The results say nothing about sparse, full-rank, well-conditioned matrices, the regime of the BQP-complete linear-systems problem.
- Sample-and-query access: the classical algorithm can query entries of and and draw row indices with probability proportional to squared row norms, and entries within a row proportionally to their squared magnitudes, together with the norms involved - the classical counterpart of QRAM-based state preparation.
- The matrix is close to low rank (its Frobenius norm is not much larger than its operator norm), and the function applied to the singular values is smooth enough; running times are polynomial in these ratios and in the inverse precision.
- Outputs are samples from, and query access to, the result vector, matching what the quantum algorithm provides.
In particular, quantum principal component analysis of classical low-rank data offers no exponential speed-up over classical sampling-based algorithms with the same access (Tang), and the same holds for recommendation systems (Tang). Exponential speed-ups survive only where the classical analogue of the input model is unavailable or the matrices are not low rank.
A computational separation with classical data
Liu, Arunachalam and Temme construct a family of datasets (concept classes) from the discrete logarithm such that:
- Quantum learnability. A conventional support vector machine whose kernel is a quantum kernel estimated on a fault-tolerant quantum computer, as the transition amplitude of a circuit, learns a classifier with high test accuracy in polynomial time, and this remains true when the kernel entries carry the additive errors caused by finite sampling.
- Classical hardness. No classical polynomial-time learner classifies the data with accuracy inverse-polynomially better than random guessing, unless the discrete logarithm can be computed in classical polynomial time.
The separation is end-to-end in the sense that the quantum learner has only classical access to the data. It is also conditional, and the concept class is constructed so that labels depend on discrete logarithms; it is a proof that a learning advantage with classical data is possible, not evidence about any natural dataset. The feature map contains a discrete-logarithm computation, so the algorithm needs a fault-tolerant machine.
- The discrete logarithm problem in the multiplicative group modulo a prime has no classical polynomial-time algorithm (a widely believed but unproven hardness assumption).
- The learner receives classical labelled examples; the quantum learner may run a fault-tolerant quantum computer, including Shor's discrete-logarithm algorithm inside the feature map.
- Kernel entries are estimated from finitely many measurement shots, modelled as additive errors.
Separations from quantum data
Let be an unknown -qubit state.
- To predict the expectation values of all -qubit Pauli operators to constant accuracy, every learner without quantum memory needs copies of , while a learner with quantum memory needs only copies (Huang, Kueng and Preskill).
- To estimate the absolute values of all Pauli expectations, a learner that carries qubits of quantum memory between copies needs copies, while copies suffice with qubits of memory (Chen, Cotler, Huang and Li).
Chen et al. also prove exponential separations for purity testing and for distinguishing scrambling from depolarizing dynamics, and show that shadow tomography of observables without quantum memory needs copies in the worst case. Huang, Kueng and Preskill prove, in contrast, that for predictions that need to be accurate only on average over an input distribution, classical learners need a number of runs of the experiment comparable to the best quantum learner; in their setting an exponential gap appears only when predictions must be accurate on all inputs. Huang et al. demonstrated such separations experimentally on a superconducting processor with up to 40 qubits.
These are separations in the number of copies or experiments; they do not assert that any computation runs faster.
- Without quantum memory: the learner receives copies of an unknown -qubit state one at a time and measures each with an arbitrary, possibly adaptively chosen, measurement, keeping only classical outcomes; classical post-processing is unbounded.
- With quantum memory: the learner may store copies coherently and measure several of them jointly.
- The resource counted is the number of copies of the state, not computation time.
What classical learners can do with quantum data
Huang, Kueng, Torlai, Albert and Preskill prove that classical machine-learning algorithms trained on data from measurements of gapped local Hamiltonians in a finite spatial dimension can efficiently predict ground-state properties of other Hamiltonians in the same phase, and that, under widely accepted complexity assumptions, classical algorithms that do not learn from data cannot achieve the same guarantee. Their training data are classical shadows (Huang, Kueng and Preskill). Data, not quantum processing, is the source of power in this result.
Worked Examples
A one-qubit kernel
Take . Then and
For the inputs the Gram matrix is with eigenvalues , and , all non-negative as the theorem requires. The kernel is a cosine kernel that a classical computer evaluates instantly: a quantum kernel is only interesting if it is hard to compute classically.
Exponential concentration of a product kernel
On qubits take the product feature map , so . If all coordinates are independent and uniform on , each difference is uniform modulo , and , . By independence
For , , and by Markov's inequality . Estimating such entries from the frequency of one outcome needs of order shots each; with a polynomial shot budget the estimated Gram matrix is essentially the identity, and the trained model ignores the data. Thanasilp, Wang, Cerezo and Holmes prove concentration bounds of this kind for expressive embeddings, global measurements, entanglement and noise.
Shot budget for a Gram matrix
By Hoeffding's inequality, shots estimate one kernel entry to with probability at least . For training points there are off-diagonal entries. Requiring all of them to be within with total failure probability (union bound, ) needs shots per entry and about shots in total, before any prediction is made.
Limitations and Common Pitfalls
- Name the input model. Amplitude encoding of classical data is still classical data. If the quantum learner assumes QRAM, the classical baseline should be granted sample-and-query access, under which dequantization applies to low-rank problems.
- Name the resource. Copy-complexity separations, conditional time separations and memory separations are different claims; calling all of them "exponential speed-up" hides what was proved.
- Concentration and measurement cost. Kernel values and gradients that concentrate exponentially cannot be estimated with polynomially many shots (Thanasilp et al.). Kübler, Buchholz and Schölkopf argue that a quantum kernel helps only if its reproducing-kernel Hilbert space is small and contains functions that are classically hard to compute, and conjecture that advantages require encoding problem-specific knowledge that is hard to encode classically.
- Data can substitute for computation. Huang et al. show that classical models trained on data can predict some functions that are classically hard to compute, and give a test, based on prediction-error bounds, for when a quantum kernel could outperform classical ones on a given dataset.
- Constructed problems are not datasets. The discrete-logarithm separation shows that an advantage with classical data is possible; it says nothing about images, text or molecules.
State of the Art
As of 2026-12, summarizing the cited works:
- Proved, classical data: the discrete-logarithm kernel separation (Liu, Arunachalam and Temme, Nature Physics 2021), conditional on the hardness of discrete logarithms and requiring a fault-tolerant computer.
- Proved, quantum data: exponential copy-complexity separations with quantum memory (Huang, Kueng and Preskill, 2021; Chen et al., FOCS 2021), with an experimental demonstration on up to 40 superconducting qubits and about 1300 gates (Huang et al., Science 2022).
- Numerical evidence: Huang et al. (2021) report a prediction advantage of a projected quantum kernel over some classical models on engineered datasets, in simulations with up to 30 qubits. Evidence on natural classical datasets is limited to small problems and does not establish an advantage.
Theoretical background on learning from quantum examples is surveyed by Arunachalam and de Wolf (preprint).
Related Research
Quantum linear algebra and quantum singular value transformation (the subroutines behind QRAM-based algorithms), variational quantum algorithms (parameterized models and their barren plateaus), quantum advantage, and quantum chemistry (a source of genuinely quantum data).