A gate is a single step. A circuit is the whole recipe, written in gates.
What makes this more than bookkeeping is that a tiny toolbox goes a very long way. A universal gate setA small collection of gates that can be combined to build any quantum computation. Single-qubit gates plus the CNOT are enough., just the one-qubit gates plus the two-qubit CNOT gateA two-qubit gate that flips a target qubit only when a control qubit is 1. The standard two-qubit building block., can be strung together to approximate any operation on any number of qubits at all.1 So a designer never needs custom hardware for each new algorithm. They write a circuit out of the same few gates, the way any book is built from one alphabet.
Figure 1: A quantum circuit. Qubit wires run left to right through a sequence of gates and end in measurement; the count of wires is its width, the count of steps its depth.
Width, depth, and the noise budget
Two numbers size a circuit. Its width is how many qubitsThe basic unit of a quantum computer. Like a 'bit' in a normal computer, but instead of being only 0 or 1 it can be 0, 1, or a blend of both at once. it uses; its circuit depthThe number of sequential layers of operations a quantum computer can run before noise destroys the answer. The depth of a calculation, as opposed to its width. is how many steps deep the longest chain of gates runs.3 Depth is the one that hurts. Every gate is slightly wrong, and on real hardware those small errors stack up, so a circuit that runs too deep dissolves into what is effectively random noise before it can finish.3 Today's machines manage only on the order of a thousand gates before that happens.3
Depth is a budget. Spend more gates than the noise allows and the answer turns to gibberish.
The circuit is where any quantum speedup has to live. Every quantum algorithm, Shor's factoring and Grover's search among them, is in the end just a circuit.4, 3 That also sets the bar honestly: factoring a 2,000-bit number is estimated to need on the order of a hundred billion gates,4 against a present ceiling near a thousand. The distance between those two numbers is the whole engineering project. A quantum computer is only ever as useful as the circuits it can run to the end.
Sources
Barenco, A., Bennett, C. H., Cleve, R., DiVincenzo, D. P., Margolus, N., Shor, P., Sleator, T., Smolin, J. A. & Weinfurter, H. “Elementary Gates for Quantum Computation.” Physical Review A52, 3457–3467 (1995). DOI: 10.1103/PhysRevA.52.3457. Preprint: arXiv:quant-ph/9503016.
Mermin, N. D. “From Cbits to Qbits: Teaching Computer Scientists Quantum Mechanics.” American Journal of Physics71, 23–30 (2003). DOI: 10.1119/1.1522741. Preprint: arXiv:quant-ph/0207118.
Preskill, J. “Quantum Computing in the NISQ Era and Beyond.” Quantum2, 79 (2018). DOI: 10.22331/q-2018-08-06-79. Preprint: arXiv:1801.00862.
Montanaro, A. “Quantum Algorithms: An Overview.” npj Quantum Information2, 15023 (2016). DOI: 10.1038/npjqi.2015.23. Preprint: arXiv:1511.04206.