QPUCPUqubit 0qubit 1|0⟩|1⟩HHADAMARDHHADAMARD|0⟩|1⟩01P(0)100%P(1)0%CNOT01010025%0125%1025%1125%marked
Arrow on the sphere: the qubit's state (up |0⟩, down |1⟩)Lamps: the 0 or 1 a measurement gaveGate blocks: H (Hadamard) and CNOTBoxes: the chance of reading each answerA qubit's state is drawn as an arrow on a sphere (the Bloch sphere): up is |0⟩, down is |1⟩, the equator is an equal superposition. Gates turn the arrow; a measurement lights the lamp with a plain 0 or 1 and the two boxes show the chances. Grover search needs about (pi/4)·sqrt(N) steps for N items (Grover, 1996); for N = 4 one step finds the marked item with certainty. Shor (1994; arXiv 1995) showed a quantum computer could factor large numbers efficiently. Google Quantum AI, Willow (December 2024): 105 qubits, T1 approaching 100 µs; a 101-qubit distance-7 surface code lowered the logical error rate by 2.14x per step in code size (Nature, 2025). "NISQ", noisy intermediate-scale quantum, is John Preskill's name (2018) for today's machines: useful for experiments, too noisy for long algorithms.

One qubit

  1. A normal computer stores bits. A bit is always exactly 0 or exactly 1, like this lamp: off or on. Reading it never changes it. Everything in a laptop is built from billions of these.

Gates and measuring

Interference and entanglement

Real machines

The maths, step by step

;; step 1/11 · bit
;; about: Ordinary bit
Classical bit: one of two values, 0 or 1.
Read it as often as you like: you get the same value every time.
2 bits hold one of 4 values at a time; n bits hold one of 2^n values.

The figure follows the standard textbook model (Nielsen and Chuang, Quantum Computation and Quantum Information): a qubit is a|0⟩ + b|1⟩, a measurement gives 0 with probability |a|^2. Only real amplitudes are used, so every arrow stays on one circle of the sphere. The measurement results shown (1 0 0 1 1 0 and 00 11 11 00) are one example run. Real results are random; only the probabilities are fixed.