← 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

Related entries

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.