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.

Quantum computer control room with qubit visualizations and gate panels

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.

Classical register1011
Quantum state\[\lvert 0 \rangle\]
Measurement\[P(0)=1.00\]

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.

\[\mathrm{bit} \in \{0,1\}\]

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.

\[\lvert \psi \rangle = \alpha \lvert 0 \rangle + \beta \lvert 1 \rangle\]

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.

\[P(0)=|\alpha|^2,\qquad P(1)=|\beta|^2\]\[P(x)=|\langle x|\psi\rangle|^2\]

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.

\[X\lvert 0\rangle=\lvert 1\rangle,\qquad X\lvert 1\rangle=\lvert 0\rangle\]

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.

\[\mathrm{CNOT}\lvert 10\rangle=\lvert 11\rangle\]

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.

01

Choose qubit platform

Superconducting circuits, trapped ions, neutral atoms, photonics, spins, and topological approaches each trade speed, connectivity, coherence, and manufacturing complexity.

02

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.

03

Control and calibrate gates

Precisely shaped pulses implement rotations and two-qubit interactions. Calibration tunes frequencies, pulse amplitudes, timing, crosstalk, and readout thresholds.

04

Compile circuits

Algorithms are translated into hardware-native gates, respecting qubit connectivity and device noise. The compiler inserts swaps, optimizes depth, and schedules operations.

05

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.

06

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.