The Qubit
From Bits to Qubits
A classical computer stores information as bits — each one strictly 0 or 1. A quantum computer uses qubits (quantum bits), which can exist in any combination of 0 and 1 simultaneously. This is called superposition.
Mathematically, a qubit's state is written as |ψ⟩ = α|0⟩ + β|1⟩, where α and β are complex numbers called amplitudes. The probabilities of measuring 0 or 1 are |α|² and |β|² respectively, and they must sum to 1.
Physical implementations of qubits include: superconducting circuits (Google, IBM), trapped ions (IonQ, Quantinuum), photonic systems, and silicon spin qubits — each with different coherence times and error rates.
Visualising a Qubit
Core Principles
Superposition
A qubit in superposition encodes both 0 and 1 simultaneously with different amplitudes. The Hadamard gate creates equal superposition: H|0⟩ = (|0⟩ + |1⟩)/√2. This enables a quantum computer to explore many solutions in parallel.
Entanglement
Two or more qubits can be correlated in ways that have no classical analogue. Measuring one instantly determines the state of the other, regardless of distance. Entanglement is a key resource for quantum algorithms and quantum communication.
Interference
Like waves, quantum amplitudes can interfere constructively (amplifying correct answers) or destructively (cancelling wrong ones). Quantum algorithms are designed to harness interference — not raw speed — as the source of computational advantage.
Measurement
Measuring a qubit collapses its superposition into a definite 0 or 1, with probabilities given by its amplitudes. This irreversible process is the final step of any quantum computation — the quantum state must be cleverly arranged so the right answer is the most probable outcome.
Quantum Gates
Operations on Qubits
Quantum gates are the quantum analogue of logic gates. Unlike classical gates, they must be reversible (unitary matrices), meaning no information is ever destroyed during computation. This is a fundamental requirement of quantum mechanics.
Single-qubit gates: The Pauli gates X (bit flip — like a quantum NOT), Y, and Z (phase flip) rotate the Bloch vector 180° around the respective axes. The Hadamard gate H creates superposition. The S and T gates apply phase rotations.
Two-qubit gates: The CNOT (Controlled-NOT) flips the target qubit only if the control qubit is |1⟩. Together with single-qubit gates, CNOT forms a universal gate set — any quantum computation can be decomposed into these operations.
Quantum Circuit Diagrams
Classical vs Quantum Computing