← SciSim / Physics

Bloch Sphere & Qubits

Quantum Computing #65
Section 01
Interactive Simulation
Bloch Sphere & Qubits — SciSim
Ready
θ (polar)
0.0°
φ (azimuth)
0.0°
⟨X⟩
0.000
⟨Y⟩
0.000
⟨Z⟩
1.000
P(|0⟩)
100%
Controls
Apply Gate
Parameters
θ (polar)0 °
φ (azimuth)0 °
Gate angle90 °
Rabi Ω2.0 MHz
Speed1.0 ×
Display
Section 02
The Idea, Step by Step

A light switch is either ON or OFF — that is an ordinary bit, the kind your laptop uses, always one of two values. A qubit is stranger and more generous. Picture instead a tiny arrow that can point anywhere on the surface of a globe. Straight up means "0", straight down means "1", and every direction in between is a genuine in-between state called a superposition. The globe is the Bloch sphere, and the arrow's direction is the qubit.

Where the angles come in

To name a direction on a globe you need two numbers, just like latitude and longitude. Here they are the polar angle $\theta$ (how far the arrow has tipped down from the north pole) and the azimuth $\varphi$ (how far it has swung around the equator). The north pole ($\theta=0$) is the state $|0\rangle$; the south pole ($\theta=180^\circ$) is $|1\rangle$; anywhere on the equator is a half-and-half mix. The compact rule that ties the geometry to the quantum state is

The qubit as a point on the sphere
$$|\psi\rangle = \cos\tfrac{\theta}{2}\,|0\rangle + e^{i\varphi}\sin\tfrac{\theta}{2}\,|1\rangle$$

The reason for the half-angle is worth a worked number. If you tip the arrow to the equator, $\theta=90^\circ$, then the chance of reading "0" when you measure is $\cos^2(\theta/2)=\cos^2(45^\circ)=0.5$ — a perfect coin flip. Tip it only to $\theta=60^\circ$ and the odds shift to $\cos^2(30^\circ)\approx 0.75$, a 75 / 25 split. The arrow's height sets the probabilities; its swing around the equator ($\varphi$) sets the relative quantum phase, which you cannot see in a single measurement but which controls how amplitudes interfere later.

Gates just rotate the arrow

Everything a single qubit can "compute" is a rotation of this arrow. The Born rule $P(0)=\cos^2(\theta/2)$, $P(1)=\sin^2(\theta/2)$ reads off the probabilities; a gate like $X$ spins the arrow $180^\circ$ about the $x$-axis (it flips $|0\rangle\leftrightarrow|1\rangle$), while the Hadamard $H$ tips a pole onto the equator and builds a superposition. In the panel above, the $\theta$ and $\varphi$ sliders aim the arrow, the gate buttons rotate it along the glowing trail, and the readouts show $\langle X\rangle,\langle Y\rangle,\langle Z\rangle$ — the arrow's three shadows.

Try this in the sim above: (1) Drag $\theta$ to $90^\circ$ and watch $P(|0\rangle)$ settle at 50% — the equator is the fair-coin state. (2) Reset to $|0\rangle$, then click $H$ and see the arrow swing onto the $+x$ axis, the $|+\rangle$ state. (3) Switch to Rabi mode and raise $\Omega$: the arrow circles the $y$–$z$ plane and $\langle Z\rangle$ traces a $\cos(\Omega t)$ wave — a qubit being driven between 0 and 1.

Section 03
Equations & Derivation

A qubit is the quantum analogue of a classical bit. Where a classical bit is in one of two definite states (0 or 1), a qubit lives in any complex superposition of two basis states $|0\rangle$ and $|1\rangle$. The Bloch sphere is a geometric representation that maps every pure single-qubit state to a unique point on the surface of a unit sphere — a remarkably faithful translation of complex algebra into 3-D geometry.

1. The General Pure State

An arbitrary pure single-qubit state can be written:

$$|\psi\rangle = \alpha|0\rangle + \beta|1\rangle, \quad |\alpha|^2 + |\beta|^2 = 1$$

Two complex numbers ($\alpha$, $\beta$) give 4 real parameters, but normalisation removes 1 and the global phase is unobservable, removing another. So the physical state space has 2 real parameters — exactly the dimensionality of a sphere.

2. Polar Form on the Bloch Sphere

Up to a global phase, every pure state can be written:

Bloch Sphere Parametrisation
$$|\psi\rangle = \cos\!\frac{\theta}{2}|0\rangle + e^{i\varphi}\sin\!\frac{\theta}{2}|1\rangle$$

where $\theta \in [0,\pi]$ is the polar angle from the $+\hat z$ axis and $\varphi \in [0,2\pi)$ is the azimuth in the $xy$-plane. The point on the sphere is:

$$\vec r = (\sin\theta\cos\varphi,\; \sin\theta\sin\varphi,\; \cos\theta)$$

Special points:

3. Pauli Operators & Expectation Values

The three Pauli matrices are:

$$\sigma_x = \begin{pmatrix}0 & 1 \\ 1 & 0\end{pmatrix},\;\; \sigma_y = \begin{pmatrix}0 & -i \\ i & 0\end{pmatrix},\;\; \sigma_z = \begin{pmatrix}1 & 0 \\ 0 & -1\end{pmatrix}$$

The Bloch vector components are precisely the expectation values:

$$r_x = \langle\psi|\sigma_x|\psi\rangle, \quad r_y = \langle\sigma_y\rangle, \quad r_z = \langle\sigma_z\rangle$$

For a pure state, $|\vec r| = 1$. For a mixed state (statistical mixture), $|\vec r| < 1$ and the state lives inside the Bloch ball, with the centre representing the maximally mixed state $\rho = I/2$.

4. Single-Qubit Gates as Rotations

Every unitary operation on a single qubit corresponds to a rotation of the Bloch sphere. The Pauli gates are 180° rotations:

GateMatrixBloch Action
X (NOT)$\sigma_x$180° about $\hat x$ axis
Y$\sigma_y$180° about $\hat y$ axis
Z$\sigma_z$180° about $\hat z$ axis
H (Hadamard)$\frac{1}{\sqrt 2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}$180° about $(\hat x + \hat z)/\sqrt 2$
Sdiag$(1, i)$90° about $\hat z$
Tdiag$(1, e^{i\pi/4})$45° about $\hat z$
$R_n(\alpha)$$\exp(-i\alpha\hat n\cdot\vec\sigma/2)$$\alpha$ about axis $\hat n$

5. Rabi Oscillations

A driven qubit (e.g., near-resonant microwave on a transmon) Hamiltonian is:

$$H_{\text{drive}} = \frac{\hbar\Omega}{2}\sigma_x$$

Solving Schrödinger's equation gives:

Rabi Oscillations
$$P(|1\rangle, t) = \sin^2\!\left(\frac{\Omega t}{2}\right)$$

The qubit oscillates between $|0\rangle$ and $|1\rangle$ at frequency $\Omega/(2\pi)$. A pulse of duration $t = \pi/\Omega$ flips the qubit (a $\pi$-pulse, equivalent to an $X$ gate); a $\pi/2$-pulse creates an equal superposition.

6. Measurement Collapse

Measuring $\sigma_z$ on $|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$ gives:

$$P(0) = |\alpha|^2 = \cos^2(\theta/2), \qquad P(1) = |\beta|^2 = \sin^2(\theta/2)$$

After measurement, the state collapses to whichever eigenstate was observed. Repeated measurements on a Bloch state $\vec r$ along axis $\hat n$ give expectation $\langle \hat n\cdot\vec\sigma\rangle = \hat n\cdot\vec r$.

7. Two-Qubit Bell States

The Bell circuit applies Hadamard to the first qubit, then CNOT (control = first):

Bell State $|\Phi^+\rangle$
$$|\Phi^+\rangle = \frac{1}{\sqrt 2}(|00\rangle + |11\rangle)$$

This is maximally entangled: tracing out either qubit leaves the other in the maximally mixed state $I/2$ (centre of the Bloch ball). Local single-qubit Bloch sphere descriptions cannot capture entanglement — that's why we need full density matrices for many-qubit systems.

Symbol Table

SymbolMeaningNotes
$|\psi\rangle$State vectorComplex 2-vector
$\theta, \varphi$Bloch sphere anglesθ ∈ [0,π], φ ∈ [0,2π)
$\sigma_{x,y,z}$Pauli operators$\sigma_i^2 = I$
$\vec r$Bloch vector$|\vec r| \le 1$
$\Omega$Rabi frequencyrad/s
$T_1, T_2$Relaxation, dephasing timess (typ. μs–ms)
$U$Single-qubit gate2×2 unitary

Mapping to the simulation

Sliders θ, φ set the initial point on the Bloch sphere. Click any gate (X, Y, Z, H, S, T, Rx, Ry, Rz) to apply it as a smooth rotation — the trail shows the geodesic path. Rabi mode applies a continuous $X$-axis drive at angular frequency Ω; you'll see ⟨Z⟩ oscillate as $\cos(\Omega t)$. Measurement mode samples 100 measurements and shows the empirical fraction converging on $|\alpha|^2$ and $|\beta|^2$. Bell mode shows that two qubits prepared as $|\Phi^+\rangle$ have a maximally mixed reduced state on each individual Bloch sphere.

Reference: Nielsen & Chuang — Quantum Computation and Quantum Information, 10th Anniversary Ed., Cambridge 2010, Ch. 1-4; Mermin — Quantum Computer Science, Cambridge 2007, Ch. 1-3; Aaronson — Quantum Computing Since Democritus, Cambridge 2013, Ch. 9.
Section 04
Frequently Asked Questions
Bloch Sphere mode shows a 3D wireframe sphere with the qubit's state as a glowing arrow from origin to the Bloch vector. The +Z pole is |0⟩, −Z is |1⟩, ±X are |±⟩, ±Y are |±i⟩. As you click gates, the arrow rotates smoothly along the geodesic axis the gate corresponds to. Gates Visual mode shows the rotation axis and angle for each gate. Rabi mode applies a continuous σ_x drive — watch ⟨Z⟩ oscillate as cos(Ωt). Measurement mode performs 100 σ_z measurements and shows the histogram converging on the theoretical |α|²:|β|² ratio. Bell mode shows two qubits in |Φ⁺⟩ — each individual Bloch vector collapses to the origin (maximally mixed) because of entanglement.
Every quantum-computing platform uses it. IBM Q, Google's Sycamore, Rigetti, IonQ — all visualise transmon, superconducting, or trapped-ion qubits on Bloch spheres in their developer SDKs. NMR spectroscopists have used it since the 1940s (under different names) to design pulse sequences. MRI uses Bloch equations (semi-classical generalisations) to model spin dynamics. In quantum cryptography (BB84), Alice's chosen polarisation maps to Bloch sphere axes; in quantum sensing, the precession of a Bloch vector tracks tiny external fields with extreme precision.
Because qubits are spin-1/2 systems and a 360° rotation about any axis multiplies the spinor by −1, not +1. Only after 720° does the state return to itself. The 'half-angle' θ/2 is exactly what makes the SU(2) double-covering of SO(3) work: opposite points on the Bloch sphere (antipodes) correspond to orthogonal states, even though they're separated by only 180° geometrically. This is one of the deepest topological features of quantum mechanics.
It creates equal superpositions: H|0⟩ = (|0⟩+|1⟩)/√2 = |+⟩, H|1⟩ = |−⟩. Geometrically, it's a 180° rotation about the axis (x̂+ẑ)/√2 — it swaps the X and Z axes of the Bloch sphere. Almost every quantum algorithm starts by applying H to all qubits to create a uniform superposition over all 2ⁿ basis states. Without H (or some superposition-creator), quantum computing offers no advantage over classical.
Before measurement, the Bloch vector is at some general direction r̂. A σ_z measurement asks 'are you ±ẑ?' The answer is probabilistic: P(+ẑ) = (1+r_z)/2 = cos²(θ/2). After the measurement reads +, the state has collapsed to |0⟩ (the +ẑ pole); after −, to |1⟩. The Bloch vector instantaneously snaps to the measurement axis. This is non-unitary 'projection' — the only place where standard QM departs from smooth Schrödinger evolution. The interpretation of measurement collapse remains the most contested issue in QM foundations.
Mixed states live inside the Bloch ball — only pure states are on the surface. The maximally mixed state ρ = I/2 (a 50/50 statistical mixture of |0⟩ and |1⟩) sits at the origin. Any state with |r| < 1 is mixed — the radius |r| is the 'purity'. This means the Bloch ball (full 3D ball, not just the surface) is the complete state space of a single qubit. Decoherence drives r toward zero: longer times → smaller |r|.
Because entangled states have no single-qubit description. The Bloch sphere encodes ALL information about a single qubit. For an entangled pair, the individual qubits look maximally mixed (|r|=0, centre of ball), but they have correlations that the individual Bloch spheres cannot show. Two qubits need a 4-dimensional state space (15-parameter density matrix), which is why dedicated 2-qubit visualisations like the 'magic simplex' or correlation tensors are used. The Bloch sphere is fundamentally a 1-qubit tool.
Resources: Qiskit Textbook (qiskit.org/textbook); Microsoft Quantum Development Kit; IBM Quantum Composer; MIT OpenCourseWare 8.370 'Quantum Computation'; Nielsen, M. — Quantum Computing for the Determined video series.
Section 05
Common Misconceptions
❌ Misconception: 'A qubit can be 0 AND 1 at the same time.'
✅ Correction: Common pop-sci shorthand, but technically misleading. A qubit in superposition α|0⟩+β|1⟩ is in a single, well-defined quantum state — distinct from both |0⟩ and |1⟩. It does NOT mean the qubit is simultaneously running two computations. Upon measurement, you get one outcome with probability |α|² or |β|². The power of quantum computing comes from interference between amplitudes, not from 'parallel computation'. The Bloch sphere makes this clear: there's exactly one point representing the state at any moment.
📖 Reference: Aaronson — Quantum Computing Since Democritus, Cambridge 2013, Ch. 9; Nielsen & Chuang — QC&QI, 10th Anniversary Ed., §1.1.2
❌ Misconception: 'A 360° rotation returns a qubit to its original state.'
✅ Correction: Mathematically false. A 360° rotation about any axis multiplies the qubit's state vector by −1 (a global sign), not by +1. Although physically unobservable for a single qubit (the global phase doesn't affect probabilities), this −1 IS observable in interferometric experiments where the rotated qubit is recombined with an unrotated reference — the famous 'spinor minus sign'. Verified experimentally with neutron interferometry by Werner et al. (1975).
📖 Reference: Sakurai & Napolitano — Modern Quantum Mechanics, 2nd Ed., §3.2 'Spin-1/2 Systems'
❌ Misconception: 'The Bloch sphere is just a visualisation — it has no physics in it.'
✅ Correction: Wrong. The Bloch sphere is the EXACT state space of a 2-level quantum system (up to global phase). The mapping is one-to-one and onto — there's no information lost. Bloch vectors transform under SO(3) rotations corresponding to SU(2) gates; expectation values are linear in r; coherent dynamics are smooth motion on the sphere. It's not a metaphor; it's mathematically a complete description of single-qubit physics.
📖 Reference: Bengtsson & Życzkowski — Geometry of Quantum States, 2nd Ed., Cambridge, Ch. 4
❌ Misconception: 'Quantum gates are mostly probabilistic.'
✅ Correction: Quantum gates are deterministic and reversible unitary operations. Apply gate U, the state goes from |ψ⟩ to U|ψ⟩ — exactly, no randomness. The probabilistic part is ONLY measurement (the projection onto a basis). This is why quantum computing is sometimes called 'reversible computation with a measurement gadget'. Confusing gate randomness with measurement randomness leads to incorrect circuit reasoning.
📖 Reference: Nielsen & Chuang — Quantum Computation and Quantum Information, §4.2 'Single qubit operations'
❌ Misconception: 'Entanglement means qubits send signals faster than light.'
✅ Correction: Bell-correlated qubits show 'spooky' correlations when measured in matched bases, but no usable signal can be transmitted via entanglement alone. The marginal probabilities for either qubit's measurement are independent of what's done at the other side — only the joint statistics show the correlation. This is the 'no-signalling theorem'. Quantum teleportation transmits a state but requires 2 classical bits sent at sub-luminal speed alongside.
📖 Reference: Bell, J. S. — 'On the Einstein Podolsky Rosen paradox', Physics 1, 195 (1964); Peres & Terno — Rev. Mod. Phys. 76, 93 (2004)
❌ Misconception: 'A measurement always reads either 0 or 1, so it's not really quantum.'
✅ Correction: The OUTCOMES are classical (binary), but the PROBABILITIES are determined by the quantum state via the Born rule P=|α|² or |β|². Repeating the experiment with identical preparation and identical measurement axes yields binary outcomes, but the FREQUENCY converges to the quantum-predicted probabilities. Furthermore, the same qubit measured in different bases gives different statistics — incompatible measurements can't be simultaneously definite, which is purely quantum (Kochen-Specker theorem).
📖 Reference: Mermin, N. D. — Quantum Computer Science, Cambridge 2007, Ch. 1; Kochen & Specker — J. Math. Mech. 17, 59 (1967)
Misconception research: Marshman, E. & Singh, C. — 'Investigating and improving student understanding of quantum mechanical observables', Phys. Rev. PER 13, 010117 (2017); Krijtenburg-Lewerissa et al. — 'Insights into teaching quantum mechanics in secondary and lower undergraduate education', Phys. Rev. PER 13, 010109 (2017); Bengtsson & Życzkowski — Geometry of Quantum States, 2nd Ed., Cambridge, 2017.