Superposition is the principle that a quantum system can exist in multiple states simultaneously until measured. It is not merely a statement about our ignorance — it is a fundamental feature of nature.
Classical vs. Quantum¶
A classical bit is either 0 or 1. A qubit can be:
$$|\psi\rangle = \alpha|0\rangle + \beta|1\rangle$$
with the normalization constraint $|\alpha|^2 + |\beta|^2 = 1$. This means a single qubit has a continuous family of possible states, parameterized by complex amplitudes.
The Bloch Sphere¶
Every single-qubit pure state can be written as:
$$|\psi\rangle = \cos\frac{\theta}{2}|0\rangle + e^{i\phi}\sin\frac{\theta}{2}|1\rangle$$
where $\theta \in [0, \pi]$ and $\phi \in [0, 2\pi)$. This maps to a point on the Bloch sphere — a unit sphere where:
- $|0\rangle$ is the north pole
- $|1\rangle$ is the south pole
- $|+\rangle$ and $|-\rangle$ are on the equator
Every quantum gate is a rotation on this sphere. The Hadamard gate is a 180° rotation about the axis halfway between $X$ and $Z$.
The Power of Superposition¶
With $n$ qubits in superposition, we can represent $2^n$ states simultaneously:
$$|\psi\rangle = \sum_{x=0}^{2^n - 1} \alpha_x |x\rangle$$
For 300 qubits, $2^{300}$ exceeds the number of atoms in the observable universe. This exponential state space is what gives quantum computers their theoretical power.
Interference: The Key to Quantum Advantage¶
Superposition alone is not enough — interference is what makes quantum algorithms work. By carefully designing quantum circuits, we can:
- Put qubits into superposition (exploring all possibilities)
- Apply operations that create interference patterns
- Amplify correct answers and cancel wrong ones
from qiskit import QuantumCircuit
from qiskit.quantum_info import Statevector
import numpy as np
# Demonstrate interference
qc = QuantumCircuit(1)
qc.h(0) # Create superposition: |+⟩
qc.h(0) # Apply H again — interference returns to |0⟩
sv = Statevector.from_instruction(qc)
probs = sv.probabilities()
print(f"|0⟩ probability: {probs[0]:.4f}") # Should be 1.0
print(f"|1⟩ probability: {probs[1]:.4f}") # Should be 0.0
Two Hadamard gates in sequence demonstrate constructive interference — the $|0\rangle$ amplitude reinforces itself while the $|1\rangle$ amplitude cancels.
Experimental Evidence¶
Superposition has been confirmed in countless experiments:
- Double-slit experiment: Single electrons creating interference patterns
- Stern-Gerlach experiment: Spin superposition of silver atoms
- Superconducting qubits: Macroscopic circuits in quantum superposition
- Matter-wave interferometry: Molecules with thousands of atoms showing interference