Every photo, song, and message on your phone is stored as bits. A bit is a switch that is either off or on. A qubit is the quantum version, and it is not a switch. It is an arrow. This page shows you the arrow, how to read it, and why reading it is the strange part.
Off or on. Zero or one. That is all a bit is, and your phone has about a trillion of them.
Four switches can be set in 16 ways. Add one switch and the number doubles.
Flip the switches below. The row of zeros and ones is called a binary number, and the readout shows what it stands for in ordinary counting. Every letter you type and every pixel in a photo is stored as a pattern like this.
Before you look, a spinning coin is neither heads nor tails. After you look, it is one of them. Keep that sentence. It is most of quantum mechanics.
One flip tells you almost nothing. A hundred flips tell you the odds.
This coin can be weighted. Slide the weight, flip it once, then flip it a hundred times. Notice that a single flip never tells you the weight. Only the pile of results does. Heads is 0 and tails is 1 from here on.
Straight up means 0. Straight down means 1. Anywhere in between is a qubit, and the height of the arrow tip sets the odds.
The height of the tip, on a ruler from −1 to +1, tells you the chance of reading 0.
Tilt the arrow. When it points straight up the height is +1 and the chance of 0 is 100 percent. Straight down, the height is −1 and the chance of 0 is zero. Sideways, the height is 0 and it is a fair coin. The arrow lives on a sphere, and you can drag the sphere to see it from any side.
This is the part that is truly different from a coin. When you read a qubit, the arrow jumps to straight up or straight down, and it stays there.
You never see the tilt. You see a 0 or a 1, and afterwards the arrow points that way.
Set a tilt, then press Look. The arrow snaps to one of the poles, with the odds from the height rule. Press Look again and you get the same answer every time, because the arrow is now at a pole. To get a tilted arrow back you have to prepare it again. That is what Reset does.
A normal computer flips switches. A quantum computer turns arrows. Here are the three turns that matter most.
Every operation a quantum computer can do to one qubit is a rotation of the sphere.
Press the buttons and watch. Each one is a turn around some axis, and the dashed line shows the axis while the turn happens.
Flip is a half turn around a sideways axis. It turns the arrow upside down, which is the quantum version of NOT. Quarter turn is a quarter turn around the vertical axis. It changes where the arrow points around the sphere but not how high it is, so the odds do not change. Tip sideways is the odd one. It is a half turn around a tilted axis, the one that sits halfway between straight up and "toward you". A half turn around that axis swaps up with toward-you. So an arrow that points up ends up pointing toward you, flat on the equator, and a certain 0 becomes a fair coin. Do a turn, then look, and the odds follow the new height.
Two arrows can have exactly the same height and still be different arrows. Looking cannot tell them apart. Turning can.
The arrow can point toward you or away from you, and the odds do not change. This hidden direction is where quantum computing lives.
The slider below sets the hidden direction of a second arrow. Both arrows lie flat on the equator, so both have height 0 and both read 0 half the time. Looking cannot tell them apart, no matter how many times you look. Are they really different, or is the hidden direction just a story?
Here is the experiment that settles it. Apply the same "tip sideways" from section 05 to both arrows, then look. Remember what that turn is: a half turn around the tilted axis halfway between up and toward-you, and it swaps those two directions. So the arrow that points toward you ends up straight up, a certain 0. The arrow that points away from you ends up straight down, a certain 1. Same height before, opposite heights after. The hidden direction was real, and one turn made it visible.
A qubit is a bit with a direction, and direction is what waves have. Because of that, a machine built from qubits can make wrong answers cancel out the way sound waves cancel in noise-cancelling headphones. That is what page 2 is about. And because the arrow turns at a rate set by the field around it, a single qubit is also a sensor, which is page 3. Both ideas rest on the hidden direction you just saw.
Next: Finding an Answer with Waves, which takes the hidden direction and turns it into a search that finds one box out of four in a single try.