Level 3

Superposition

Superposition means the state has amplitudes for multiple possible measurement outcomes.

Try it now

Visualize

000001010...

Hadamards spread amplitude across many possible bit strings.

Understand

An H gate on |0> creates an even chance of 0 or 1.

Why it matters

Algorithms begin by exploring possibilities as amplitudes, then reshape them.

Misconception

Superposition is not free parallel classical computing; measurement still returns one sample.

Apply

Run three H gates and watch eight states appear.

Example DSL

# Superposition (3 qubits)
qubits 3
H 0
H 1
H 2
MEASURE 0
MEASURE 1
MEASURE 2

Quick check

What should three Hadamard gates on three qubits produce?