Machine learning and quantum computing both attract high expectations, and their combination attracts more than its share of bold claims. The field behind the label is real and active, but it is a research field. A grasp of its main ideas and its known obstacles is enough to judge most announcements.

What does quantum machine learning cover?

Quantum machine learning (QML) usually means using a quantum computer for part of a machine-learning task: classifying data, fitting a function or generating samples. The quantum processor almost always works inside a hybrid quantum-classical loop, in which a classical computer handles the data, the optimisation and everything else.

The term is also used in the opposite direction: classical machine learning applied to quantum technology. Learning methods help to calibrate qubits, shape control pulses and decode the error signals in quantum error correction. This direction receives less publicity, but it is already in use in quantum laboratories.

How is data fed into a quantum computer?

A quantum computer cannot read a file. Each data point has to be turned into a quantum state by a circuit, a step called encoding; the circuit that does it is often called a feature map. A number can set the rotation angle of a gate, for example, or a list of values can be stored in the amplitudes of a state.

Amplitude encoding looks very economical, because the number of amplitudes doubles with every added qubit. The catch is the preparation. Building such a state from arbitrary data generally takes a circuit that grows with the size of the data, which can cancel the speed-up being sought. And because measurement destroys the state, the encoding has to be repeated for every run.

What are variational circuits and quantum kernels?

Two ideas dominate current work.

  • Parametrised (variational) circuits. The circuit contains gates with adjustable angles, which play the role that weights play in a neural network. It is run on the encoded data, a cost is computed from the measurement results, and a classical optimiser adjusts the angles. The cycle repeats until the cost stops improving. Models of this kind are sometimes called quantum neural networks.
  • Quantum kernels. Many classical methods, such as support vector machines, need only a measure of similarity between pairs of data points, called a kernel. Here the quantum computer estimates that similarity by encoding two points as quantum states and measuring how much the states overlap. The training itself stays classical.

In both cases the hope is that quantum states give access to patterns that are hard to compute classically. Whether such patterns are useful for practical data is an open question.

Does quantum machine learning offer an advantage today?

Not a demonstrated one. Four points summarise the status:

  • No practical advantage on real-world data. Rigorous speed-ups exist for specially constructed mathematical problems, but experiments on hardware use small data sets on which classical methods do at least as well.
  • Data loading is costly, for the reasons given above.
  • Training is hard. Every evaluation of the cost needs many repeated runs, and noise blurs the result. Many circuit designs also suffer from barren plateaus: as qubits are added, the training landscape becomes so flat that the optimiser receives almost no signal about which way to move.
  • Classical methods keep improving. Several proposed quantum speed-ups for learning tasks were later matched by new classical algorithms working under comparable assumptions.

The most plausible early uses involve data that is quantum to begin with: the output of quantum sensors, of experiments or of a quantum simulation. No loading step is needed there. Theoretical results, supported by laboratory experiments, indicate that a quantum computer can learn certain properties of such data from far fewer experiments than approaches that measure each sample and process the results classically.

What does this mean for a company today?

  • Treat quantum machine learning as research to follow, not as a technology to deploy. A classical machine-learning project should not be delayed in the expectation of a quantum version.
  • Ask of every reported result which classical baseline it was compared with and how large the data set was. The article on quantum advantage explains how to read such claims.
  • If your data comes from quantum systems, or your team wants to build skills, a small exploratory project on simulators is a reasonable and inexpensive step.

How Q&Co can help

Q&Co checks whether a problem is suited to quantum computing before any algorithm is developed, and builds hybrid classical-quantum algorithms where it is. If you are weighing a quantum machine learning idea, contact us to discuss a suitability assessment.