- Home
- Quantum Computing
- Can Quantum Computers Speed Up Machine Learning?
Can Quantum Computers Speed Up Machine Learning?
Every few months a headline announces that quantum computers will supercharge artificial intelligence, and every few months a machine learning engineer rolls their eyes and goes back to renting GPUs. Both reactions are understandable. The honest answer to whether quantum computers can speed up machine learning is somewhere between “maybe, for narrow things” and “nobody has shown it yet”, and it is more interesting than either extreme.
Why people expect a quantum boost in the first place
Machine learning, underneath the buzzwords, is mostly linear algebra: huge matrices multiplied, inverted and decomposed again and again, plus optimization, which means hunting for the lowest point in a very bumpy landscape. Quantum computers have a few genuinely different ways of handling both. A register of n qubits can hold amplitudes over 2n basis states at once, so a handful of qubits can in principle represent a vector that would take an enormous classical array. And certain quantum algorithms, such as the one by Harrow, Hassidim and Lloyd for solving systems of linear equations, promised exponential speedups on exactly the sort of operation machine learning leans on.
If that sounds too good to be true, you are reading it correctly, and the next sections explain why. If the idea of amplitudes and superposition is still hazy, our explainer on what a qubit is covers the basics, and the pillar guide to quantum computing puts the whole field in one place.
The catch that sinks many speedups: getting data in and out
Here is the problem that experienced researchers raise first. Those exponential speedups usually assume the input vector is already sitting inside the quantum computer as a quantum state, and that you only need a summary of the answer at the end. But your data starts life as ordinary numbers in memory. Preparing a quantum state that encodes a large classical dataset can itself take time proportional to the size of the data, which is the very cost you were hoping to avoid. Some proposals assume a special memory called QRAM that could load data efficiently; nobody has built one at scale, and building one is arguably a harder problem than the algorithm it supports.
The output is no kinder. A quantum computer gives you a measurement, a single sample from a distribution, not the whole result vector. To estimate a number precisely you repeat the experiment many times, and to read out all the entries of a big vector you would be back to a classical amount of work. In practice, the winning cases are the ones where you want a small piece of information about a giant object, and those are rarer in everyday machine learning than the headlines suggest.
Dequantization: the classical side fights back
The second blow came from an unexpected direction. In 2018, a then-teenager named Ewin Tang, working with Scott Aaronson, set out to prove that a well-known quantum recommendation-system algorithm was exponentially faster than any classical method. Instead they found a classical algorithm that did essentially as well, as long as it was allowed comparable access to the data. Tang and others then extended the technique to several other celebrated quantum machine learning proposals.
The lesson is subtle and worth keeping. These results did not prove quantum computers are useless for learning; they showed that some of the earliest speedups depended on assumptions about data access that also help classical algorithms. A claimed quantum advantage in this area should always be compared with the best classical method given the same assumptions, not with a naive baseline. That habit is exactly the one we apply when reading claims about quantum supremacy and quantum advantage.
Variational circuits and quantum kernels: the near-term approach
Since fault-tolerant machines are not here, much of the practical research focuses on small noisy devices running hybrid algorithms. The usual recipe is a variational quantum circuit: a short sequence of quantum gates with adjustable angles, whose output is measured and fed to a classical optimizer that tweaks the angles to reduce a loss, much like training a tiny neural network. Another recipe uses a quantum computer as a kernel, mapping each data point into a high-dimensional quantum feature space and letting a classical algorithm such as a support vector machine do the rest.
Both ideas are neat, and both are plagued by familiar problems. Training variational circuits runs into so-called barren plateaus, regions where the gradient vanishes so completely that the optimizer has nowhere to go, and the problem gets worse as circuits grow. Noise on current hardware washes out signals quickly. And there is a quieter issue: when researchers carefully compare small quantum models with equally small classical ones on standard benchmarks, the classical models often do as well or better. Reported quantum wins tend to appear on tailor-made datasets, which tells you more about the dataset than about the machine.
Our own qualitative reading, not benchmark data.
A fair side-by-side with the hardware you actually use
It helps to put the two approaches next to each other, because the comparison explains why practitioners stay unimpressed. A modern GPU is a mature, cheap, massively parallel machine built for exactly the matrix arithmetic that deep learning needs. It has software stacks, debugging tools and millions of users. A quantum processor today has tens to a few thousand noisy qubits, depending on the platform, cannot hold a large dataset and cannot run for long before errors creep in.
| Aspect | GPU / classical ML | Quantum ML (today) |
|---|---|---|
| Data handling | Billions of examples in memory | Small datasets; loading is a bottleneck |
| Model size | Billions of parameters | A few dozen to hundreds of circuit parameters |
| Reliability | Deterministic, mature tooling | Noisy; results are statistical samples |
| Cost per experiment | Cents to dollars | Cloud queue time, limited access |
| Proven advantage on real tasks | Yes, it powers current AI | None demonstrated |
| Best use | Training and running modern models | Research, education, niche theory |
Where quantum could genuinely help AI
Here is where we think the optimism is better placed, and it is not where most headlines point. The most convincing role for quantum computers is to generate or simulate things that are naturally quantum. Simulating molecules and materials is the textbook case: if a future machine can compute the energy of a molecule accurately, that data could feed a classical machine learning model to predict chemistry or screen drug candidates. In this picture quantum is a data source for AI rather than a replacement for it. We go through the other realistic applications in what quantum computing is actually good for today.
Optimization is the other long shot. Many machine learning pipelines contain combinatorial subproblems, such as scheduling, feature selection or routing. Quantum annealers and gate-based approaches have been tried on such tasks, with mixed and heavily debated results, a story we cover in quantum annealing versus gate-based machines. If a fault-tolerant machine ever arrives, the gains would likely appear first in these structured problems, and that depends on solving quantum error correction first.
What it does not look like is a quantum computer training a chatbot. Large language models need to push colossal amounts of ordinary data through billions of parameters, a workload that rewards bandwidth and brute force, which is the opposite of what qubits offer.
How to explore it without wasting money
If you are curious, the best investment is time, not hardware. Free tools are plentiful: Qiskit and PennyLane let you build a small variational classifier on a simulator in an afternoon, and our guide to trying a quantum computer for free shows how to run circuits on real devices. Our write-up of a first Qiskit circuit is a gentle starting point if you have never written one.
A solid grounding in linear algebra and probability will serve you better than any quantum library, and a good textbook is cheaper than any cloud credit. If you prefer paper, these quantum machine learning books on Amazon are a reasonable place to browse; look for recent editions, since the field has changed quickly. And if your real interest is practical AI at home, you will get far more from a capable PC for local models than from any quantum service.
Our bottom line
We would summarize the situation like this. Quantum machine learning has real mathematics behind it, a handful of interesting theoretical speedups, and a long list of reasons those speedups have not materialized: data loading, noise, barren plateaus and ever-improving classical algorithms. For anything you need to build this year, use classical tools. For anything you want to understand, quantum machine learning is a lovely way to learn how both fields think, as long as you keep asking the unromantic question of what it beats and by how much.