Level 1, Curious

Superposition

Both amplitudes are nonzero, +0.60 beside 0 and +0.80 beside 1, so the state is neither a plain 0 nor a plain 1. The squares are 0.36 and 0.64, and a measurement returns one of those two bits.

Superposition, in the usual 0-and-1 arrangement, means both amplitudes of a qubit are nonzero, so the state is neither a plain 0 nor a plain 1. The chances of the two readings are the squared sizes of those amplitudes, and the superposition ends once a measurement has returned a single bit.

Keith wrote “both at once” in the margin and underlined it twice. Malcolm crossed the phrase out, wrote “two numbers” underneath, and would not return the pencil until the squares were on the same line.

An example

Write 0.6 beside 0 and 0.8 beside 1. Both numbers are nonzero, so the qubit is in a superposition. Measure it and the chances are the squares, 0.36 for 0 and 0.64 for 1.

Now press H, the Hadamard gate, before you measure. H makes a new amplitude for 0 from the sum, 0.6 + 0.8 = 1.4. It makes a new amplitude for 1 from the difference, 0.6 − 0.8 = −0.2. Then it divides both by the square root of 2, about 1.41. Square the results and you get 1.96 ÷ 2 = 0.98 for 0 and 0.04 ÷ 2 = 0.02 for 1. The qubit now reads 0 in about 98 runs out of 100.

What it is not

Pop science says a qubit in superposition is 0 and 1 at the same time. A second story says it is truly 0 or truly 1, and you just have not looked. Both are wrong, and the H test above shows why the second one fails.

Picture a qubit that a hidden coin sets to 0 in 36 runs out of 100 and to 1 in the other 64. A plain measurement gives the same 0.36 and 0.64. But H on the state certain to read 0 gives even chances, and so does H on the state certain to read 1. So after H the hidden coin reads 0 in half the runs, never 98 in 100. The superposition is one definite state with two numbers. Only the click is random.

The word also depends on the arrangement you read in. The |+⟩ state is a superposition of 0 and 1, yet it is a plain answer to a reading that tells |+⟩ from |−⟩.

Each of the two numbers is an amplitude, and the hidden coin is a mixed state. The sum and the difference come from the Hadamard gate, and the cancelling is interference. A measurement ends the superposition with one bit. The note A bit is a switch builds one by hand, and the puzzle asks you to build the even split yourself.

Used in

Longer explanation: What is superposition?

All the words