First time studying this topic?

Launch the interactive walkthrough to discover each component, including the 3D Q-Sphere Lab & Python in Colab.

Topic 5.9

Superposition: Beyond Binary Existence

Understand the principle of linear superposition: how quantum systems exist in coherent combinations of states simultaneously.

Learning Objectives

  • ✓Define linear superposition as a linear combination of basis states
  • ✓Examine Schrödinger’s Cat thought experiment and macroscopic decoherence
  • ✓Differentiate quantum superposition from classical statistical uncertainty

📖Let's Begin with a Story

In 1935, Austrian physicist Erwin Schrödinger wanted to expose the bizarre, unsettling implications of quantum mechanics. He proposed a famous thought experiment: Place a cat in a sealed steel chamber with a vial of hydrocyanic poison, a Geiger counter, and a single radioactive atom with a 50% chance of decaying over one hour. If the atom decays, the counter triggers a hammer that shatters the vial, killing the cat. If the atom does not decay, the cat lives. According to quantum mechanics, until an observer opens the chamber to look, the atom exists in a superposition of decayed and undecayed. Therefore, the cat exists in a coherent superposition: ∣ψ⟩=12∣Alive⟩+12∣Dead⟩|\psi\rangle = \frac{1}{\sqrt{2}}|\text{Alive}\rangle + \frac{1}{\sqrt{2}}|\text{Dead}\rangle The cat is not "secretly alive" or "secretly dead." Nature mathematically maintains both realities simultaneously until observation forces a collapse.

Why Should You Learn Superposition: Beyond Binary Existence?

🎯 Practical & Engineering Stakes

The engine of quantum parallelism

Superposition allows an nn-qubit quantum register to represent 2n2^n numbers simultaneously. A 300-qubit register can hold more simultaneous numbers than there are atoms in the universe.

🎮 Fun Learning Zone

Grasp complex quantum concepts visually with zero prior physics or math knowledge!

Zero Prerequisites
Visual Concept Storyboard

The Spinning Coin on the Polished Table & The Musical Chord

Coin Lying Flat on Table
🪙 🪨

Definite Heads OR Tails

Classical certainty. No dynamic wave blur.

Coin Spinning in Air & Piano Chord
🌪️ 🎵 🎼

Simultaneous Waves in Superposition

Not 0 or 1, but a live spinning chord of both (|0⟩ + |1⟩)/√2!

Classical: Serial / ConstrainedQuantum: Coherent Wave Parallelism
Visual takeaway: Understand in 5 seconds

Everyday Analogy: The Spinning Coin on the Polished Table & The Musical Chord

If you lay a coin flat on a table, it is classical: either Heads (0) or Tails (1). But what happens the moment you snap your fingers and spin it? As it whirls across the polished wood, is it Heads? No. Is it Tails? No. It is in a continuous, dynamic blur of both possibilities! It has a probability of landing Heads and a probability of landing Tails depending on its spin axis. Superposition is not a coin sitting still with two labels; it is the active, spinning dance of amplitudes before anything touches it!
🧪

Interactive Mental Sandbox

Try It Yourself
Spinning Coin & Musical Chord Sandbox

Spin the coin into superposition, then slap down to measure.

Click "Snap & Spin Coin" to launch the quantum superposition!

📖 The Thought Experiment Prompt:“Listen in your imagination to a pianist playing a Middle C note. Now they play an E note. If they press both keys simultaneously, your ear doesn’t hear C, then E, then C... you hear a rich, harmonious chord! The sound waves physically coexist in the air simultaneously. A qubit in superposition $|+\rangle = (|0\rangle + |1\rangle)/\sqrt{2}$ is a quantum chord: a physical linear combination of base states living in the same space at the same time.”

✨ The "Aha!" Moment

Superposition is NOT magical multitasking or "0 and 1 at the same time." It is a coherent linear wave combination α∣0⟩+β∣1⟩\alpha|0\rangle + \beta|1\rangle whose squared amplitudes determine measurement odds!

What Is It?

Simple Explanation

Think of a coin spinning on a table. While it is spinning rapidly, is it Heads or Tails? It is a blur of both! You can see both faces spinning in the air. Only when you slam your hand down on the coin does it stop spinning and become either Heads or Tails. Superposition is the spinning coin! Measurement is slamming your hand down.

Technical Explanation

By the principle of linear superposition, if ∣ψ1⟩|\psi_1\rangle and ∣ψ2⟩|\psi_2\rangle are valid solutions to the Schrödinger equation, any linear combination ∣ψ⟩=c1∣ψ1⟩+c2∣ψ2⟩|\psi\rangle = c_1 |\psi_1\rangle + c_2 |\psi_2\rangle with c1,c2∈Cc_1, c_2 \in \mathbb{C} is also a valid physical state. The relative phase eiϕe^{i\phi} between amplitudes produces observable interference effects that distinguish superposition from classical probability mixtures.

📚 Key Terms

SuperpositionSuperposition

Simple: A qubit existing as a blend of both 0 and 1 at the same time.
Technical: A coherent linear combination of basis eigenstates ∣ψ⟩=∑ici∣i⟩|\psi\rangle = \sum_i c_i |i\rangle with ∑∣ci∣2=1\sum |c_i|^2 = 1.

Phase Coherence

Simple: The delicate quantum rhythm that connects the parts of the superposition.
Technical: The definite phase relationship between probability amplitudes necessary to produce quantum interference.

DecoherenceDecoherence

Simple: When heat, vibrations, or noise destroy the delicate quantum superposition, turning it into ordinary classical junk.
Technical: Irreversible loss of quantum phase coherence driven by environmental entanglement, transforming a pure state into a classical mixed state.

Q-Sphere Lab: Superposition: Beyond Binary Existence

IBM Q-Sphere Model

Interactive 3D state vector exploration, unitary transformation gates, and Born rule collapse for Topic 5.9

Azimuth: 45°Elevation: 25°
+Z |0⟩-Z |1⟩+X |+⟩+Y |+i⟩01|ψ⟩
Q-Sphere Phase Color:
0 π/2 π 3π/2

Quantum Statevector

dim(H) = 2
|ψ⟩ = (1.000 + 0.000i)|0⟩
     + (0.000 + 0.000i)|1⟩
Polar Angle (θ):0.0° (0.000π rad)
Phase Angle (ϕ):0.0° (0.000π rad)

Born Rule Probabilities: P(x) = |⟨x|ψ⟩|²Σ P = 1.00

P(|0⟩) = |α|²100.0%
P(|1⟩) = |β|²0.0%
Quantum Measurement

Apply Single-Qubit Unitary Gates

Presets:
Continuous Polar Angle θ (0° = |0⟩, 180° = |1⟩):0.0°
Continuous Phase Angle ϕ (0° to 360°):0.0°
Recent Operations Log:
#1Initial state: |0⟩

📐 Mathematical Foundation

LaTeX KaTeX
∣+⟩=∣0⟩+∣1⟩2,∣−⟩=∣0⟩−∣1⟩2|+\rangle = \frac{|0\rangle + |1\rangle}{\sqrt{2}}, \quad |-\rangle = \frac{|0\rangle - |1\rangle}{\sqrt{2}}

What does it mean?

The Fundamental Superposition Basis States: Formed by applying a Hadamard gate to ∣0⟩|0\rangle and ∣1⟩|1\rangle. While both yield identical 50/50 measurement probabilities when measured alone, their opposite relative signs (+ vs -) cause dramatic constructive or destructive interference when combined.

Understanding the Symbols

Symbol / TermMeaningBeginner Interpretation
∣+⟩|+\ranglePlus state (equal superposition)Basis states ∣0⟩|0\rangle and ∣1⟩|1\rangle are in-phase with positive sign (+)
∣−⟩|-\rangleMinus state (equal superposition)Basis states ∣0⟩|0\rangle and ∣1⟩|1\rangle are 180° out-of-phase with negative sign (-)
1/21/\sqrt{2}Normalization coefficient ≈ 0.7071Ensures total probability: (1/2)2+(±1/2)2=0.5+0.5=1.00(1/\sqrt{2})^2 + (\pm 1/\sqrt{2})^2 = 0.5 + 0.5 = 1.00

📊 Numerical Example

Demonstrating destructive interference by combining |+⟩ and |-⟩:

Step 1: Write sum of both states: ∣+⟩|+\rangle + ∣−⟩|-\rangle = [(∣0⟩|0\rangle + ∣1⟩|1\rangle)/√2] + [(∣0⟩|0\rangle - ∣1⟩|1\rangle)/√2] Step 2: Group like basis terms: = [(∣0⟩|0\rangle + ∣0⟩|0\rangle) + (∣1⟩|1\rangle - ∣1⟩|1\rangle)] / √2 = [2∣0⟩|0\rangle + 0∣1⟩|1\rangle] / √2 = √2 ∣0⟩|0\rangle Step 3: Normalize by dividing by √2: (∣+⟩|+\rangle + ∣−⟩|-\rangle) / √2 = ∣0⟩|0\rangle

Result: The ∣1⟩|1\rangle states completely cancelled out (1 - 1 = 0), leaving only pure ∣0⟩|0\rangle. Superposition enables selective path cancellation.

⚙️ How Does It Work?

1

Ground State

Start with qubit in deterministic classical state |0>.

2

Hadamard Pulse

Apply a pi/2 microwave rotation to tilt the state onto the equator.

3

Coherent Maintenance

Qubit maintains simultaneous superposition in sub-15-millikelvin cryostats.

🌍 Where Is It Used?

Quantum Parallel Search (Grover)

Problem: Searching unsorted databases of N items in O(sqrt(N)) time.

Solution: Superposition evaluates all N entries simultaneously in a single computational step.

🎯 Try It Yourself

How does a quantum superposition state |+> = (|0> + |1>)/sqrt(2) differ from a classical 50/50 random coin flip?

Interactive activity component

🐍 Python Hands-On: Creating and Measuring Superposition with Qiskit Aer

Construct an equal superposition state using the Hadamard gate and simulate stochastic measurement collapse over 1,000 shots.

Open Colab

1Install Required Packages

For Google Colab or Jupyter notebooks, run this shell command to install the required dependencies:

Terminal / Notebook Install Commandbash
!pip install qiskit qiskit-aer
Packages:
qiskitqiskit-aer

2Import Libraries

Import Statementspython
1from qiskit import QuantumCircuit
2from qiskit_aer import AerSimulator

from qiskit import QuantumCircuit → Quantum circuit builder

from qiskit_aer import AerSimulator → High-performance Aer simulator

3Demonstration Code & Logic

Python Execution Codepython
1# 1. Build circuit with Hadamard and Measurement
2qc = QuantumCircuit(1, 1)
3qc.h(0) # Put qubit into equal superposition |+>
4qc.measure(0, 0) # Add measurement
5print('Superposition Circuit Diagram:')
6print(qc.draw('text'))
7
8# 2. Simulate 1,000 shots using AerSimulator
9sim = AerSimulator()
10result = sim.run(qc, shots=1000).result()
11counts = result.get_counts()
12print('\nMeasurement Results across 1,000 runs:')
13for bit, count in sorted(counts.items()):
14 pct = (count / 1000) * 100
15 print(f' Outcome |{bit}> : {count} times ({pct:.1f}%)')
16print('\nConclusion: Superposition splits probabilities equally; each shot collapses randomly to 0 or 1.')
Step-by-Step Code Breakdown:

# 1. Build circuit with Hadamard and Measurement

Circuit setup

qc = QuantumCircuit(1, 1)

1 qubit and 1 classical readout bit

qc.h(0) # Put qubit into equal superposition |+>

Apply Hadamard

qc.measure(0, 0) # Add measurement

Measure

print('Superposition Circuit Diagram:')

Diagram header

print(qc.draw('text'))

Draw circuit

# 2. Simulate 1,000 shots using AerSimulator

Simulation

sim = AerSimulator()

Initialize simulator backend

result = sim.run(qc, shots=1000).result()

Execute 1000 shots

counts = result.get_counts()

Get outcome frequency dictionary

print('\nMeasurement Results across 1,000 runs:')

Print header

for bit, count in sorted(counts.items()):

Iterate outcomes

pct = (count / 1000) * 100

Calculate percentage

print(f' Outcome |{bit}> : {count} times ({pct:.1f}%)')

Print percentage

print('\nConclusion: Superposition splits probabilities equally; each shot collapses randomly to 0 or 1.')

Summary

📋 Complete Script (All-in-One)

Click "Copy for Colab", open Google Colab, paste into a single cell, and run.

Google Colab Notebook Scriptpython
1# =========================================================
2# Creating and Measuring Superposition with Qiskit Aer
3# Prepared for Google Colab (Run with Shift + Enter)
4# =========================================================
5
6# Step 1: Install required packages
7!pip install qiskit qiskit-aer
8
9# Step 2: Import libraries
10from qiskit import QuantumCircuit
11from qiskit_aer import AerSimulator
12
13# Step 3: Run Demonstration
14# 1. Build circuit with Hadamard and Measurement
15qc = QuantumCircuit(1, 1)
16qc.h(0) # Put qubit into equal superposition |+>
17qc.measure(0, 0) # Add measurement
18print('Superposition Circuit Diagram:')
19print(qc.draw('text'))
20
21# 2. Simulate 1,000 shots using AerSimulator
22sim = AerSimulator()
23result = sim.run(qc, shots=1000).result()
24counts = result.get_counts()
25print('\nMeasurement Results across 1,000 runs:')
26for bit, count in sorted(counts.items()):
27 pct = (count / 1000) * 100
28 print(f' Outcome |{bit}> : {count} times ({pct:.1f}%)')
29print('\nConclusion: Superposition splits probabilities equally; each shot collapses randomly to 0 or 1.')
⚡ How to Run in Google Colab (3 Quick Steps)
  1. Click "Copy for Google Colab" above.
  2. Click Open New Google Colab Notebook (opens in a new tab).
  3. Click on the first empty code cell, press Ctrl + V (or Cmd + V) to paste, then press Shift + Enter to execute!

🔄 Algorithmic Execution Flow

1
Create Superposition

Apply Hadamard gate to put qubit into state (|0> + |1>)/sqrt(2).

→
2
Attach Measurement

Measure qubit onto classical readout register.

→
3
Sample 1,000 Shots

Run AerSimulator to observe stochastic 50/50 measurement distribution.

📥 Input / Initial State
QuantumCircuit(1, 1) with H(0) and Measure(0, 0).
📤 Expected Output
Outcome |0>: ~500 times (~50.0%)
Outcome |1>: ~500 times (~50.0%)
💡 What Does This Demonstration Show?

Before measurement, the qubit exists simultaneously in both states. Measurement forces an irreversible collapse into either 0 or 1 with equal 50% probability.

Course Learning Resource • Slide DeckLesson 311 Slides

Lesson 3: Quantum Measurement with a One-Qubit Circuit

Hadamard gates, quantum measurement, histogram analysis, and probability collapse.

Author: Dr. Syed Muzamil Basha• FDP Approved Curriculum
Open in New Tab
Available Slide Decks:

📝 Learning Check

Test your understanding with these questions. Remember, this is for learning, not examination!

Question 1: What is the physical phenomenon where environmental heat or vibrations destroy a quantum superposition called?

Question 2: What quantum gate creates an equal superposition |+⟩ = (|0⟩ + |1⟩)/√2 from |0⟩?

Question 3: In the double-slit experiment with electrons, what happens if you measure which slit the electron goes through?

Question 4: What is the probability of measuring |0⟩ for the state |ψ⟩ = (3|0⟩ + 4i|1⟩)/5?

Question 5: Can a qubit simultaneously store the values of 2 classical bits (00, 01, 10, 11)?