What entanglement is mathematically, how Bell states are built from Hadamard and CNOT, how quantum circuits compose, and why measurement on entangled subsystems looks correlated regardless of separation.
Product states describe two qubits whose individual descriptions are independent of each other. An entangled state is any two-qubit state that cannot be written as a product. For example
∣Φ+⟩=21(∣00⟩+∣11⟩)
is entangled: no choice of α,β,γ,δ makes the product factorization work (the cross terms αδ∣01⟩ and βγ∣10⟩ would also have to appear, which they don't). Entanglement is the absence of factorization, not a separate physical phenomenon added on top of superposition.
Full lesson text
All 8 steps on one page — for reading, reference, and search.
ShowHide
1. Product states and entangled states
A two-qubit state lives in C2⊗C2=C4, with basis ∣00⟩,∣01⟩,∣10⟩,∣11⟩. A general state is
Product states describe two qubits whose individual descriptions are independent of each other. An entangled state is any two-qubit state that cannot be written as a product. For example
∣Φ+⟩=21(∣00⟩+∣11⟩)
is entangled: no choice of α,β,γ,δ makes the product factorization work (the cross terms αδ∣01⟩ and βγ∣10⟩ would also have to appear, which they don't). Entanglement is the absence of factorization, not a separate physical phenomenon added on top of superposition.
2. Measuring entangled qubits
Take ∣Φ+⟩=21(∣00⟩+∣11⟩) and measure the first qubit in the standard basis.
With probability 21, the outcome is 0, and the post-measurement state is ∣00⟩. The second qubit is now in state ∣0⟩ with certainty.
With probability 21, the outcome is 1, and the post-measurement state is ∣11⟩. The second qubit is now in state ∣1⟩ with certainty.
The outcomes on the two qubits are perfectly correlated — they always match. This holds regardless of how far apart the two qubits are physically separated.
A classical correlation can match this statistic (two bits set to the same value via a shared random source). The quantum-distinct feature shows up in measurements in other bases. Bell's theorem (1964) and the subsequent CHSH experiments quantify the gap: entangled states violate inequalities that any classical hidden-variable model must satisfy. The structural point is that entanglement is a richer correlation than any classical mixture, and the gap is measurable.
3. Two-qubit gates: CNOT
The controlled-NOT (CNOT) gate is a two-qubit unitary: it flips the second (target) qubit if and only if the first (control) qubit is ∣1⟩. As a 4×4 matrix in the ∣00⟩,∣01⟩,∣10⟩,∣11⟩ basis:
CNOT=1000010000010010.
Its action on basis states: ∣00⟩↦∣00⟩, ∣01⟩↦∣01⟩, ∣10⟩↦∣11⟩, ∣11⟩↦∣10⟩.
CNOT is reversible (it is its own inverse) and unitary. Together with single-qubit gates, CNOT is universal: any unitary on n qubits can be approximated to arbitrary precision by a finite circuit of CNOTs and single-qubit gates. The proof is constructive — every n-qubit unitary decomposes into a sequence of two-level rotations, each of which can be implemented with single-qubit gates and CNOTs.
4. A Bell-state circuit
Two gates — Hadamard then CNOT — turn two independent ∣0⟩ qubits into a maximally entangled state.
flowchart LR
A["Qubit 1: state 0"] --> B["Apply Hadamard to qubit 1"]
C["Qubit 2: state 0"] --> D["Wait"]
B --> E["Apply CNOT: control qubit 1, target qubit 2"]
D --> E
E --> F["Output: entangled Bell state Phi-plus"]
5. Building a Bell state
Trace the circuit step by step.
Start: ∣00⟩.
Apply Hadamard to qubit 1:
(H⊗I)∣00⟩=21(∣0⟩+∣1⟩)⊗∣0⟩=21(∣00⟩+∣10⟩).
Apply CNOT (control = qubit 1, target = qubit 2):
CNOT⋅21(∣00⟩+∣10⟩)=21(∣00⟩+∣11⟩)=∣Φ+⟩.
The Hadamard puts qubit 1 in equal superposition; the CNOT entangles qubits 1 and 2 by conditioning qubit 2's flip on qubit 1's value, while qubit 1's state is in superposition. The result is one of the four Bell states, the maximally entangled two-qubit states. The other three are produced by similar two-gate circuits with different initial conditions or extra single-qubit gates.
6. Composing circuits and gate count
A quantum circuit is a sequence of gates applied to a fixed set of qubits, ending in measurements. The gate count of a circuit is the total number of gates; the depth is the number of layers of gates that cannot be parallelized.
Useful complexity bookkeeping for quantum circuits:
A general n-qubit unitary needs O(4n) single- and two-qubit gates in the worst case — the exponential is inherent in the dimension of the unitary group.
Many structured unitaries (those arising in algorithms) admit polynomial-size circuits, which is why they are interesting.
Decompositions of useful unitaries (e.g., the quantum Fourier transform on n qubits) take O(n2) gates.
A constant-depth circuit on n qubits is a parallelizable computation; depth bounds are important for noisy hardware where each layer accumulates errors.
The circuit model is the standard abstraction for analyzing quantum algorithms. Hardware implementations differ on which gate set is native; compilers translate the algorithm's preferred gates into the hardware's native set with bounded overhead.
7. Universality and gate sets
A universal gate set is a finite collection of gates from which every unitary can be approximated to arbitrary precision. The Solovay–Kitaev theorem makes this precise: any universal gate set approximates an arbitrary unitary within error ϵ using O(logc(1/ϵ)) gates, where c is a small constant (around 4 in the original proof, improved since).
Standard universal sets include:
{H, T, CNOT} — Hadamard, T=(100eiπ/4), and CNOT.
{H, S, T, CNOT} where S=T2 — convenient for fault-tolerant implementations.
Clifford + T — the Clifford gates (H, S, CNOT) are not universal on their own, but adding T makes them so.
The Clifford gates are special because they can be efficiently simulated classically (Gottesman–Knill theorem). Useful quantum speedup therefore requires non-Clifford gates, of which T is the canonical minimal addition. Hardware implementations vary in how cheap and how noisy non-Clifford gates are; this distinction drives many error-correction trade-offs (the next lesson).
8. What entanglement gives you and what it does not
Entanglement is a resource — quantifiable, consumable, and necessary for most quantum advantages.
What it enables.
Quantum teleportation: an unknown qubit's state can be transferred between two parties who share an entangled pair, using two classical bits of communication.
Superdense coding: two classical bits can be transmitted by sending one qubit, when the parties share an entangled pair beforehand.
Quantum algorithms: most known speedups (Shor, simulation, quantum walk algorithms) require entanglement at intermediate steps; without it, the computation can be efficiently simulated classically.
What it does not enable.
Faster-than-light communication. Measurements on entangled qubits produce correlated outcomes, but the outcome on each side is locally random. No information is transmitted by the act of measurement.
Copying. The no-cloning theorem from the previous lesson still applies; entanglement does not let you duplicate an unknown state.
Unbounded computational speedup for all problems. Most problems (search-style problems beyond the structure that algorithms exploit) gain at most a quadratic Grover-style speedup, which is polynomial.
The specific algorithmic exploitations of entanglement are the subject of the algorithms lesson later in the cursus.
Check your understanding
The lesson ends with a 5-question quiz. Take it in the player above to see your score.
Which of these two-qubit states is *not* entangled?
$\frac{1}{\sqrt{2}}(|00\rangle + |11\rangle)$
$\frac{1}{\sqrt{2}}(|00\rangle + |01\rangle)$
$\frac{1}{\sqrt{2}}(|01\rangle + |10\rangle)$
$\frac{1}{\sqrt{2}}(|00\rangle - |11\rangle)$
What does CNOT do to the basis state $|10\rangle$?
Leaves it as $|10\rangle$.
Maps it to $|01\rangle$.
Maps it to $|11\rangle$.
Maps it to $|00\rangle$.
Why is the Clifford gate set alone not universal for quantum computation?
The Clifford gates do not include the Hadamard.
By the Gottesman–Knill theorem, circuits of Clifford gates on stabilizer states can be efficiently simulated classically, so they cannot produce a quantum-classical computational gap on their own.
Clifford gates cannot be implemented in real hardware.
Clifford gates are not reversible.
Roughly how many single- and two-qubit gates does an arbitrary $n$-qubit unitary need in the worst case?
$O(n)$
$O(n^2)$
$O(2^n)$
$O(4^n)$
What does entanglement *not* enable?
Quantum teleportation of an unknown state between two parties sharing a Bell pair.
Faster-than-light transmission of classical information.
Superdense coding (two classical bits via one qubit, given a shared Bell pair).
Computational speedup for some structured problems.