About Superposition & Measurement
Quantum measurement is the bridge between the quantum and classical worlds. A qubit in superposition exists in a combination of |0⟩ and |1⟩ simultaneously, with complex amplitudes α and β satisfying |α|² + |β|² = 1. When measured, the Born rule dictates that the probability of each outcome equals the squared magnitude of its amplitude: P(0) = |α|² and P(1) = |β|². Upon measurement the wave function collapses irreversibly to the observed eigenstate — all other amplitudes become zero and the state is renormalized. For entangled states such as Bell pairs, measuring one qubit instantly determines the other's state: if two qubits share the state (|00⟩ + |11⟩)/√2, measuring the first qubit as |0⟩ collapses the second to |0⟩ as well, demonstrating the non-local correlations that make quantum computing powerful. This visualization walks through state preparation, probability computation, and collapse step by step.
Complexity Analysis
- Time Complexity
- O(2^n)
- Space Complexity
- O(2^n)
- Difficulty
- intermediate
Key Concepts
Superposition
A qubit can exist in a linear combination of |0⟩ and |1⟩, written α|0⟩ + β|1⟩ where α and β are complex amplitudes. Unlike a classical bit that must be 0 or 1, a qubit in superposition encodes information in both amplitudes simultaneously. The Hadamard gate (H) creates an equal superposition from the |0⟩ state: H|0⟩ = (|0⟩ + |1⟩)/√2.
Measurement (Born Rule)
When a qubit in state α|0⟩ + β|1⟩ is measured, the Born rule determines the outcome probabilities: P(0) = |α|² and P(1) = |β|². For the equal superposition (|0⟩ + |1⟩)/√2, each outcome has probability 1/2. The measurement result is fundamentally probabilistic — no hidden variable determines it in advance.
Wave Function Collapse
After measurement, the quantum state irreversibly collapses to the observed eigenstate. If a qubit in superposition is measured as |0⟩, its state becomes exactly |0⟩ — the |1⟩ amplitude is destroyed. Subsequent measurements will always yield the same result. This collapse is instantaneous and irreversible, distinguishing quantum measurement from classical observation.
Entanglement
Two qubits are entangled when their joint state cannot be written as a product of individual qubit states. The Bell state (|00⟩ + |11⟩)/√2 is the canonical example: neither qubit has a definite state individually, but measuring one instantly determines the other. This correlation is stronger than any classical correlation and is the basis for quantum teleportation, superdense coding, and quantum error correction.
Bell States
The four Bell states are maximally entangled two-qubit states: |Φ+⟩ = (|00⟩ + |11⟩)/√2, |Φ-⟩ = (|00⟩ - |11⟩)/√2, |Ψ+⟩ = (|01⟩ + |10⟩)/√2, |Ψ-⟩ = (|01⟩ - |10⟩)/√2. They are created by applying a Hadamard gate followed by a CNOT gate. Bell states are fundamental resources in quantum information protocols.
Common Pitfalls
Measurement is irreversible
Once a qubit is measured, its superposition is permanently destroyed. You cannot 'un-measure' a qubit or recover the original amplitudes. This is why quantum algorithms must carefully choose when and what to measure — premature measurement collapses useful quantum information.
Entanglement correlates outcomes
For entangled qubits like the Bell state (|00⟩ + |11⟩)/√2, measuring one qubit collapses the other's state too. If you measure the first qubit and get |0⟩, the second qubit is guaranteed to also be |0⟩ — there is zero probability of getting |1⟩. Students often forget that measurement on one qubit affects the entire system's state vector.
No-cloning theorem
It is physically impossible to create an exact copy of an unknown quantum state. This means you cannot simply duplicate a qubit's superposition for backup before measuring. The no-cloning theorem is a fundamental consequence of the linearity of quantum mechanics and has deep implications for quantum cryptography and error correction.