One qubit, one Hadamard gate, one measurement. Until you look, the coin is heads and tails at once.
Two equal peaks mean a 50/50 superposition. When you flip, one peak takes all the probability: that is the collapse.
Dashed line: the 50% a perfect qubit predicts.
Last 40 flips, newest last.
Shaded band: the typical random wobble, ±1/√n of the total. It narrows as flips pile up.
Every qubit begins pointing straight up: definitely 0, definitely heads.
H swings the arrow down to the equator: halfway between 0 and 1. That is superposition.
Looking snaps it to a pole, up (heads) or down (tails), 50% each, decided by nature itself.
Watch the pulse: one state goes in, the H gate splits it into two possibilities, the measurement lets only one come out.
A normal coin is always secretly heads or tails. A qubit after a Hadamard gate is a genuine blend of both:
Measuring forces a choice, each with probability (1/√2)² = 50%. This page runs that same statevector maths in your browser with the system's secure random source: a simulation of a qubit, not a quantum chip.
from qiskit import QuantumCircuit
from qiskit.primitives import StatevectorSampler
qc = QuantumCircuit(1)
qc.h(0) # superposition
qc.measure_all() # collapse to 0 or 1
result = StatevectorSampler().run([qc], shots=1000).result()[0]
print(result.data.meas.get_counts()) # e.g. {'0': 507, '1': 493}