What a qubit really is, without the “0 and 1 at once” shortcut

“A bit is 0 or 1, but a qubit is both at once.” You have probably read that sentence. It is not useless, but it leads straight to a wrong conclusion: that a quantum computer tries every answer at the same time and hands you the right one.

At a glance

  • A qubit can be in a superposition, a weighted combination of 0 and 1.
  • Measuring it gives just one ordinary result.
  • The useful part is making wrong answers cancel and right answers add up.

Start with the weights

A classical bit has a value. A qubit has two numbers attached to it, one for 0 and one for 1, called amplitudes. Their sizes set how likely you are to see each result. They also carry a sign, or more generally an angle, and that detail is where the interest lies.

When you measure the qubit you get a 0 or a 1, never a blend. The delicate combination you had before is gone. Whatever the machine knew in superposition, you only get to read a small part of it.

Interference does the work

Because amplitudes can be positive or negative, they can cancel. Think of two ripples on water: where a peak meets a trough, the surface goes flat.

A quantum algorithm is a sequence of operations arranged so that the paths leading to wrong answers cancel and the paths leading to useful ones reinforce. Then you measure, and the useful answer is likely to appear. Arranging that cancellation is hard, and it is only known how to do it well for certain kinds of problem.

NIST’s explainer on quantum computing makes the key point: computations can be done in superposition, but that does not let a quantum computer search every possible solution by brute force.

Entanglement links them

Two entangled qubits have a shared state that cannot be written as one state for the first and another for the second. Measure them and the results are correlated in ways ordinary bits cannot copy. Entanglement does not send messages. It is what lets a group of qubits hold patterns that would take a classical computer an enormous list of numbers to track.

Why today’s machines are small and noisy

Qubits are easily disturbed. According to NIST, the best quantum computers today have hundreds of connected qubits and make an error roughly once in every thousand operations. A classical computer makes about one error in a quintillion.

A long calculation with that error rate drowns in mistakes. This is why so much research goes into error correction, where many physical qubits work together as one more reliable logical qubit.

A sentence to keep instead

A quantum computer is a machine for steering probabilities, so that a few particular problems end with the right answer being the likely one.

Related: how qubit designs have developed, and the challenges of quantum error correction.