QUANTUM BASICS / FOR BEGINNERSNO PRIOR KNOWLEDGE NEEDED
Learn the math, one signal at a time.
A qubit is not a vague idea — it is two numbers and one rule. Work through ten short lessons, each with its formula and a real calculation you can run in the console.
10 LESSONSEVERY ANSWER COMPUTED LOCALLY01 — 10
00 / BEFORE YOU START
How to read the notation.
Symbols first, so the lessons stay plain.
|0⟩Read "ket zero": the outcome a qubit gives when it is definitely 0.
|ψ⟩The state itself — a shorthand name for the pair of amplitudes.
α, βThe two amplitudes. Ordinary numbers, allowed to be negative.
|α|²The chance of measuring 0. Squaring turns an amplitude into a probability.
H X Z RyGates: instructions that rewrite the amplitudes. A circuit is read left to right.
θAn angle in degrees. Ry(θ) tilts the state by that much.
shotsHow many times the same measurement is repeated so the odds become visible.
≈Expected, not guaranteed — randomness means one run is rarely exact.
01 / THE LESSONS
Start at the top and go down.
Each lesson builds on the one before it.
01 / LESSON
What is a qubit?
A classical bit is 0 or 1. A qubit holds two numbers called amplitudes, written α|0⟩ + β|1⟩. Both of them can be non-zero at the same time.
|ψ⟩ = α|0⟩ + β|1⟩
WATCH FORSquaring both amplitudes gives exactly 1. Every valid qubit obeys this.
Amplitudes are added first and squared afterwards, so two paths can cancel each other out or build each other up. That is what separates a quantum calculation from simply adding odds.
(α₁ + α₂)²
WATCH FORTwo equal amplitudes with opposite signs cancel to nothing — the reason H twice returns |0⟩.