UQC

Being in Multiple States

Superposition

The Core Idea

Superposition is the ability of a quantum system to exist in multiple states at the same time, until it is measured.

This is perhaps the most counterintuitive aspect of quantum mechanics. In our everyday experience, things have definite states: a door is open or closed, a coin shows heads or tails.

But a qubit in superposition is genuinely in both states at once, not "we don't know which one" but "it's actually both."

The Spinning Coin

A coin spinning in the air is like a qubit in superposition. Click the coin or button below to observe it!

?
|coin⟩ = |heads⟩ + |tails⟩

The coin is in superposition, it's genuinely both heads AND tails until observed!

Visualizing Quantum State Space

The Bloch sphere is how physicists visualize a qubit's state. The north pole represents |0⟩, the south pole |1⟩, and everywhere in between is a superposition.

When you measure a qubit, its state collapses from wherever it sits on the sphere to one of the poles. The probability of each outcome follows the Born rule: P(|0⟩) = |α|². Measure many times and watch the histogram converge.

Superposition & Measurement

A qubit exists in all states at once, until you measure it. Click the sphere to collapse the wavefunction.

Click the sphere to measure. Histogram shows results converging to quantum probabilities.

The Hadamard Gate

To put a qubit into superposition, we use the Hadamard gate (H gate).

Starting with a qubit in state |0⟩, applying the Hadamard gate creates an equal superposition:

H|0⟩ = (|0⟩ + |1⟩) / √2

This means: 50% chance of measuring 0, 50% chance of measuring 1.

The Hadamard Gate

The H gate creates superposition. Watch it transform a definite state!

Inputclick to toggle
H
Output
?
Click H gate to apply

The Hadamard gate is the key to creating superposition in quantum circuits.

Why Does This Matter?

Parallel Exploration

With n qubits in superposition, you represent 2ⁿ states at once.10 qubits = 1,024 states. 50 qubits = over a quadrillion.

Interference

Amplitudes add and cancel, amplify correct answers, cancel wrong ones.This is the engine behind every quantum algorithm.

The Catch

But superposition alone isn't enough. You can't just read out all 2ⁿ values.The art of quantum computing is designing algorithms that pull the right one out.

Common Misconceptions

Myth

"Superposition means the qubit is randomly 0 or 1, we just don't know which."

Reality

The qubit is genuinely in both states. This is a physical reality, not ignorance.

Myth

"Quantum computers try all solutions at once and pick the right one."

Reality

You only get one answer per measurement. The skill is in making the right answer most probable.

Hands-on exercise

10-15 minutes

Goal , Create superposition states and observe how measurement collapses them.

Open in Google Colab

Reflection

  1. 01Why can't we directly observe a qubit in superposition?
  2. 02How might superposition enable solving problems faster than classical computers?