A classical computer works by doing things one at a time. Very fast, billions of operations per second, but always one at a time. Even modern parallel processors are just many sequential workers running side by side. The model, at its core, is sequential.
Quantum computers operate on a fundamentally different model. Not faster sequential. Structurally different.
Here is a concrete way to see it. Suppose you need to retrieve a piece of information from each of ten books scattered across a large library. The classical approach is what you would expect: walk to section A, find the book, read the relevant passage, return it. Walk to section B. Repeat. Ten trips, one after another. The time required scales with the number of books.
The quantum approach looks like cheating. You stand at the library gate and announce, all at once, every question you have. An ether of superposed information assembles, carrying simultaneous echoes of all ten answers. But you cannot simply reach in and read them. Any direct measurement collapses the whole thing down to a single value, chosen probabilistically. The answers are there; you just cannot extract them directly.
The trick, and the part that takes real work to understand, is what happens before you measure. You apply a lens: a carefully designed sequence of quantum operations that reshapes the superposition. The lens uses interference to amplify the answer you want and cancel out the rest. Then you measure. One clean result, reflecting a computation that engaged all ten possibilities at once.
That lens is a quantum algorithm. The Quantum Fourier Transform is one of the sharpest. The mechanism underneath is phase interference, the same physics that makes light waves reinforce or cancel. Understanding it requires understanding the mathematical structure of superposition itself: what it actually is, what it can encode, and why the numbers involved are complex.
This series builds toward those algorithms from the ground up, with mathematical rigor but a lot of intuition along the way. We start here, with a single qubit. It is not the interesting part by itself. But it is the foundation everything else is built from.
In this post
- 1Amplitudes — the complex numbers that describe a qubit’s state, and why they aren’t ordinary probabilities
- 2Bra-ket notation — the compact shorthand physicists use for quantum states and inner products
- 3What a qubit is, precisely — the exact parameters that fully specify a qubit state
- 4The Bloch sphere — how two angles map every qubit state onto the surface of a sphere
- 5Phase — the hidden coordinate invisible at measurement, which quantum algorithms exploit through interference
Think about a light switch. It’s either on or off. No in between. A classical bit works the same way: it’s a 1 or a 0, and it knows which one it is at all times.
Now imagine a dimmer switch. Before you walk into the room, the dial is sitting at some position between fully off and fully on. When you flip the light on to check, it instantly snaps to either fully on or fully off, but where the dial was sitting determined how likely each outcome was. The closer to “on,” the more likely you get light. The dial position is not uncertainty about what’s there. It’s a precise description of the system before you look.
A qubit works like that dimmer. Before you measure it, it’s not secretly a 0 or secretly a 1. It’s in a superposition, a specific, mathematically precise state that encodes how likely each outcome is. When you measure, the superposition snaps to either 0 or 1. The state before measurement was real and well-defined. Just not a classical value.
The numbers that describe “where the dial is set” are called amplitudes. They’re the central concept of everything that follows.
Amplitudes aren’t probabilities. They’re stranger.
You already know probabilities. A fair coin lands heads 50% of the time. Probabilities are real numbers between 0 and 1. They’re never negative.
Amplitudes are stranger. They’re complex numbers, numbers that live in the complex plane, with both a real and an imaginary part. An amplitude is not a probability. It becomes one when you square its magnitude.
Concretely: if a qubit has amplitude for the outcome 0 and amplitude for the outcome 1, the probabilities are and . Since probabilities must add to 1, the amplitudes must satisfy:
That’s the only constraint. As long as this holds, and can be any complex numbers whatsoever.
Why complex? Because the imaginary part encodes something called phase, a quantity that’s invisible at measurement but becomes crucial when qubits interact. We’ll come back to phase. For now: complex amplitudes aren’t arbitrary complexity for its own sake. They’re the minimum structure that makes quantum mechanics work.
A shorthand worth learning: bra-ket notation
Writing “the state with amplitude for 0 and amplitude for 1” every time is exhausting. Physicists use a compact notation invented by Paul Dirac, called bra-ket notation, named after the word “bracket.”
The two most definite qubit states, the analogs of classical 0 and 1, are written:
These are called kets. They’re just vectors, written in a distinctive way. Measuring always gives 0. Measuring always gives 1. No probability involved.
A superposition, any state in between, is a linear combination of these two. The general qubit state is:
where and are complex numbers with . The symbol (psi) is just a conventional name for a quantum state. You’ll see it everywhere.
Underneath the notation, this is an ordinary vector. Written as a column:
with and . The ket notation is just a more descriptive wrapper.
The other half: the bra, written , is the conjugate transpose of the ket, . It lets you write inner products as , bra on the left, ket on the right, forming a “bracket.” The normalization constraint in this form is:
What a qubit is, precisely
A qubit is a unit vector in a two-dimensional complex vector space. Its two components are amplitudes. Measuring it collapses it to one of the two basis states, with probabilities equal to the squared magnitudes of the amplitudes.
The state before measurement is not vague. It’s exactly . The uncertainty is in the outcome of measurement, not in the state itself. The dimmer is in a precise position before you flip the light on. You just can’t know what it snaps to until you look.
Everything in quantum computing builds on this. Gates are transformations on these vectors. Entanglement is a property of multi-qubit vectors. Quantum algorithms steer the amplitudes so that the right answer comes out with high probability.
How many knobs does a qubit have?
Before we can visualize a qubit’s state, we need to count how many independent things can vary about it: the degrees of freedom.
Start with the full description: two complex numbers, and . That’s four real numbers: , , , .
Constraint 1: normalization. The rule fixes one of the four numbers given the others. Down to three.
Constraint 2: global phase. If you multiply the entire state by any complex number of magnitude 1, say for some real angle , you get a state that is physically indistinguishable from the original. Every measurement gives the same result. The reason: probabilities depend on , and . The global factor cancels.
Since states that differ only by global phase are physically identical, we can always fix a convention to remove it. By convention, we require to be real and non-negative. That removes another degree of freedom.
We’re left with two real degrees of freedom. Two knobs. Two is exactly the number of coordinates needed to index the surface of a sphere.
Putting the qubit on a sphere
Two angular coordinates describe any point on a sphere: a polar angle (how far down from the north pole) and an azimuthal angle (the longitude). The qubit state can be written using exactly those two angles. This parametrization bakes normalization in automatically:
where and .
The is deliberate: it ensures that as sweeps from 0 to , the state sweeps from to exactly once, covering the full sphere without doubling back.
Check the poles: at , we get . At , we get , which is physically (global phase). Every qubit state is a point on this sphere. This is the Bloch sphere.
Reading the sphere: qubit states as geography
The Bloch sphere turns qubit states into geography. The poles are the classical states; everything else is a superposition.
North pole (): the state . Measuring this gives 0 with certainty. .
South pole (): the state . Measuring this gives 1 with certainty. .
The equator () is a ring of states that each give a 50/50 outcome. The four named equatorial states are:
- , positive x-axis ()
- , negative x-axis ()
- , positive y-axis ()
- , negative y-axis ()
All four give 50/50 at measurement. But they’re four distinct physical states; drag the sphere and you’ll see them sitting 90° apart around the equator. They respond differently to gates.
What happens when you measure
Measurement collapses the qubit to one of the two poles, or . The probabilities come directly from the parametrization. For a state at polar angle :
The latitude of the state tells you how certain the outcome is. A state near the north pole has small , so is close to 1. The equator is maximum uncertainty. Distance from a pole is geometric probability.
After measurement, the superposition is gone. The state is now or , snapped to the pole. This is why you can’t extract both and from a single measurement. You only see which pole the state fell to.
Phase: the coordinate that hides until you need it
The longitude doesn’t appear anywhere in the measurement probabilities. The azimuthal angle of the Bloch sphere has no effect on what you observe when you measure directly.
This might look like phase doesn’t matter. It does.
Phase becomes visible the moment you rotate the state before measuring. A gate, a quantum operation, is a rotation of the Bloch sphere. A rotation that shifts the longitude can change the latitude . And changing changes the measurement probabilities. Two states that look identical under direct measurement can become distinguishable after a rotation, because the rotation treats different longitudes differently.
This is quantum interference, the mechanism behind every quantum algorithm. It’s entirely a consequence of phase. We’ll dig into it in the next post, when we have a concrete gate to work with. For now: phase is the hidden coordinate. Invisible at measurement, but present in the state vector, waiting to matter.