Skip to content
Current section
The Quantum Computing Enthusiast’s Hub
Saved
All sections

All sections

Saved
Skip Learn navigation
Encyclopedia
Topic

Quantum circuit model

A computational description of quantum operations arranged in a causal sequence on identified registers.

Edition released Coverage: Overview · Technical
On this page

Definition and significance

A quantum circuit specifies which operations act on which systems and when later operations depend on earlier outcomes. Horizontal wires conventionally represent persistent quantum systems, not particles travelling through a drawing. A gate symbol denotes a mathematical operation; it does not by itself specify a microwave pulse, laser, or other physical implementation. The circuit model separates a scientific algorithm from the engineering needed to realize it.

A circuit may include unitary transformations, preparation, measurement and classically controlled operations. A diagram containing only unitary gates describes a closed-system idealization. Once measurement outcomes are discarded or uncontrolled environments are included, the general description is a quantum channel. The distinction matters when comparing an ideal algorithm to the experiment intended to implement it.

Mechanism and mathematical treatment

For an n-qubit pure input, the state is a vector in a space of dimension 2^n. With column vectors and chronological operations U1 followed by U2, the final state is U2 U1|psi>. An operation on one register is extended by identities on the other registers. Throughout this entry, |q0 q1> lists q0 first and treats it as the most significant tensor factor. A two-qubit controlled-X with q0 as control acts as |a,b> -> |a,b XOR a>.

Measurement of a computational-basis state label x has probability |<x|psi>|^2. If the circuit branches on an outcome m, its description must retain both the probability of m and the conditional state. Replacing every branch by its average state can lose correlations needed by later feed-forward.

Fully worked reference example

Start with |00>. Apply H to q0: (|00>+|10>)/sqrt(2). Apply controlled-X from q0 to q1: (|00>+|11>)/sqrt(2). The computational outcomes are therefore 00 and 11, each with probability 1/2. Measuring only q0 gives a random bit; conditional on its value, q1 is 0 or 1 respectively. Tracing out q0 instead gives rho1=I/2. These are two descriptions of different available information, not inconsistent predictions.

If H is applied again to q0 before either qubit is measured, the state becomes (|00>+|10>+|01>-|11>)/2. All four computational outcomes now have probability 1/4 even though the state remains entangled. Thus a distribution over one chosen measurement basis does not characterize the complete circuit output.

Limitations and common misconceptions

A circuit diagram is not an execution-time estimate. Parallel gates may have different durations; measurement and feed-forward can dominate latency. Gate count also excludes state preparation and data-loading costs unless explicitly included. A circuit with entangled intermediate states is not automatically classically intractable: stabilizer circuits provide an important counterexample. Never label a statevector simulator's exact amplitudes as experimentally observed amplitudes.

Scientific relationships

Gate sequences realize operations in the circuit description.

A textual program can specify gates, measurements and classical control.

A Hamiltonian path supplies another computational formulation under appropriate conditions.

Historical source context

The 1995 paper by Barenco and collaborators systematically developed elementary-gate decompositions and universality results. It is a foundational reference for this entry, not a claim that all circuit ideas originated in that paper.

A circuit with a recorded environment outcome

A useful extension of the circuit model is an explicit instrument: a collection of quantum operations indexed by a classical outcome. Consider one system qubit S and a fresh environment qubit E. Keep S as the leftmost tensor factor. Prepare S in sqrt(3)|0>/2+|1>/2 and E in |0>. An amplitude-damping dilation with damping probability gamma=1/4 acts on the relevant input subspace as |00> -> |00> and |10> -> sqrt(3)|10>/2+|01>/2. These two output vectors are orthonormal, so the map can be completed to a two-qubit unitary. Its action on the unused environment-input subspace is unnecessary for this calculation but must be supplied in an implementation.

The joint output is sqrt(3)|00>/2+sqrt(3)|10>/4+|01>/4. Measuring E gives outcome zero with probability 15/16 and outcome one with probability 1/16. Conditional on zero, the normalized system state is (2|0>+|1>)/sqrt(5). Conditional on one, it is |0>. The outcome probabilities multiply the normalized conditional states when reconstructing the unconditional result. This distinction prevents the common error of adding conditional density matrices without their weights.

After discarding the outcome, the system density matrix is [[13/16,3/8],[3/8,3/16]]. The upper-left population includes both the original ground-state population 3/4 and the decayed excited population 1/16. The off-diagonal entry is the original sqrt(3)/4 multiplied by sqrt(1-gamma)=sqrt(3)/2. Its determinant is 3/256, which is positive, confirming that this particular unconditional output is mixed even though every conditional branch is pure.

Feed-forward changes the mathematical map

Now specify a different circuit: apply X to S if and only if E was measured as one. The zero branch is unchanged; the one branch becomes |1>. The unconditional system matrix is then [[3/4,3/8],[3/8,1/4]]. Its determinant is 3/64. Although the environment outcome occurred rarely, using it changes both populations and purity. Averaging first and then applying one unconditional gate does not implement this branch-dependent transformation.

Write M0=diag(1,sqrt(3)/2) and M1=|0><1|/2. The recorded operation is rho -> sum_m |m><m| tensor M_m rho M_m dagger, with the classical register written first in this expression. Discarding that register produces the damping channel. Conditional feedback replaces M1 with X M1=|1><1|/2. The completeness relation M0 dagger M0+M1 dagger M1=I guarantees that outcome probabilities sum to one. It continues to hold after feedback because X dagger X=I.

This gives a precise specification that a textual or graphical circuit must preserve: the initial state, the unitary dilation, the measured system, the outcome-to-action rule, and whether the outcome remains available at the output. Two drawings with identical unitary boxes can denote different channels if their classical wires differ. Equivalence checking must therefore declare whether it compares conditional branches, the joint classical-quantum output, or only the averaged quantum state.

A complete small execution ledger

An ideal simulator can execute the example by storing a pair (probability, normalized state) for each live branch. Initially the ledger contains (1,psi). After the environment measurement it contains (15/16,(2|0>+|1>)/sqrt(5)) and (1/16,|0>). Feedback changes only the second state. An expected observable is calculated as the sum of branch probability times branch expectation. For Z after feedback this gives (15/16)(3/5)+(1/16)(-1)=1/2, agreeing with the density matrix. For X it gives (15/16)(4/5)=3/4.

A sampled execution instead chooses a branch according to its probability and returns one outcome. Repeating that process estimates the same expectations, but a finite sample is not the exact ledger. A density-matrix execution can avoid enumerating classical outcomes when they will never affect later operations. When future controls depend on them, a simulator must retain enough classical state to distinguish the relevant branches or represent their correlation in a larger object.

The resource ledger also separates mathematical width from scheduling. This dilation has two quantum wires while both systems coexist; it has one measurement and potentially one conditional gate. A physical reset used to recycle E is another operation. If feedback is slow, the elapsed time can exceed that of several unitary layers. A fair classical comparison for this one-qubit example is direct multiplication of two-by-two matrices, which solves the problem with negligible resources and gives all listed quantities without sampling.

Sources

  • A. Barenco et al. · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevA.52.3457
    Verification scope

    Selected source text checked ·

    Source anchors gate-decomposition conventions. New worked instances are independent mathematical constructions, not reported experiments.

  • Scott Aaronson; Daniel Gottesman · · Research paper · Publication status unspecified · arXiv · DOI 10.1103/PhysRevA.70.052328
    Verification scope

    Selected source text checked ·

    Simulation statements require specified stabilizer inputs, operations and measurement access.