Quantum states & measurement

The qubit and superposition

Prepare a single qubit, read its amplitudes, and map it onto a sphere.

16 minFoundations

Intuition

A qubit is a quantum system with a two-dimensional state space. Its basis states |0⟩ and |1⟩ define one way to prepare and measure it. A pure qubit can be written as a coherent linear combination of those states.

The same two measurement probabilities can describe several different pure states. For example, |+⟩ and |−⟩ are both evenly distributed in the computational basis, but a Hadamard sends them to different basis states.

Learning objectives

  • Identify the computational basis
  • Prepare a superposition
  • Connect polar angle to measurement

Interactive exploration

Use the controls to change the state and see its calculated readout. You can return to this experiment as you work through the derivation.

State geometry

Drag or use arrow keys
+x+y|0⟩|1⟩|ψ⟩

Qubit controls

|ψ⟩
60°
35°
90°
|ψ⟩ = (0.866)|0⟩ + (0.410 + 0.287i)|1⟩
P(0)75%
P(1)25%

Mathematical foundation

Up to a common phase, a pure qubit can be written with θ between 0 and π and azimuth φ modulo 2π.

∣ψ⟩=cos⁡(θ/2)∣0⟩+eiϕsin⁡(θ/2)∣1⟩|\psi\rangle=\cos(\theta/2)|0\rangle+e^{i\phi}\sin(\theta/2)|1\rangle

The Bloch vector has three real coordinates. The poles correspond to |0⟩ and |1⟩, and the equator has equal computational-basis probabilities.

r⃗=(sin⁡θcos⁡ϕ,sin⁡θsin⁡ϕ,cos⁡θ)\vec r=(\sin\theta\cos\phi,\sin\theta\sin\phi,\cos\theta)

Worked example

At θ = π/3, the half-angle is π/6, so the probabilities are 3/4 and 1/4. Rotating φ at fixed θ changes the relative phase while keeping these two probabilities fixed.

P(0)=cos⁡2(π/6)=3/4,P(1)=1/4P(0)=\cos^2(\pi/6)=3/4,\qquad P(1)=1/4

Guided experiment

Return to |0⟩ and apply H. Then apply Z. Compare the vector and computational-basis probabilities for both states.

Go to the controls
Compare with the expected result

The vector crosses from +x to −x while the computational probabilities stay equal.

Understanding check

Circuit challenge

Prepare |+⟩ from |0⟩. Any circuit that creates the target state up to global phase is accepted.

    BasisAmplitudeProbability
    |0⟩1.000100%
    |1⟩0.0000%
    1. At θ = 60°, what is P(1)?
    2. Which parameter separates |+⟩ and |−⟩ on the equator?

    Next steps

    Want to keep your results? Start your learning journey

    Open Bloch Sphere