Before we meet a qubit, we need three pieces from the classical world. You probably already know two of them — this warmup is about making them precise. The third, complex numbers, is the piece that separates a bit from a qubit.
1. A bit is a yes-or-no
A bit is the smallest piece of classical information. It has exactly two possible values, usually written as and . A light switch. A door that’s open or closed. A toggle.
That’s it. A bit is boring on purpose — it’s the smallest unit we can build computers out of. Everything a classical computer does is billions of bits flipping between and , very fast.
2. Probability is the language of not-knowing
Sometimes we don’t know what a bit is. Imagine a coin under a cup. The coin is either heads or tails — you just can’t see which. We capture this with probability: a number between and that measures how likely something is.
For a fair coin: and . Each time you look, you get one outcome. But if you flip the coin a hundred times and keep count, the fractions settle down to .
Try it yourself:
Flip it once. Then flip ten. Then a hundred. Notice what happens: no matter how wild the first few flips look, the ratio converges.
This is a crucial point, and it’s the one that most beginners get wrong about quantum mechanics. A coin under a cup is already heads or tails. We just don’t know which. Probability here is a statement about our knowledge — not about the coin.
A qubit is going to be different. Keep this moment in your head; we’ll come back to it in Lesson 4.
3. Complex numbers — just enough
Real numbers live on a line. , , . Every real number has a single spot on that line.
A complex number is different: it has two pieces, a real part and an imaginary part. Instead of living on a line, it lives on a plane. You can think of it as an arrow from the origin to a point, with two ways to describe it:
- Cartesian form: , where is the real part and is the imaginary part.
- Polar form: , where is the length (magnitude) of the arrow and is the angle (phase).
The imaginary unit satisfies . That’s the one weird rule. Every other thing about complex numbers follows from it.
Drag the sliders below to see both forms at once:
Two things to notice:
- The magnitude is the length of the arrow. It tells you “how big.”
- The phase is the angle from the positive real axis. It tells you “which direction.”
A complex number with magnitude is just a direction — no size, pure angle. Those live on the unit circle.
Why this matters
Classical bits need only the real numbers and . Classical probability theory needs real numbers between and that sum to . That’s the whole classical story.
A qubit needs complex numbers — specifically, complex numbers whose squared magnitudes sum to . The phase, the angle in that little clock widget, is what gives a qubit its superpowers. It’s how two “50/50” quantum states can cancel each other out, and how two others can line up and reinforce.
In the next lesson, we meet the qubit and start seeing what those complex numbers are doing.