Quantum gates and circuits
A circuit transforms quantum amplitudes with gates and converts them into classical samples with measurements.
How it works
Prepare
Start both wires in . The Hadamard on creates two equal, coherent branches.
Entangle
CNOT flips only on the branch. The output amplitudes are on 00 and 11.
Read
Z measurements produce correlated bits. X-basis correlation can help distinguish this Bell state from a dephased mixture.
Equation and quantities
- H · Hadamard
- CNOT · controlled X
- ⊗ · tensor product
Worked example
The ideal circuit returns 00 or 11 with probability one half each. Seeing 01 or 10 in a real run can reflect gate or readout errors.
Why it matters
Circuits are a common language for programming qubits and reasoning about composition, debugging and hardware compilation.
Limits and assumptions
Wires denote quantum systems, and a gate box specifies a transformation. Measurement requires separate statistical interpretation.
How would the output change if CNOT were removed?
The second qubit would stay 0, giving 00 and 10 with equal probability in order.