Every quantum algorithm — Deutsch, Grover, Shor — is written in one notation: a circuit. Horizontal wires are qubits, time runs left to right, and the boxes are the gates from chapter 05. Learn to read it and the rest of Part IV is just clever arrangements of boxes.
A score has one staff line per instrument and you read the notes left to right. A circuit has one wire per qubit and you read the gates left to right. Each gate is a small unitary — a turn of the state — and a gate touching two wires (like CNOT) lets them talk. Play the score from left to right and the qubits’ joint state evolves, note by note, into the answer.
Picture an assembly line: each qubit rides its own conveyor belt (the wire), and stations along the belt (the gates) stamp or twist it as it passes. A few stations straddle two belts and link whatever is moving on them — that's a two-qubit gate like CNOT. Read the line left to right and you watch a blank input roll out finished.
Two qubits start in |00〉. Add gates left to right and the four amplitudes update live. Try the Bell pair preset — an H on the top wire, then a CNOT — and watch a plain product state turn into pure entanglement.
Each column of the circuit is one unitary acting on the whole register. Applying gate U₁ then U₂ means the state becomes U₂(U₁|ψ〉) — so the matrices stack up in reverse reading order:
A single-qubit gate on a 2-qubit register is secretly H⊗I — the gate on one wire, identity on the other. Tensor them up and the whole circuit is one big unitary; the diagram just spares you from writing the 4×4 matrices by hand.
“More wires means it tries exponentially many inputs at once, so more gates = more brute force.” A circuit only ever holds one evolving state. Yes, that state can be a superposition over 2ⁿ basis labels — but you only get one answer out when you measure.
The whole art of the next three chapters is interference: arranging gates so the wrong answers cancel and the right one is left standing. The power isn’t in evaluating everything — it’s in making almost everything destructively disappear.