Skip to content

Quantum Machine Learning Frontier

Quantum machine learning uses quantum resources somewhere in a learning pipeline: data acquisition, feature representation, optimization, prediction, or sampling. A useful advantage claim identifies that location and charges for the other stages. A quantum model’s expressivity, trainability, and predictive generalization are different properties.

Helpful background. Quantum machine learning introduces models and learning tasks; variational algorithms explains parameterized-circuit optimization. Here we ask how data acquisition, training and testing affect their usefulness.

Classical and quantum data allow different operations

Section titled “Classical and quantum data allow different operations”

For classical inputs xx, a feature circuit prepares ρ(x)\rho(x) from a conventional representation. A circuit with logarithmically many qubits does not establish logarithmic loading time for arbitrary data. If an amplitude-encoding circuit depends on every entry of a vector, its preparation cost must be counted or an explicit access structure supplied.

For quantum data, the source may provide copies of an unknown state or access to an evolving experiment. A classical learner can receive measurements from that source, but cannot generally receive an arbitrary classical description of it at no cost. Comparisons should match the number of copies, allowed measurements, quantum memory, adaptivity, and classical processing.

Tang’s recommendation-system algorithm shows that sophisticated classical sampling access can change an apparent quantum separation. Its scope is a specified low-rank recommendation setting; it is a reason to inspect access assumptions, not a blanket impossibility result.

Consider a loss contribution f(θ)=⟨O⟩θf(\theta)=\langle O\rangle_\theta with ∥O∥≤1\|O\|\le1, where θ\theta appears in one gate e−iθP/2e^{-i\theta P/2} with Pauli operator PP. The parameter-shift identity gives

∂θf=f(θ+π/2)−f(θ−π/2)2.\partial_\theta f= \frac{f(\theta+\pi/2)-f(\theta-\pi/2)}2.

If a parameter is shared by several gate occurrences, sum their separate derivative contributions or use a justified generalized shift rule; shifting all occurrences together does not generally obey this two-term formula. For a nonlinear loss ℓ(f)\ell(f), apply the chain rule: the two shifts differentiate ff, not generally the loss evaluated at the shifted parameters.

If each shifted expectation is estimated with SS independent shots, each with variance at most one, and the two shot sets are independent, the gradient estimator has variance at most 1/(2S)1/(2S). Resolving a gradient magnitude gg with standard error substantially below ∣g∣|g| can therefore require order 1/g21/g^2 shots when outcome variance remains order one. This absolute-precision requirement is separate from whether the exact gradient vanishes exponentially with system size.

McClean and collaborators proved exponentially suppressed gradient variance for suitable random circuit ensembles. Under those conditions, typical gradients can be exponentially small. This is an established result with ensemble assumptions; it does not say every shallow, structured, locally initialized quantum model has a barren plateau.

Avoiding a barren plateau is also not a proof of learning advantage. A model can be trainable because it explores an effectively small or classically tractable family. Conversely, good gradients do not guarantee the optimizer finds the best solution.

For PP parameters each occurring in one shiftable gate, one measured expectation per example, SS shots per shifted circuit, DD training examples per iteration, and II iterations, a direct full-gradient procedure uses

Nshots=2PSDI.N_{\mathrm{shots}}=2PSDI.

Take P=100P=100, S=1000S=1000, D=100D=100, and I=100I=100. The resulting 2×1092\times10^9 shots occupy about 23.123.1 days at a sustained 10001000 shots/s, ignoring compilation, communication, calibration, and failed jobs. This is an illustrative upper-level accounting for that particular estimator. Minibatching, simultaneous estimation, parameter sharing, and different optimizers change it.

The cost depends on how gradients and data are acquired, not only on a circuit’s gate count. Hyperparameter selection and validation also consume shots. The example assumes one expectation per loss contribution; measuring several incompatible observables or estimating a nonlinear function can add work or statistical bias.

Generalization must survive independent testing

Section titled “Generalization must survive independent testing”

A model that fits training labels may exploit noise or data leakage. Split training, validation, and final test data according to the task’s independence structure. Measurements from the same specimen, device session, or time series may be correlated; random row splits can then overestimate generalization to new specimens or environments.

Compare to competitive classical methods with matched input information, tuning budget, and target error. For a kernel method, separate the quantum cost of estimating the kernel from the classical cost of optimization. A difficult-to-estimate kernel is not automatically a useful kernel: concentration can make many inputs appear nearly identical.

A second issue is whether measurement noise preserves a kernel’s mathematical structure. For pure feature states, Kij=∣⟨ϕi∣ϕj⟩∣2K_{ij}=|\langle\phi_i|\phi_j\rangle|^2 is positive semidefinite because it is the Gram matrix of their density operators under the Hilbert–Schmidt inner product. Separately estimating each entry can produce a matrix that is not positive semidefinite, even if every entry is in [0,1][0,1]. Symmetrization and positive-semidefinite projection can help an optimizer, but they change the estimated kernel and must be included in the tested method.

Cerezo and collaborators review opportunities and trainability challenges across quantum learning tasks. The quantum-learning research guide discusses selected results and open questions. The useful question is which structured tasks combine informative quantum access, manageable measurement cost, and predictions that hold up on independent data.

For the parameter-shift estimator, assume each shifted measurement has variance one. How many shots per shift make the gradient standard deviation at most 10−310^{-3}?

Solution

Require 1/2S≤10−31/\sqrt{2S}\le10^{-3}, so S≥5×105S\ge5\times10^5 per shift. This is an absolute precision target. Resolving a still smaller gradient requires a stricter target or variance reduction.

A classifier is trained on measurements from ten independently prepared quantum states, with a thousand shots per state. Is a random split of all ten thousand shots an independent test on new states?

Solution

No. Both subsets contain measurements from the same ten states. That split can evaluate additional-shot prediction for those preparations but does not establish generalization to unseen states. A state-level split, with an explicit generating distribution, addresses the latter question.

An estimated pure-state fidelity kernel is

K^=(10.90.90.910.10.90.11).\widehat K=\begin{pmatrix}1&0.9&0.9\\0.9&1&0.1\\0.9&0.1&1\end{pmatrix}.

Every entry lies in [0,1][0,1] and every diagonal entry is one. Can it be the exact kernel of three pure feature states?

Solution

No. With v=(−2,1,1)Tv=(-2,1,1)^T, one finds vTK^v=−1v^T\widehat K v=-1, contradicting positive semidefiniteness. Exact fidelity kernels satisfy vTKv=Tr⁡[(∑iviρi)2]≥0v^TKv=\operatorname{Tr}[(\sum_i v_i\rho_i)^2]\ge0 for real vv. Finite-shot estimates can violate this joint constraint even though each estimated overlap is individually in range. Correcting the spectrum is a modeling step whose effect on predictions should be tested, not a proof that the corrected entries are exact.

  • M. Cerezo, G. Verdon, H.-Y. Huang, L. Cincio, and P. J. Coles, “Challenges and opportunities in quantum machine learning,” Nature Computational Science 2, 567–576 (2022). Author manuscript.
  • J. R. McClean, S. Boixo, V. N. Smelyanskiy, R. Babbush, and H. Neven, “Barren plateaus in quantum neural network training landscapes,” Nature Communications 9, 4812 (2018). doi:10.1038/s41467-018-07090-4.
  • E. Tang, “A quantum-inspired classical algorithm for recommendation systems,” Proceedings of STOC 2019, 217–228 (2019). Author preprint.

Algorithmic benchmarking covers fair task comparisons; quantum algorithms frontier explains access, precision, and output costs.