The quantum circuit model is the standard framework of quantum computing in which a computation is expressed as a sequence of quantum logic gates acting on a register of qubits, followed by measurement in a fixed basis. Also called gate-based quantum computing, it is the reference model behind most algorithms, compilers and hardware roadmaps in the field of quantum gates & circuits.
The model plays the same role that Boolean circuits play in classical complexity theory: it fixes what counts as one step, how cost is measured and which problems are considered efficiently solvable. Its central resources are the number of qubits, the number of gates and the circuit depth.
How the quantum circuit model represents a computation
A computation in the quantum circuit model has three phases: state preparation, unitary evolution and measurement. The register of n qubits usually starts in the all-zero computational basis state, a sequence of gates transforms it, and measurement converts the final quantum state into a classical bit string.
Each gate is a unitary operator acting on one, two or occasionally three qubits. Because gates act on few qubits at a time, a circuit is a local decomposition of a large unitary matrix of size 2^n by 2^n. Circuit diagrams draw qubits as horizontal wires, time flows from left to right, and gates appear as boxes or symbols placed on the wires they touch.
The output of a circuit is probabilistic. Measurement yields each bit string with a probability given by the Born rule, the squared magnitude of its amplitude. Practical runs therefore repeat the same circuit many times, called shots, and estimate a distribution or an expectation value from the samples.
The table below summarizes the building blocks that every circuit in this model contains.
| Component | Role in the circuit | Typical representation |
|---|---|---|
| Qubit wires | Carry quantum states through time | Horizontal lines labeled q0, q1, … |
| Single-qubit gates | Rotate one qubit’s state | Boxes such as H, X, T or Rz |
| Two-qubit gates | Create entanglement between qubits | CNOT or controlled-Z with a control dot |
| Measurement | Map a qubit to a classical bit | Meter symbol linked to a classical wire |
| Classical wires | Store measured bits for control or output | Double lines below the qubit wires |
Universality and cost measures
The model is universal because a small, finite set of gates can approximate any unitary operation to arbitrary precision. A common universal gate set is the Clifford gates H, S and CNOT plus the T gate. The Solovay–Kitaev theorem guarantees that the approximation overhead grows only polylogarithmically in the inverse error, so the choice of a universal set does not change which problems are efficiently solvable.
Clifford gates alone are not enough. The Gottesman–Knill theorem shows that circuits built only from Clifford gates, computational basis preparation and Pauli measurements can be simulated efficiently on a classical computer. Non-Clifford gates such as T are therefore the source of potential quantum advantage and, in fault-tolerant designs, often the most expensive resource.
Complexity in this model is measured with several counts, each relevant to a different engineering question.
| Measure | What it counts | Why it matters |
|---|---|---|
| Width | Number of qubits, including ancillas | Limited by hardware size |
| Gate count | Total number of gates | Determines accumulated error |
| Circuit depth | Layers of gates that run in parallel | Must fit within coherence time |
| Two-qubit gate count | Entangling operations only | Dominant error source on current devices |
| T count and T depth | Non-Clifford gates and their layers | Drives fault-tolerant overhead |
The complexity class BQP is defined in terms of this model: it contains decision problems solvable by uniform families of polynomial-size circuits with bounded error probability.
Comparison with other models of quantum computation
The quantum circuit model is one of several computationally equivalent models. Measurement-based quantum computing, adiabatic quantum computation and the quantum Turing machine can all simulate one another with polynomial overhead, yet they suggest different hardware designs and different ways of thinking about algorithms.
| Model | Basic operation | Relation to the circuit model |
|---|---|---|
| Quantum circuit model | Discrete gates on few qubits | Reference model |
| Measurement-based model | Single-qubit measurements on a cluster state | Equivalent with polynomial overhead |
| Adiabatic computation | Slow evolution of a Hamiltonian | Polynomially equivalent in theory |
| Quantum annealing | Heuristic, noisy adiabatic evolution | Not proven universal in practice |
| Quantum Turing machine | Tape-based transition rules | Equivalent, rarely used in practice |
The circuit model also differs from analog quantum simulation, where a device directly reproduces the Hamiltonian of a physical system. Analog simulators can be efficient for narrow tasks, but they lack the programmability and error-correction path that gate-based machines offer.
From abstract circuits to hardware
Abstract circuits must be compiled to the native gate set of a specific device before they run. Superconducting processors often expose rotations plus a controlled-Z or iSWAP-type gate, while trapped-ion systems typically provide a Mølmer–Sørensen entangling gate and arbitrary single-qubit rotations.
Compilation, often called transpilation, involves several steps that each change the cost of the circuit.
- Gate decomposition rewrites multi-qubit gates such as Toffoli into native one- and two-qubit gates.
- Qubit mapping and routing inserts SWAP gates when interacting qubits are not physically connected.
- Optimization passes cancel redundant gates and merge consecutive rotations.
- Scheduling assigns gates to time slots and inserts dynamical decoupling where idle qubits decohere.
Modern devices extend the textbook model with mid-circuit measurement, classical feed-forward and qubit reset. These dynamic circuits are essential for quantum error correction, where syndrome measurements on ancilla qubits must occur repeatedly while the computation continues.
Limitations and common misconceptions
The idealized model assumes perfect unitary gates, but real gates have error rates of roughly 0.1 to 1 percent for two-qubit operations on current hardware. Without error correction, useful circuit size is limited to a few thousand gates at most, which defines the noisy intermediate-scale quantum era.
Several misunderstandings about the model recur in practice.
| Misconception | Reality | Consequence |
|---|---|---|
| A circuit returns one exact answer | Output is a sampled distribution | Many shots are required |
| More qubits always mean more power | Gate fidelity and depth limit usefulness | Quality metrics matter more |
| Gate count equals runtime | Parallel layers set the duration | Depth is the better time proxy |
| Any unitary is cheap to build | Most unitaries need exponentially many gates | Efficient circuits are rare |
A counting argument shows that almost all n-qubit unitaries require exponentially many gates. Efficient quantum algorithms exploit special structure, such as the periodicity found by the quantum Fourier transform, rather than arbitrary transformations.
In simple terms
The quantum circuit model is a recipe format for quantum programs. It lists which operations happen to which qubits and in what order, much like sheet music lists which notes each instrument plays and when.
Each step is a small, reversible operation on one or two qubits. At the end, the qubits are read out, and the result is a string of zeros and ones. Because quantum results are random, the program is run many times and the most frequent answers are kept. The key idea is that complex quantum behavior is built from simple, standard steps.
A practical example
A research team in a chemistry department wants to estimate the ground-state energy of a small molecule on a cloud-accessible superconducting processor with 27 qubits. The team writes a variational circuit of eight qubits with rotation gates and CNOT layers, then submits it through a software development kit.
The compiler maps the circuit onto the chip’s heavy-hexagon connectivity, inserting 14 SWAP gates and raising the two-qubit gate count from 42 to 84. Recognizing that this doubles the error budget, the team reorders the qubits to match the hardware layout, which brings the count back to 50.
Each circuit variant runs with 4,000 shots. The final energy estimate lands within chemical accuracy after error mitigation, and the team concludes that circuit depth, not qubit count, was the limiting factor for the experiment.