Quantum machine learning

Also known as: QML

On this page 8

Quantum machine learning (QML) is the field that uses quantum computers to represent, process or learn from data, usually by encoding information into qubit states and training parameterized quantum circuits much like neural networks. Among quantum applications in quantum computing, it is one of the most actively researched areas and also one of the most contested in terms of real advantage.

QML covers several distinct ideas: running classical learning tasks on quantum hardware, learning from data that is itself quantum, and using classical machine learning to control quantum devices. The central open question is whether any of these approaches will outperform the best classical methods on problems that matter in practice.

How quantum machine learning processes data

Most near-term QML follows a hybrid quantum-classical loop. A classical computer prepares data and parameters, a quantum processor runs a short circuit and returns measurement statistics, and a classical optimizer updates the parameters. The loop repeats until a cost function, such as classification error, stops improving.

  1. Data encoding: classical features are mapped into qubit states through a feature map, for example by using values as rotation angles.
  2. Parameterized circuit: trainable gates, often called an ansatz, transform the encoded state.
  3. Measurement: repeated runs, called shots, estimate expectation values of chosen observables.
  4. Classical optimization: gradients are estimated, often with the parameter-shift rule, and the parameters are updated.

Because measurement collapses the state, every output is statistical. Estimating an expectation value to precision ε needs on the order of 1/ε² shots, so a single training step can require thousands of circuit executions. This sampling cost is a major practical bottleneck that classical neural networks do not face.

Main approaches and model families in QML

QML is not one algorithm but a family of approaches that differ in what runs on the quantum device and what assumptions they make about hardware. The table groups the principal families.

ApproachCore ideaHardware needMaturity
Variational quantum circuitsTrain gate parameters like neural network weightsNoisy near-term devicesWidely tested, no proven advantage
Quantum kernel methodsUse a quantum feature map to compute similarity between data pointsNoisy near-term devicesExperimental demonstrations
Quantum linear algebraSolve linear systems or principal components with algorithms such as HHLFault-tolerant machinesTheoretical
Quantum annealing for learningSample from energy landscapes for optimization or Boltzmann modelsAnnealersNiche experiments
Learning from quantum dataAnalyze states produced by quantum sensors or simulationsQuantum memory and processorsStrongest theoretical case
Principal quantum machine learning approaches

A quantum neural network is the usual name for a layered variational circuit, while a quantum kernel replaces the classical kernel in a support vector machine. Both terms have their own entries; what matters here is that they share the same encoding and measurement constraints.

Where a quantum advantage might come from

Claims of advantage in QML rely on a few specific mechanisms, each with strict conditions that are often overlooked. A state of n qubits lives in a space of 2ⁿ dimensions, but that size alone does not deliver useful speedups, because only limited information can be read out.

Proposed sourceClaimed benefitMain caveat
Exponential state spaceRich feature spaces for kernelsKernel values can concentrate and become indistinguishable
Fast linear algebraExponential speedup for matrix problemsRequires fast data loading and limited readout
Quantum data accessExponentially fewer experiments to learn propertiesApplies only to data that is already quantum
Hard-to-simulate circuitsModels classical computers cannot evaluateHardness does not imply better accuracy
Proposed sources of quantum advantage and their caveats

The strongest results concern learning from quantum experiments: theory and experiments have shown that processors able to store and entangle quantum states can learn some physical properties with exponentially fewer measurements than strategies that measure each state separately. For ordinary classical datasets, by contrast, no practical exponential speedup has been established.

Comparing quantum and classical machine learning

Classical machine learning currently outperforms QML on virtually every practical benchmark, mainly because classical hardware is vastly larger, cheaper and more reliable. The comparison below summarizes the structural differences.

AspectClassical deep learningQuantum machine learning today
Model sizeBillions of parametersTens to hundreds of parameters
Data inputDirect memory accessCostly state preparation per sample
Gradient computationExact backpropagationEstimated from repeated measurements
NoiseNegligible hardware errorsGate errors limit circuit depth
Scaling evidenceExtensive empirical scaling lawsMostly small simulations and proofs of concept
Structural differences between classical and quantum models

A further challenge is dequantization: several algorithms once believed to give exponential speedups, notably for recommendation systems, were matched by quantum-inspired classical algorithms under similar data-access assumptions. Such results show that a quantum advantage must be compared against the best classical method, not a weak baseline.

Training obstacles and common misconceptions

Variational QML faces barren plateaus, regions where gradients vanish exponentially with the number of qubits, so the optimizer cannot find a direction to improve. Deep, highly expressive circuits, global cost functions and hardware noise all make plateaus more likely.

SymptomLikely causeCommon mitigation
Gradients near zeroBarren plateau from deep random circuitsShallow, problem-informed ansatz and local costs
Kernel matrix close to identityExponential concentration of kernel valuesBandwidth tuning or simpler feature maps
Results drift between runsHardware noise and calibration changesError mitigation and repeated calibration
Training too slowShot cost of gradient estimationFewer parameters and smarter optimizers
Typical QML problems and mitigations
  • Misconception: more qubits automatically mean a better model. In practice, trainability often worsens as qubits grow.
  • Misconception: quantum computers process all data in parallel. Measurement returns only a small sample of the information in the state.
  • Misconception: an advantage demonstrated on a synthetic dataset transfers to real data. Most such results rely on specially constructed problems.

Practical use and outlook for QML

Today QML is primarily a research and skills-building activity. Organizations use simulators and cloud-accessible processors to benchmark small models, study trainability and prepare for fault-tolerant hardware. Frameworks such as PennyLane, Qiskit Machine Learning and TensorFlow Quantum integrate quantum circuits with familiar classical tooling.

The most credible near-term targets involve data that originates in quantum systems, such as outputs of quantum sensors, quantum chemistry simulations or other quantum processors. Large-scale advantages on classical data, if they exist, will likely require error-corrected machines and efficient quantum memory, which remain years away and whose timelines are uncertain.

In everyday language

Machine learning means teaching a computer to spot patterns by showing it many examples. Quantum machine learning tries to do the same thing with a quantum computer, which stores information in qubits that behave according to the rules of quantum physics.

The hope is that qubits can represent certain patterns more compactly or explore them more efficiently. The reality today is more modest: quantum computers are small and error-prone, getting data into them is slow, and ordinary computers remain much better at almost every real task. QML is a promising research direction, not yet a practical replacement for everyday artificial intelligence.

Seen in the real world

A pharmaceutical research group wants to know whether a quantum kernel can help classify molecules as likely or unlikely to bind a target protein. The team encodes eight molecular descriptors into an eight-qubit feature map, computes kernel values on a cloud quantum processor with about 2,000 shots per pair, and trains a support vector machine on 200 labeled molecules.

The quantum model reaches accuracy similar to a classical radial basis function kernel, but costs hours of processor time against seconds on a laptop. When the team adds more qubits, the kernel values begin to concentrate near the same value and accuracy drops. The group concludes that the experiment is useful for building expertise and benchmarks, while classical models remain the production choice until hardware improves.