Sign in
← Atlas
Exact & formalGatesControlled gate

Controlled-X gate

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

controlled gateentanglementtwo qubit

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

Controlled-X is the bridge between a single-qubit operation and a multi-qubit circuit contract.

Circuit & simulation
Control 050%
Control 150%
What this takes and returns
Takes2 qubitsWhat joins here

Takes a 2-qubit register and states no assumption about what is on it. That is the whole condition: anything returning 2 qubits can feed it.

16 entries meet this end. Named below.

Returns2 qubitsWhat joins here

Returns a 2-qubit register a next stage can take. This is the end that joins.

11 entries meet this end. Named below.

A unitary. The same register goes in and comes out, and this entry states no assumption about what is on it — which is what lets anything of the same width feed it. See all 29 →

How it works

Controlled-XX (CNOT) acts on two qubits as CXc,t=c,tc\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=00I+11X\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(HI)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.

Implementation
Native
controlled-x.qasm
OPENQASM 3.0;
include "stdgates.inc";
qubit[2] q;
cx q[0], q[1];
Quantum vs classical

Classical baseline

Use a classical state-vector or matrix simulation at the same width, precision, and measurement objective.

Quantum claim

The quantum record demonstrates a state or operator behavior; it does not make classical simulation or communication costs disappear.

How to compare

Compare fidelity, samples, gate depth, noise, memory, and the cost of preparing and reading the state.

Declared gaps

Nobody has reviewed this record for gaps yet.

Literature & references
Quantum Computation and Quantum Information: 10th Anniversary Edition2010 · Michael A. Nielsen and Isaac L. Chuang

Standard graduate textbook covering the single- and two-qubit gate definitions, matrix identities, and circuit primitives this record states.

doi.org/10.1017/cbo9780511976667