Quantum Circuits
Quantum Circuits
Quantum circuits compose gates, measurements, and classical control to describe transformations and observable probabilities.
A quantum circuit represents a computation as operations on wires carrying qubits. In the usual drawing convention, time runs from left to right. Gates acting successively compose as linear maps; gates acting on separate systems combine by tensor product. Measurements produce classical outcomes that may control later operations. The underlying mathematical objects are quantum states and operations.
Gates and a Bell-state example
An ideal gate is unitary: . For a state vector it acts as ; on a density matrix it acts as . If executes before , their combined matrix is .
Starting with two qubits in , apply a Hadamard to the first qubit and a controlled-NOT with the first qubit as control:
Computational-basis measurements return 00 and 11 with probability each. Each individual qubit has reduced state , while the joint pure state is entangled. The same two measurement probabilities can arise from a classical mixture, so these observations alone do not certify entanglement.
Measurement and classical control
Measurement generally cannot be represented by a unitary on the measured register alone. If projectors describe a measurement and the outcome is ignored, the channel is
The branches are added as density matrices, not as probability amplitudes. If outcome instead selects a subsequent unitary , the unconditional output is . Keeping the classical outcome requires an explicit classical output register.
This distinction matters when translating circuits into quantum programming languages: classical feedback and coherent quantum control have different semantics.
Limitations
Circuit depth, available gates, connectivity, and measurement latency affect compilation and execution. A mathematical circuit specifies ideal behavior; physical gates and readout require an additional error model. Unbounded loops and recursion require richer descriptions than a single finite static circuit.
The Bell-state calculation is an introductory demonstration. It does not establish a hardware implementation's fidelity or prove a larger algorithm. Verification methods provide ways to formulate and check such claims, with explicit assumptions about inputs, observations, and numerical precision.
References
- Adriano Barenco et al. Elementary gates for quantum computation. Physical Review A 52, 3457-3467 (1995). DOI: 10.1103/PhysRevA.52.3457.
- Michael A. Nielsen and Isaac L. Chuang. Quantum Computation and Quantum Information, 10th Anniversary Edition. Cambridge University Press. DOI: 10.1017/CBO9780511976667.