= Quantum circuit
{wiki}
A quantum circuit specifies a sequence of operations on a quantum register, usually drawn with wires for <qubits> and boxes for <quantum gates>. Reading from input to output gives the order of composition; two gates acting on separate registers combine through a <tensor product>.
For example, a <Hadamard gate> on the first qubit followed by a <controlled-NOT gate> prepares $(|00\rangle+|11\rangle)/\sqrt2$ from $|00\rangle$, making a <Bell state>. The circuit describes evolution of amplitudes, while the <Born rule> predicts the statistics of the final measurement.
General circuits can include preparations, measurements, discarded subsystems and classically controlled later operations, as well as unitary gates. Circuit size and depth measure different costs: many independent gates can occupy one layer, whereas a chain of dependent gates requires successive layers. Translating an ideal circuit into hardware also requires a noise and connectivity model.
Back to article page