Many practical decisions, such as planning routes for a fleet or ordering jobs on a production line, come down to picking the best combination out of an enormous number of possibilities. Quantum annealing is one way of attacking such problems with quantum hardware. It is a special-purpose method: an annealer does not run arbitrary programs, it searches for low-energy states of a physical system that has been set up to represent the problem.
What does energy have to do with optimisation?
An optimisation problem gives every candidate solution a cost, and the best solution is the one with the lowest cost. Physics has an exact counterpart: every configuration of a physical system has an energy, and the configuration with the lowest energy is called the ground state. If the costs of a problem can be written as the energies of a system, finding the ground state means solving the problem.
A common picture is a landscape of hills and valleys. Each point is a candidate solution, its height is the cost, and the goal is the deepest valley. A simple search that only walks downhill gets stuck in the nearest valley, which is often not the deepest one.
The picture has limits. Real problems live in a space with thousands of dimensions, not on a two-dimensional map. Nor does a quantum system behave like a ball resting at one point: during the process it is in a superposition of many configurations at once.
How does quantum annealing work?
The process has four steps:
- Encoding: the problem is written as an energy function of yes/no variables, in Ising or QUBO form. Each variable is assigned to a qubit, and the costs are defined by adjusting a bias on each qubit and the couplings between pairs of qubits.
- A simple start: the qubits are prepared in the lowest-energy state of a simple starting system. This state is easy to reach and is an equal superposition of all possible configurations.
- Slow change: the starting system is gradually switched off while the energy function of the problem is switched on. According to a result known as the adiabatic theorem, a well-isolated system that is changed slowly enough stays in its lowest-energy state throughout. For hard problems the time this requires can become impractically long.
- Measurement: at the end each qubit is read out as 0 or 1. The resulting bit string is a single candidate solution, so the run is repeated many times and the best results are kept.
Along the way the system can make use of quantum tunnelling: it can pass through an energy barrier instead of climbing over it, as methods based on random thermal jumps have to. Tunnelling is not a general shortcut, and how much it helps on practical problems is still being studied.
Which problems suit quantum annealing?
Two kinds of task fit naturally:
- Combinatorial optimisation problems expressed in Ising or QUBO form, such as scheduling, routing, assignment, graph partitioning and portfolio selection.
- Sampling, where the aim is not one best answer but many different low-energy configurations; this is of interest in machine learning and in simulating magnetic materials.
The wider field is described in our article on quantum optimisation.
How does annealing differ from gate-model quantum computing?
| Quantum annealing | Gate-model computing | |
|---|---|---|
| How it computes | Through one continuous, slow change of an energy function | By applying the gates of a circuit one after another |
| Scope | Optimisation and sampling | General-purpose in principle |
Today’s annealers are not universal computers, although a more general form of the idea, adiabatic quantum computing, is in theory as powerful as the gate model. D-Wave is the best-known commercial maker of quantum annealers; its processors are built from superconducting qubits.
What are the limits of quantum annealing?
- Mapping onto the hardware: each qubit is physically connected to only some of the others. A problem with a different pattern of interactions has to be embedded, usually by representing one variable with a chain of several physical qubits, which uses up qubits quickly.
- Noise: the processor is never perfectly isolated from its surroundings. Heat and imperfect control can push the system out of its lowest-energy state, and biases and couplings can only be set with limited precision.
- No guarantee of the optimum: in practice an annealer is a heuristic. It often returns good solutions quickly, but cannot prove that one is the best.
- Problem dependence: whether an annealer does better than a well-tuned classical solver varies from problem to problem. A general advantage in practical optimisation has not been demonstrated, so results have to be benchmarked case by case.
How Q&Co can help
Q&Co first checks whether an optimisation problem is suited to quantum computing at all. Where it is, the work continues with problem formulation, hybrid algorithm development, performance and resource assessment and, where needed, quantum hardware selection. If you have a problem you would like assessed, get in touch.