← Atlas

Gates · Two-qubit gate

DCX (double-CNOT) gate

A two-qubit permutation gate defined as two CNOTs with reversed control and target applied back to back — a genuinely different two-CNOT gate from SWAP (which uses three), and notable for not being self-inverse.

Exact & formalUpdated

View frozen graph

q[0]q[1]Step 1 of 1 · DCX · on q[0], q[1]DCX

1 step across 2 wires. Hover a step, or press play to go through them in order.

Expected outcomes

  • |01⟩ → |11⟩100%
  • |10⟩ → |01⟩100%
  • Steps1
  • Wires2
  • Qubits2
  • Depth2 CNOTs (definitional)
  • OrderDCX³ = I (period 3)
  • Papers2

DCX is useful less as an algorithmic primitive and more as a compiler/transpiler building block: it is literally the two-CNOT circuit that appears naturally when routing swaps are partially applied, and Qiskit exposes it as a named gate so transpilers do not have to re-recognize the pattern.

References

Exact & formal
  • Basis-state truth table
  • Unitary / matrix equivalence
  • Textbook / standard citation
Method
Track all four computational-basis inputs through CX(q0→q1) followed by CX(q1→q0) and compare the resulting permutation against the direct DCX definition.
Result
Pass · |00⟩→|00⟩, |01⟩→|11⟩, |10⟩→|01⟩, |11⟩→|10⟩, exactly the 3-cycle on {|01⟩,|10⟩,|11⟩} produced by the two-CNOT composition.
Qiskit DCXGate documentation ↗
Kind
curated reference
Reviewed by
Leona Quantum curation pass
License
CC BY 4.0-compatible reference metadata
double cnottwo qubitcliffordrouting

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