Level 2, Tinkerer
Bloch sphere
The Bloch sphere is a globe that draws the state of one qubit as a point, with the state certain to read 0 at the north pole and 1 at the south pole. Height on the globe sets the chances of reading 0 and 1, and the longitude sets the relative phase. A pure state is a point on the surface. A mixed state, which carries some ordinary randomness, is a point inside.
Two qubits do not fit on one globe of this kind, however many posters squeeze them there. The qubit page on this site says what the poles and the phase are for, and the puzzles ask for a named state from the gates alone.
An example
Give the globe a radius of 1, so the height runs from +1 at the north pole to −1 at the south pole. The height of a point is its chance of reading 0 minus its chance of reading 1.
Take a qubit with an amplitude of 0.6 for 0 and 0.8 for 1. The chances are 0.36 and 0.64, so the height is 0.36 − 0.64 = −0.28. The point sits a little below the equator. Both amplitudes are positive, so it leans toward the |+⟩ state, at a distance of 2 × 0.6 × 0.8 = 0.96 from the north to south line. Check that it lands on the surface, since 0.96 × 0.96 + 0.28 × 0.28 = 0.9216 + 0.0784 = 1.
Every point on the equator has height 0, so it reads 0 and 1 with even chances. The |+⟩ state sits on one side and the |−⟩ state on the far side. Gates turn the globe. Z is a half turn about the north to south line, so it moves |+⟩ to |−⟩ and leaves the height alone.
What it is not
The globe is not a map of where the qubit sits in the chip, and the arrow is not a needle you can read. Any point still gives one bit per click. To find the point you measure many copies in more than one arrangement.
Points that look well apart can still be easy to confuse. The north pole and |+⟩ are a quarter turn apart, yet a |+⟩ state still reads 0 in half its runs, so one click cannot say which you had. Only opposite points, such as the two poles, can be told apart by one click every time.
Related words
The longitude is the relative phase, and a point inside the globe is a mixed state. The globe draws one qubit at a time, and the Hadamard gate is the turn that swaps the north pole with |+⟩. The note The sign is what cancels shows that turn at work, and Which Gate asks you to name the turn from the globes.
Used in
Longer explanation: What is the Bloch sphere?