Quantum AI / Quantum Basics
The unit of quantum information.
Reviewed by Yuvaraj
A classical bit is either 0 or 1. A qubit is described instead by two complex numbers, and that extra structure, amplitudes that can interfere and become entangled, is where every quantum algorithm's leverage comes from. But it arrives with a hard catch the marketing usually omits: you can never read those amplitudes out. A measurement returns a single classical bit, chosen at random with probabilities fixed by the amplitudes, and it destroys everything else. This lesson builds the qubit from the classical bit, states the measurement rule precisely, gives it a geometric home on the Bloch sphere, and dismantles the most damaging myth in the field, that a qubit "tries every answer at once."
A classical bit stores one of two values and you can inspect it whenever you like without disturbing it. A qubit generalizes this: its state is a unit vector in a two-dimensional complex vector space. Writing the two basis states, the computational basis, as and , a general pure qubit state is a superposition
Ask about this lesson, or about anything in AI. Answers cite the lessons they draw on.
Finished this lesson?
Mark it complete to earn XP, keep your streak, and schedule a review.
The complex numbers and are called amplitudes. They are not probabilities, they can be negative or complex, which is exactly what lets them interfere. The only constraint is normalization:
A superposition is not mystical. It is a definite, fully specified vector, the state is as concrete as a classical bit's value. What differs is how you get information out of it.
Measuring a qubit in the computational basis returns one classical bit, and the outcome is random. The Born rule fixes the probabilities: you observe with probability and with probability . Normalization is what makes these sum to one.
Measurement also collapses the state. If you observe , the qubit is now in state ; measure again and you get with certainty. The pre-measurement amplitudes are gone, the act of reading is irreversible and destroys the superposition. This is the crux: from a single qubit you extract exactly one bit, and you never recover and from one measurement. To even estimate them you must prepare the same state many times and gather statistics.
One more subtlety: a global phase is physically invisible. The states and produce identical measurement statistics in every basis, so they are the same physical state. Only the relative phase between amplitudes, and their magnitudes, carry physical meaning.
Two complex amplitudes are four real numbers. Normalization removes one degree of freedom and the irrelevance of global phase removes another, leaving two real parameters. Any pure single-qubit state can therefore be written
which is a point on the surface of a unit sphere, the Bloch sphere. The north pole is , the south pole is , and points on the equator are equal-weight superpositions distinguished only by the relative phase . Antipodal points are orthogonal states. In the next lesson, quantum gates become rotations of this sphere. The picture is exact for one qubit and only one qubit: two qubits already live in a four-dimensional space with no such tidy visualization.
Take the plus state
so . The Born rule gives : measuring in the computational basis yields and with equal 50/50 odds. Now compare the minus state
It also gives 50/50 outcomes in the computational basis, the squared magnitudes are identical. Yet and are different states, distinguished by the relative phase (the minus sign). That phase is invisible to a computational-basis measurement but becomes fully visible if you first rotate into the basis (apply a Hadamard, next lesson) and then measure: one gives with certainty, the other gives . On the Bloch sphere the two sit at opposite ends of the equator ( and ). This is the sharpest lesson of the whole topic: identical measurement probabilities do not imply identical states, phase is real physics that classical probability has no room for.
The most repeated claim about quantum computing is that qubits "explore all possibilities at once," giving free exponential parallelism. It is false, and understanding why is essential.
What is true: the state of qubits is described by complex amplitudes, one per bitstring, so the description grows exponentially. What is false is that you can use them all. A single measurement of qubits returns classical bits, one bitstring, sampled according to the Born rule. You do not receive the amplitudes; you receive one sample and collapse the rest. There is no operation that reads out the exponential table hiding inside the state.
Real quantum speedups do not come from evaluating everything simultaneously and reading off the answer. They come from interference: an algorithm is engineered so that amplitudes for wrong answers cancel and amplitudes for right answers reinforce before you measure. That is a delicate, problem-specific design, and it is proven only for particular problems (Shor's factoring, Grover's quadratic search speedup), not as a blanket "everything at once."
The one-sentence correction
A qubit register holds exponentially many amplitudes, but a measurement hands you a single random bitstring, so the exponential lives in the description of the state, never in what you can extract from it.
For a curious beginner
A qubit is not secretly a 0 or a 1 that we are merely ignorant of. It is a genuine blend, like an arrow leaning between two axes. The instant you look, it snaps to one axis at random, and how far it was leaning sets the odds. After it snaps, the leaning is gone for good.
How it is actually used
Store the state as a length-two complex vector normalized to one. Evolve it with unitary matrices (gates). The only readout available is sampling a basis outcome with probability equal to the squared magnitude of that amplitude, which also collapses the state. You recover statistics, never the raw amplitudes, by running the same circuit for many shots.
The underlying mechanism
A pure state is a unit vector with . Measuring in the computational basis yields outcome with probability (the Born rule) and leaves the post-measurement state . A global phase is unobservable, so physical states are rays, parametrized for one qubit by the Bloch sphere.
Common mistakes