← Atlas

Gates · Controlled gate

Controlled-X gate

The canonical two-qubit controlled operation used to create correlation and entanglement.

Exact & formalUpdated

View frozen graph

A small worked example, computed in your browser. It is not a result from this record's papers.

CX on a superposed control is what makes entanglement

Two qubits: qubit 0 put into |+⟩, qubit 1 left at |0⟩. On a control that is definitely 0 or definitely 1, CX is just a conditional NOT; on a control in superposition it is something a classical circuit has no version of.

q0q1Step 1 of 2 · HHStep 2 of 2 · CXCX

Step 1 of 2 · H

Probability of each outcome after this step

  • 0050%
  • 0150%
  1. Puts the control into an equal superposition of 0 and 1. Qubit 1 is untouched and still reads 0 with certainty; at this point each qubit still has a state of its own.

    Probability spreads from 1 outcome to 2. All 2 are equally likely.

  2. Flips qubit 1 in the branch where qubit 0 is 1, and leaves it alone in the branch where qubit 0 is 0 — both at once. Neither qubit has a state of its own after this; only the pair does.

    Probability moves: 1 outcome appears that had none, 1 drops to zero, 2 carry probability now. Up: 11 0.0% → 50.0%. Down: 01 50.0% → 0.0%. This is the step that entangles the qubits: from here on no single qubit has a state of its own, only the register as a whole does.

Readout Measuring gives 00 or 11, each half the time, and never 01 or 10: the two qubits always agree, without either of them having been a definite value beforehand. This two-gate circuit is the Bell pair, and it is the smallest entangled state there is.

Open in Studio
  • Steps1
  • Wires2
  • Qubits2
  • Depth1 gate
  • Outcomesconditional
  • Papers1

Controlled-XX (CNOT) acts on two qubits as CX∣c,t⟩=∣c,t⊕c⟩\mathrm{CX}|c,t\rangle = |c, t\oplus c\rangle: the target flips exactly when the control is ∣1⟩|1\rangle, the truth table this record checks directly against the four computational-basis inputs. In matrix form, CX=∣0⟩⟨0∣⊗I+∣1⟩⟨1∣⊗X\mathrm{CX}=|0\rangle\langle0|\otimes I + |1\rangle\langle1|\otimes X, a 4×44\times4 permutation matrix that is its own inverse, CX2=I\mathrm{CX}^2=I. Applied after a Hadamard on the control, CX(H⊗I)∣00⟩=12(∣00⟩+∣11⟩)\mathrm{CX}(H\otimes I)|00\rangle = \frac{1}{\sqrt2}(|00\rangle+|11\rangle), the Bell state this catalog's entangling-action check reproduces — the second half of the verification claim. CNOT is a maximally entangling two-qubit gate: together with arbitrary single-qubit rotations it forms a universal gate set, and physically it is the standard native (or compiled) two-qubit interaction most hardware backends expose, making it the workhorse for building larger controlled operations.

References

Exact & formal
  • Basis-state truth table
  • Verified by construction
  • Peer-reviewed paper
Method
Compare the computational-basis truth table and Bell-state construction.
Result
Pass · target flips exactly when the control is |1⟩.
OpenQASM 3 standard gate set ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
controlled gateentanglementtwo qubit

Atlas stars stay in the public catalog. Saving this entry to your workspace starts an unstarred private copy.