Quantum
Module 2 · The Qubit · Lesson 2

The Bloch sphere

Every single-qubit state, in one picture. Drag it, and watch the math catch up.

12 min read · Lesson 5 of 32

The Bloch sphere is the most useful picture in all of quantum computing. Every possible state of a single qubit — every superposition, every phase, every weird mix — corresponds to exactly one point on its surface. One-to-one. No exceptions.

This lesson is mostly a playground. Drag the sliders, jump between named states, watch the state vector and the amplitude clocks update together. Your job is to build a physical intuition for what a qubit is.

Anatomy of the sphere

The Bloch sphere is a unit sphere (radius 11) centered at the origin, with three landmarks:

Six states have special names because they keep showing up:

StateNameθ\thetaφ\varphi
0\|0\ranglecomputational zero00
1\|1\ranglecomputational oneπ\pi
+\|+\rangleplusπ/2\pi/200
\|-\rangleminusπ/2\pi/2π\pi
+i\|+i\rangleplus-iiπ/2\pi/2π/2\pi/2
i\|-i\rangleminus-iiπ/2\pi/23π/23\pi/2

Click the state buttons in the explorer above to jump between them. Watch how the state vector in the top-right display changes. In particular, notice what happens to the phase of the amplitudes — the little clock hands — as you move around the equator while keeping θ=π/2\theta = \pi/2 fixed. That’s the phase φ\varphi doing its work.

The formula

The two angles θ\theta and φ\varphi map to the qubit state via:

ψ=cos ⁣θ20+eiφsin ⁣θ21|\psi\rangle = \cos\!\frac{\theta}{2}\,|0\rangle + e^{i\varphi}\sin\!\frac{\theta}{2}\,|1\rangle

Don’t panic. You don’t need to memorize this. Just notice two things:

  1. When θ=0\theta = 0: cos(0)=1\cos(0) = 1, sin(0)=0\sin(0) = 0, so ψ=0|\psi\rangle = |0\rangle. ✓
  2. When θ=π\theta = \pi: cos(π/2)=0\cos(\pi/2) = 0, sin(π/2)=1\sin(\pi/2) = 1, so ψ=eiφ1|\psi\rangle = e^{i\varphi}|1\rangle. The phase out front is a global phase — it doesn’t change anything you can measure, so we usually drop it and just write 1|1\rangle. ✓

The half-angle θ/2\theta/2 in the formula is there because of a geometric quirk: two qubit states that are “opposite” on the Bloch sphere (like 0|0\rangle and 1|1\rangle, at angle π\pi on the sphere) need to be fully orthogonal as quantum states (angle π/2\pi/2 in state space). Halving θ\theta makes the math work out.

Quick check
Where on the Bloch sphere do you find |+⟩?
Quick check
What makes |+⟩ different from |−⟩?

Global vs relative phase — the subtle bit

Two qubit states that differ only by an overall complex factor like eiφe^{i\varphi} are physically the same state. You can’t tell them apart by any measurement. That’s called a global phase, and we throw it away.

But the relative phase between the 0|0\rangle and 1|1\rangle components — the eiφe^{i\varphi} in the formula above — is real and matters. It’s what makes +|+\rangle and |-\rangle different. It’s what makes quantum interference possible. We’ll see it in action when we meet the Hadamard gate.

The takeaway

Every single-qubit state is a point on the Bloch sphere. Two angles, θ\theta and φ\varphi, are enough to describe any of them. The picture is literal: if two states live at the same point on the sphere, they’re the same state.

Next up: what actually happens when you look at a qubit.