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.
- Data encoding: classical features are mapped into qubit states through a feature map, for example by using values as rotation angles.
- Parameterized circuit: trainable gates, often called an ansatz, transform the encoded state.
- Measurement: repeated runs, called shots, estimate expectation values of chosen observables.
- 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.
| Approach | Core idea | Hardware need | Maturity |
|---|---|---|---|
| Variational quantum circuits | Train gate parameters like neural network weights | Noisy near-term devices | Widely tested, no proven advantage |
| Quantum kernel methods | Use a quantum feature map to compute similarity between data points | Noisy near-term devices | Experimental demonstrations |
| Quantum linear algebra | Solve linear systems or principal components with algorithms such as HHL | Fault-tolerant machines | Theoretical |
| Quantum annealing for learning | Sample from energy landscapes for optimization or Boltzmann models | Annealers | Niche experiments |
| Learning from quantum data | Analyze states produced by quantum sensors or simulations | Quantum memory and processors | Strongest theoretical case |
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 source | Claimed benefit | Main caveat |
|---|---|---|
| Exponential state space | Rich feature spaces for kernels | Kernel values can concentrate and become indistinguishable |
| Fast linear algebra | Exponential speedup for matrix problems | Requires fast data loading and limited readout |
| Quantum data access | Exponentially fewer experiments to learn properties | Applies only to data that is already quantum |
| Hard-to-simulate circuits | Models classical computers cannot evaluate | Hardness does not imply better accuracy |
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.
| Aspect | Classical deep learning | Quantum machine learning today |
|---|---|---|
| Model size | Billions of parameters | Tens to hundreds of parameters |
| Data input | Direct memory access | Costly state preparation per sample |
| Gradient computation | Exact backpropagation | Estimated from repeated measurements |
| Noise | Negligible hardware errors | Gate errors limit circuit depth |
| Scaling evidence | Extensive empirical scaling laws | Mostly small simulations and proofs of concept |
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.
| Symptom | Likely cause | Common mitigation |
|---|---|---|
| Gradients near zero | Barren plateau from deep random circuits | Shallow, problem-informed ansatz and local costs |
| Kernel matrix close to identity | Exponential concentration of kernel values | Bandwidth tuning or simpler feature maps |
| Results drift between runs | Hardware noise and calibration changes | Error mitigation and repeated calibration |
| Training too slow | Shot cost of gradient estimation | Fewer parameters and smarter optimizers |
- 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.