Level 1, Curious

Qubit

These two amplitudes, about +0.71 beside 0 and about +0.71 beside 1, are the choice a qubit carries. A measurement turns them into one ordinary bit, with an equal chance of either reading.

A qubit, short for quantum bit, stores a choice in a small physical system such as two energy levels of an atom or the spin of an electron. It carries two amplitudes instead of a switch position, and a measurement turns those amplitudes into one ordinary bit.

Keith told a visitor the qubit was a switch stuck halfway between on and off. Malcolm put a number beside 0 and a number beside 1, and would not continue until both had been squared.

An example

Take a qubit with an amplitude of 0.6 for 0 and 0.8 for 1. Square each number and you get 0.36 and 0.64. Those are the chances of reading 0 and 1. They add to 1, because the qubit will read one way or the other.

Prepare that qubit 1,000 times and measure each copy. Expect about 360 zeros and 640 ones. Each run gives one bit, and the share of zeros only settles near 0.36 as the pile grows.

Now flip the sign on the second amplitude, so it reads −0.8. The squares are still 0.36 and 0.64, so the counts look the same. It is still a different state, because a later gate can turn that sign into a different result.

Two qubits need four amplitudes, one each for 00, 01, 10 and 11. Ten qubits need 1,024. Each qubit you add doubles the list an ordinary computer must keep to describe them all.

What it is not

A qubit is not a bit that is 0 and 1 at the same time. It is not a bit with a secret value you have not looked at yet, either. It holds two numbers, and those numbers set the odds of a single click.

It also does not hand you its numbers. Measure ten qubits and you get ten bits, not a list of every answer. You learn the amplitudes only by preparing the same qubit many times and counting the clicks, with and without a gate such as H in front.

The two numbers a qubit carries are its amplitudes. When both are nonzero, the qubit is in a superposition. The Bloch sphere draws one qubit as a point on a globe, and a measurement is how a qubit becomes a bit. The note A bit is a switch sets a bit beside a qubit, and the qubit page lets you turn one with the gates.

Used in

Longer explanation: What is a qubit?

All the words