Quantum circuit model

Also known as: gate-based quantum computing

On this page 7

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.

ComponentRole in the circuitTypical representation
Qubit wiresCarry quantum states through timeHorizontal lines labeled q0, q1, …
Single-qubit gatesRotate one qubit’s stateBoxes such as H, X, T or Rz
Two-qubit gatesCreate entanglement between qubitsCNOT or controlled-Z with a control dot
MeasurementMap a qubit to a classical bitMeter symbol linked to a classical wire
Classical wiresStore measured bits for control or outputDouble lines below the qubit wires
Components of a quantum circuit

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.

MeasureWhat it countsWhy it matters
WidthNumber of qubits, including ancillasLimited by hardware size
Gate countTotal number of gatesDetermines accumulated error
Circuit depthLayers of gates that run in parallelMust fit within coherence time
Two-qubit gate countEntangling operations onlyDominant error source on current devices
T count and T depthNon-Clifford gates and their layersDrives fault-tolerant overhead
Main cost measures in gate-based quantum computing

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.

ModelBasic operationRelation to the circuit model
Quantum circuit modelDiscrete gates on few qubitsReference model
Measurement-based modelSingle-qubit measurements on a cluster stateEquivalent with polynomial overhead
Adiabatic computationSlow evolution of a HamiltonianPolynomially equivalent in theory
Quantum annealingHeuristic, noisy adiabatic evolutionNot proven universal in practice
Quantum Turing machineTape-based transition rulesEquivalent, rarely used in practice
Gate-based computing compared with alternative models

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.

MisconceptionRealityConsequence
A circuit returns one exact answerOutput is a sampled distributionMany shots are required
More qubits always mean more powerGate fidelity and depth limit usefulnessQuality metrics matter more
Gate count equals runtimeParallel layers set the durationDepth is the better time proxy
Any unitary is cheap to buildMost unitaries need exponentially many gatesEfficient circuits are rare
Frequent misconceptions about the circuit model

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.