Chapter 02

The Qubit

Take the bit-as-a-vector idea and allow the entries to be complex numbers. That single change — squaring amplitudes instead of reading off probabilities — is the whole of quantum superposition.

↩ before you start · keep these handy
·From Ch. 1: a bit is a 2-slot vector, value 0 is [1,0] and value 1 is [0,1].
·From 0.3: to get a probability you square an amplitude, and the squares add to 1 because the state arrow has length 1.
·From 0.2: a complex number is an arrow that can point any direction; that direction is its phase.
🔑 symbol decoder · every new mark, in plain words
|ψ⟩“ket psi” — a name for the qubit’s state vector. The funny bracket is just notation for “this is a quantum state.” α“alpha” — the amplitude for outcome 0. It can be negative or complex. β“beta” — the amplitude for outcome 1. |0⟩, |1⟩the two basis states — the same axes as e₀, e₁ from Ch. 1, just dressed in ket brackets. e^{iφ}a unit arrow pointing at angle φ — a pure rotation, length 1. Multiplying by it spins an amplitude without resizing it. ⟨ψ|“bra psi” — the row version of the state, with each entry conjugated. A bra times a ket gives a single number. ⟨φ|ψ⟩the overlap of two states — how much one “points along” the other. Zero means perfectly distinguishable.
§1

From probabilities to amplitudes

A probabilistic bit stored two odds that add to one. A qubit stores two amplitudes — and it's their squared sizes that add to one. Amplitudes can be negative or complex, which lets them cancel and reinforce. That's the door probabilities can't open.

Dial a qubit below. Mix tilts it between 0 and 1; phase rotates the second amplitude in the complex plane.

💡 everyday picture

Noise-cancelling headphones play a second sound wave to silence the first. Each wave alone is just as loud — yet line them up out of step and they cancel to quiet, or in step and they roar. The loudness is like a probability (always positive); the timing is like the phase of an amplitude. That a thing with a fixed “size” can still cancel against another is the one trick plain probabilities can never do — and the whole reason amplitudes exist.

▸ livequbit.state
P(0) = |α|²{{ p0pct }}%
P(1) = |β|²{{ p1pct }}%
|ψ⟩ = {{ alphaStr }}{{ betaStr }}
β in the complex plane
recapA qubit holds two amplitudes α and β; squaring their sizes gives the odds, which always add to one.
§2 · the mathematics

The state vector, written |ψ⟩

Physicists write a state vector inside an angle bracket, |ψ⟩ — read "ket psi." The two basis states are the same axes as before, just renamed:

|0⟩ = 10
|1⟩ = 01

A general qubit is a weighted sum — a linear combination — of the two, with complex weights α and β:

|ψ⟩ = α|0⟩ + β|1⟩ = αβ

"Linear combination," "basis," "vector" — yes, this is literally linear algebra over the complex numbers. Quantum mechanics is, to a first approximation, that subject taken seriously.

recap|ψ⟩ = α|0⟩ + β|1⟩ is just a weighted sum of the two basis arrows — linear algebra with complex weights.
§3 · the mathematics

The Born rule & normalization

You never observe α and β. What you observe is a 0 or a 1, with probability equal to the amplitude's squared magnitude — the Born rule:

P(0) = |α|²     P(1) = |β

Since a measurement always returns something, those probabilities sum to one. In vector language that's the statement that |ψ⟩ has length one. We measure length with the inner product ⟨ψ|ψ⟩ — flip the ket into a bra ⟨ψ| (a row, with each entry conjugated) and multiply:

⟨ψ|ψ⟩ = α*β* αβ = |α|² + |β|² = 1
✎ worked example · odds of a concrete qubit
1.take |ψ⟩ = 0.6|0⟩ + 0.8|1⟩, so α = 0.6 and β = 0.8
2.P(0) = |α|² = 0.6² = 0.36  ·  P(1) = |β|² = 0.8² = 0.64
3.check normalization: 0.36 + 0.64 = 1.00 ✓ — a legal state
live check: {{ p0pct }}% + {{ p1pct }}% = {{ normSum }}% (always 100)
recapBorn rule: P = |amplitude|². Demanding the odds sum to 1 is the same as demanding |ψ⟩ have length 1.
§4 · the mathematics

Phase: the part you can't see (yet)

Multiplying the whole state by a unit complex number e^{iγ} changes nothing measurable — every probability is unchanged. This global phase is physically invisible, so we're free to make α real and positive, as the experiment above does.

What does matter is the relative phase φ between α and β — the angle on that little dial. It's invisible to a measurement right now, but Chapter 5 shows how a gate can rotate it into plain view, where it drives interference.

recapGlobal phase is invisible; only the relative phase φ between α and β matters — and it drives interference later.
§5

A gallery of states

Six states show up constantly. The poles |0⟩ and |1⟩ are certain; the other four are perfect 50/50 superpositions that differ only by phase. Tap one to load it into the qubit above.

recapSix landmark states: two certain poles and four equal superpositions that differ only by phase.
§6 · the mathematics

Overlap is an inner product

The inner product also measures how much one state overlaps another. Project your qubit onto |0⟩ and you recover α; onto |1⟩, you recover β. The Born rule is just: probability = squared overlap.

⟨0|ψ⟩ = α = {{ alphaStr }}  →  P(0) = |⟨0|ψ⟩|² = {{ p0pct }}%
⟨1|ψ⟩ = β = {{ betaStr }}  →  P(1) = |⟨1|ψ⟩|² = {{ p1pct }}%

Two states with zero overlap are orthogonal — perfectly distinguishable, like |0⟩ and |1⟩. That single idea, orthogonality = distinguishability, quietly runs every measurement and every gate ahead.

recapOverlap is an inner product; probability = squared overlap, and zero overlap means perfectly distinguishable.
⚠ common misconceptions

“The amplitude is the probability.” No — you must square it. An amplitude of 0.8 means a 64% chance, not 80%, because 0.8² = 0.64.

“A qubit is secretly already 0 or 1, we just don’t know which.” That is plain ignorance — a coin under a cup. A superposition is different: its amplitudes carry signs that can cancel, and Chapter 3 shows the answer can even depend on which question you ask. There is no hidden value waiting.

“Superposition means the qubit is in two places / doing two things at once.” Gentler and truer: it is in one definite state that happens to be a blend of |0⟩ and |1⟩. You only ever read a single 0 or 1; the blend lives in the amplitudes, not in the result.

✓ you can now
write any qubit as α|0⟩ + β|1⟩ and read off its odds with the Born rule
explain “normalization” as the state arrow having length one
tell global phase (invisible) from relative phase (decisive), and compute an overlap
← 01 The Bit next · 03 Measurement