k›ketwise.
FUNDAMENTALS / 06 / SUPERPOSITION

Superposition and phase

Recognize why equal probabilities do not imply identical states.

Intuition

|+⟩ and |−⟩ give the same 50/50 computational-basis probabilities. Their relative phase differs, and a later gate can turn that difference into different outcomes.

Prepare |+⟩ with H, then change its relative sign with Z. Try another H: H|+⟩ is |0⟩, while H|−⟩ is |1⟩. Interference makes phase observable through a suitable experiment.

The mathematics

∣±⟩=∣0⟩±∣1⟩2,H∣−⟩=∣1⟩|\pm\rangle=\frac{|0\rangle\pm|1\rangle}{\sqrt2},\quad H|-\rangle=|1\rangle
Look a little deeper

On the Bloch sphere these two states lie at opposite points on the x axis. Global phase rotates every amplitude equally and has no observable effect; relative phase changes their relationship.

See a single qubit

After amplitudes and phase, the Bloch sphere gives us a geometric picture. The poles are |0⟩ and |1⟩. Equatorial pure states have equal computational-basis probabilities.

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

Drag horizontally to change φ; vertically to change θ. Keyboard-accessible sliders give the same controls. Results below come from the server; the probability control sets the desired state.

Computing state…

Use it

Prepare |−⟩ in at most two gates using H, X, or Z. Inspect phase in Statevector and Bloch.

This exercise uses the same server-side state and circuit checks as its linked practice problem.

Build your circuit

Click a gate to append it, or drag it onto a wire. CX uses the selected control; SWAP uses it as the second operand. Basis order: |qₙ … q₀⟩.

q0

Returned logical circuit · before transpilation · q0 on top

0 / 32 gates · terminal measurement of all qubits

Connect to code

qc.h(0)
qc.z(0)

These operations go inside a circuit-building program. Practice problems provide a complete solve() template.

Solve the linked Qiskit problem →

Check your understanding

Are equal computational-basis probabilities enough to identify a pure state?

First complete the circuit exercise successfully.