Level 2, Tinkerer
Phase
Phase is the sign of an amplitude, or its angle when the number is complex and therefore has a real part and an imaginary part. A measurement in the usual 0-and-1 arrangement does not print the phase, so a gate has to turn the angle between the two amplitudes into a difference of chances before a click can show it.
Keith treated the sign as decoration for most of a week, a flourish you could leave off the diagram. The week ended when a Z gate on the |+⟩ state, followed by a Hadamard, turned a hidden minus into a certain reading of 1.
An example
Think of the phase as a direction on a dial. A plus sign points at 0 degrees and a minus at 180. The number i, whose square is −1, points at 90 degrees, and |i|² = 1.
Start with |+⟩, amplitudes 0.71 and 0.71, which reads 0 or 1 at even odds. Press Z, which turns the phase of the amplitude for 1 by 180 degrees. The qubit holds 0.71 and −0.71, and still reads at even odds.
Now press H. The new amplitude for 0 is (0.71 − 0.71) ÷ 1.41 = 0. The new amplitude for 1 is (0.71 + 0.71) ÷ 1.41 = 1. The qubit reads 1 every time. Without the Z, H gives 1 and 0, a certain 0.
Try a quarter turn instead. The S gate multiplies the amplitude for 1 by i, so |+⟩ becomes 0.71 and 0.71i. The chances stay at a half, since |0.71i|² = 0.5. H then gives 0.5 + 0.5i for 0 and 0.5 − 0.5i for 1. Each has a squared size of 0.25 + 0.25 = 0.5, a fair toss. A quarter turn sits halfway between the two signs, and H alone cannot pick a side.
What it is not
Phase is not decoration. It leaves today’s chances alone and changes the chances after the next gate, where every useful circuit does its work.
It is also not the phase of the moon. The word comes from waves, where it says how far along its cycle a wave has got.
And one phase on its own means nothing. Only the angle between the amplitudes can change a reading. A turn on every amplitude at once is invisible.
Related words
The angle between the two amplitudes is the relative phase, and a turn on all of them is a global phase. The Z gate and the S gate turn it, and i is a complex number. The note The sign is what cancels works the Z and H sums, and the puzzle asks for a certain 1 with no X key.