Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Open In Colab Binder

Part 1: Theoretical Background

Pure States and the Bloch Sphere

Every pure qubit state (after the global phase is removed) can be written as

∣ψ(θ,ϕ)⟩=cos⁡θ2∣0⟩+eiϕsin⁡θ2∣1⟩,θ∈[0,π],  ϕ∈[0,2π)|\psi(\theta,\phi)\rangle = \cos\tfrac{\theta}{2}|0\rangle + e^{i\phi}\sin\tfrac{\theta}{2}|1\rangle, \quad \theta\in[0,\pi],\;\phi\in[0,2\pi)

The corresponding Bloch vector is defined as the expectation values of the three Pauli operators:

n=(⟨σx⟩,  ⟨σy⟩,  ⟨σz⟩)\boldsymbol{n} = \bigl(\langle\sigma_x\rangle,\;\langle\sigma_y\rangle,\;\langle\sigma_z\rangle\bigr)

Detailed Computation: Deriving ⟨σj⟩\langle\sigma_j\rangle

Denote the components of ∣ψ⟩|\psi\rangle by α=cos⁡θ2\alpha = \cos\tfrac{\theta}{2} (a real number) and β=eiϕsin⁡θ2\beta = e^{i\phi}\sin\tfrac{\theta}{2}, that is,

∣ψ⟩=(αβ)|\psi\rangle = \begin{pmatrix}\alpha \\ \beta\end{pmatrix}

Step 1. Compute ⟨σz⟩\langle\sigma_z\rangle

⟨σz⟩=⟨ψ∣σz∣ψ⟩=(αβˉ)(100−1)(αβ)=∣α∣2−∣β∣2\langle\sigma_z\rangle = \langle\psi|\sigma_z|\psi\rangle = \begin{pmatrix}\alpha & \bar\beta\end{pmatrix} \begin{pmatrix}1&0\\0&-1\end{pmatrix} \begin{pmatrix}\alpha\\\beta\end{pmatrix} = |\alpha|^2 - |\beta|^2

Substituting α=cos⁡θ2\alpha = \cos\tfrac{\theta}{2} and ∣β∣2=sin⁡2θ2|\beta|^2 = \sin^2\tfrac{\theta}{2}:

⟨σz⟩=cos⁡2θ2−sin⁡2θ2=cos⁡θ\langle\sigma_z\rangle = \cos^2\tfrac{\theta}{2} - \sin^2\tfrac{\theta}{2} = \cos\theta

Step 2. Compute ⟨σx⟩\langle\sigma_x\rangle

⟨σx⟩=⟨ψ∣σx∣ψ⟩=αˉβ+αβˉ=2 Re(αˉβ)\langle\sigma_x\rangle = \langle\psi|\sigma_x|\psi\rangle = \bar\alpha\beta + \alpha\bar\beta = 2\,\mathrm{Re}(\bar\alpha\beta)

Substituting αˉ=cos⁡θ2\bar\alpha = \cos\tfrac{\theta}{2} and β=eiϕsin⁡θ2\beta = e^{i\phi}\sin\tfrac{\theta}{2}:

⟨σx⟩=2cos⁡θ2sin⁡θ2cos⁡ϕ=sin⁡θcos⁡ϕ\langle\sigma_x\rangle = 2\cos\tfrac{\theta}{2}\sin\tfrac{\theta}{2}\cos\phi = \sin\theta\cos\phi

Step 3. Compute ⟨σy⟩\langle\sigma_y\rangle

⟨σy⟩=⟨ψ∣σy∣ψ⟩=αˉ(−iβ)+α(iβˉ)=2 Im(αˉβ)\langle\sigma_y\rangle = \langle\psi|\sigma_y|\psi\rangle = \bar\alpha(-i\beta) + \alpha(i\bar\beta) = 2\,\mathrm{Im}(\bar\alpha\beta)

Substituting as above:

⟨σy⟩=2cos⁡θ2sin⁡θ2sin⁡ϕ=sin⁡θsin⁡ϕ\langle\sigma_y\rangle = 2\cos\tfrac{\theta}{2}\sin\tfrac{\theta}{2}\sin\phi = \sin\theta\sin\phi

Step 4. Summary of the results

n=(sin⁡θcos⁡ϕ,  sin⁡θsin⁡ϕ,  cos⁡θ)\boxed{\boldsymbol{n} = (\sin\theta\cos\phi,\;\sin\theta\sin\phi,\;\cos\theta)}

This vector satisfies ∣n∣2=sin⁡2θ(cos⁡2ϕ+sin⁡2ϕ)+cos⁡2θ=1|\boldsymbol{n}|^2 = \sin^2\theta(\cos^2\phi+\sin^2\phi)+\cos^2\theta = 1; that is, n\boldsymbol{n} lies on the unit sphere.

Computing the Uncertainties, and a Conserved Quantity

Since σj2=I\sigma_j^2 = \mathbf{I}, we have ⟨σj2⟩=1\langle\sigma_j^2\rangle = 1 for every state, and therefore

(Δσj)2=⟨σj2⟩−⟨σj⟩2=1−⟨σj⟩2(\Delta\sigma_j)^2 = \langle\sigma_j^2\rangle - \langle\sigma_j\rangle^2 = 1 - \langle\sigma_j\rangle^2
Δσj=1−⟨σj⟩2=1−nj2\Delta\sigma_j = \sqrt{1 - \langle\sigma_j\rangle^2} = \sqrt{1 - n_j^2}

Geometric meaning: Δσj\Delta\sigma_j equals the perpendicular distance from the Bloch point to the jj-th coordinate axis.

Derivation of the conserved quantity.

∑j∈{x,y,z}(Δσj)2=∑j(1−nj2)=3−∣n∣2=3−1=2\sum_{j\in\{x,y,z\}} (\Delta\sigma_j)^2 = \sum_j (1 - n_j^2) = 3 - |\boldsymbol{n}|^2 = 3 - 1 = 2
Δσx2+Δσy2+Δσz2=2\boxed{\Delta\sigma_x^2 + \Delta\sigma_y^2 + \Delta\sigma_z^2 = 2}

This is a purely geometric fact: for a point on the surface of the Bloch sphere, the sum of the squared distances to the three coordinate axes always equals 2, regardless of the choice of (θ,ϕ)(\theta,\phi). Quantum gates (unitary transformations) move the Bloch point on the sphere but do not change this conserved quantity.

The Geometric Meaning of Quantum Gates (Connection with §9.2.3)

Quantum gateMatrixGeometric action on the Bloch sphere
H (Hadamard)12(111−1)\frac{1}{\sqrt{2}}\begin{pmatrix}1&1\\1&-1\end{pmatrix}Rotation by 180° about the bisector of the xx- and zz-axes; swaps x↔zx\leftrightarrow z
S (phase gate)(100i)\begin{pmatrix}1&0\\0&i\end{pmatrix}Rotation by 90° about the zz-axis
T (π/8\pi/8 gate)(100eiπ/4)\begin{pmatrix}1&0\\0&e^{i\pi/4}\end{pmatrix}Rotation by 45° about the zz-axis
X (Pauli-X)(0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}Rotation by 180° about the xx-axis (bit flip)
Y (Pauli-Y)(0−ii0)\begin{pmatrix}0&-i\\i&0\end{pmatrix}Rotation by 180° about the yy-axis
Z (Pauli-Z)(100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix}Rotation by 180° about the zz-axis (phase flip)

Applying a 2×2 unitary matrix U\mathbf{U} to a state ∣ψ⟩|\psi\rangle (∣ψ′⟩=U∣ψ⟩|\psi'\rangle = \mathbf{U}|\psi\rangle) is equivalent to applying an SO(3) rotation to the Bloch vector n\boldsymbol{n}: it does not change the radius of the sphere (a pure state remains a pure state), but it changes (θ,ϕ)(\theta, \phi).

The Controls

Loading...

Part 2: Observation and Reflection

On the Geometry of the Bloch Sphere:

  • Set θ\theta to 0° or 180°. Which operator has zero uncertainty? What is the lower bound in the Robertson-Schrödinger inequality in this case?

  • Find the position at which the three uncertainties are exactly equal, and confirm the value of the conserved quantity ∑Δσj2=2\sum\Delta\sigma_j^2 = 2.

  • Starting from ∣0⟩|0\rangle, keep clicking the H gate. Between which two positions does the Bloch point go back and forth? Why?

On the Geometric Action of Quantum Gates:

  • Starting from ∣0⟩|0\rangle (the north pole), click H → S → H in order. What is the final state? What about applying H → S → H once more? How is this related to clicking X directly? (Hint: on the Bloch sphere, HSHHSH is a 90° rotation about the xx-axis; applying it twice gives HS2H=HZH=XHS^2H = HZH = X, an important identity in quantum computation.)

  • Starting from ∣+⟩|{+}\rangle (the xx-axis on the equator), click S and T separately and observe the change in the azimuthal angle ϕ\phi. By how many degrees do the S gate and the T gate rotate, respectively?

  • Click the X gate. What transformation does the Bloch point undergo? How is this related to its name, “bit-flip gate”?

On the Uncertainty Principle:

  • Find a state for which equality holds in the Robertson-Schrödinger inequality Δσx⋅Δσy=∣⟨σz⟩∣\Delta\sigma_x\cdot\Delta\sigma_y = |\langle\sigma_z\rangle|. How many such states are there? How are they distributed on the Bloch sphere?

  • Quantum gates keep the radius of the Bloch sphere equal to 1 (unitary evolution does not change the purity). What does this mean physically?