Quantum computers from scratch
Build intuition from bits and gates to real quantum hardware.
Explore how a classical processor moves definite bits, how a quantum processor evolves amplitudes, why measurement is probabilistic, and how hardware turns fragile quantum states into usable computation.

Interactive 3D-style simulator
Compare a normal computer and a quantum computer side by side.
The canvas shows classical transistor lanes on the left and a quantum circuit, Bloch sphere, cryostat, amplitudes, and measurement histogram on the right.
Normal computer
Bits, transistors, and deterministic logic
A normal computer stores information as bits, physically represented by stable voltage levels or magnetic states. Logic gates like AND, OR, NOT, and XOR transform definite binary values through transistor networks. Every step has a definite intermediate value.
Quantum computer
Qubits, amplitudes, and unitary gates
A quantum computer stores information in qubits. A qubit can be in a superposition with complex amplitudes. Quantum gates rotate the state vector without measuring it; useful algorithms arrange interference so wrong answers cancel and useful answers become more likely.
Measurement
Why reading the answer is different
Measurement converts amplitudes into a classical result. A quantum algorithm is designed so repeated measurements reveal the answer statistically.
Quantum gate library
What each gate does to a qubit or circuit.
Use the simulator gate selector above while reading these gate notes. The canvas updates the Bloch vector, amplitude bars, and circuit animation.
X gate
Acts like a quantum NOT by swapping the computational basis states and rotating the Bloch vector around the x-axis.
Hadamard gate
Creates equal superposition from a basis state. It is the doorway to interference and many algorithms.
Z, S, and T gates
Change relative phase. Phase is invisible in a direct basis measurement until later gates convert it into measurable interference.
CNOT gate
A two-qubit entangling gate. It flips the target qubit when the control qubit is in the active basis state and can create Bell states.
Measurement
Not a unitary gate. It samples the state and collapses it to a classical bit, so circuits usually measure at the end.
Error correction
Logical qubits are built from many physical qubits. Syndrome measurements detect errors without directly reading the protected quantum information.
Real hardware stack
From idea to a physical quantum computer.
Building a quantum computer requires physics, microwave/laser control, cryogenics or vacuum, calibration, software, and error management.
Choose qubit platform
Superconducting circuits, trapped ions, neutral atoms, photonics, spins, and topological approaches each trade speed, connectivity, coherence, and manufacturing complexity.
Isolate the quantum system
Qubits must be protected from uncontrolled environmental coupling. Superconducting processors use dilution refrigerators; ion and atom systems use vacuum, lasers, and electromagnetic traps.
Control and calibrate gates
Precisely shaped pulses implement rotations and two-qubit interactions. Calibration tunes frequencies, pulse amplitudes, timing, crosstalk, and readout thresholds.
Compile circuits
Algorithms are translated into hardware-native gates, respecting qubit connectivity and device noise. The compiler inserts swaps, optimizes depth, and schedules operations.
Measure many shots
A quantum program usually runs many times. The result is a distribution over bitstrings, which is then post-processed by classical software.
Scale with correction
Fault-tolerant machines need logical qubits, surface-code-like protection, fast feedback, and high-fidelity gates across large arrays.
Continue learning
Connect quantum computers back to the core quantum mechanics.
Study Hilbert space, measurement, spin, entanglement, and decoherence, then return here to see how those concepts become a working processor.