beginner · Programming · The Qubit State Vector & Dirac Notation
Checkpoint: Describe Any Single Qubit
Throughout this module you have built three separate tools: writing states as kets, converting
between kets and column vectors, computing inner products, and reading off measurement probabilities
via the Born rule. A checkpoint lesson asks you to use all of them in a single coherent task —
fully specifying a one-qubit state and then building it.
What "fully specifying" a single qubit means
A general single-qubit state is any normalized complex superposition:
∣ψ⟩=α∣0⟩+β∣1⟩,α,β∈C,∣α∣2+∣β∣2=1.
"Fully specifying" means giving both amplitudes in a form from which you can:
Read off measurement probabilities — P(0)=∣α∣2 and P(1)=∣β∣2 by the Born rule.
Write the column vector — stack α on top of β.
Identify the state on the Bloch sphere — every pure state sits on the unit sphere parameterized by two real angles θ∈[0,π] and ϕ∈[0,2π):
∣ψ⟩=cos2θ∣0⟩+eiϕsin2θ∣1⟩.
Prepare it in a circuit — the rotation gates Ry(θ) and Rz(ϕ) realize exactly this parameterization.
Working a concrete example
Consider the state
∣ψ⟩=23∣0⟩+21∣1⟩.
Step 1 — check normalization.
232+212=43+41=1.✓
Step 2 — read probabilities.
P(0)=43,P(1)=41.
Step 3 — locate on the Bloch sphere.
Matching to the standard form cos(θ/2)∣0⟩+eiϕsin(θ/2)∣1⟩ with a real, positive amplitude on ∣1⟩ (so ϕ=0):
cos2θ=23⟹2θ=6π⟹θ=3π.
The state is at polar angle θ=π/3 on the Bloch sphere, between the north pole ∣0⟩ (θ=0) and the equator ∣+⟩ (θ=π/2).
Step 4 — build it with a gate.
The Y-rotation gate acts on ∣0⟩ as
Ry(θ)∣0⟩=cos2θ∣0⟩+sin2θ∣1⟩,
so Ry(π/3) applied to the default state ∣0⟩ produces exactly ∣ψ⟩.
Try it
Use the four steps above to prepare the state ∣ψ⟩=23∣0⟩+21∣1⟩ in a one-qubit circuit. The grader checks the full state vector, so returning an unmodified circuit will not pass.
Run your code to see the quantum state.
After running, the State Vector panel should show amplitudes of approximately 0.866 for ∣0⟩ and 0.500 for ∣1⟩, matching 23≈0.866 and 21=0.500.
Sign in on the full site to ask questions and join the discussion.