Site Tools


quantum-gate-ccx

Table of Contents

CCX gate (Toffoli)

CCX (also Toffoli or Controlled-Controlled-X) is a three-qubit gate: flips the target qubit if both control qubits are . The quantum AND gate and is universal for reversible classical computation.

Action: where are controls and is target. Flips target only if both controls are 1.

Basis state mapping: . Swaps .

Properties

  • Self-inverse:
  • Universal: CCX alone is universal for reversible classical computation (can build AND, NAND, etc.)
  • Quantum universal (with Hadamard): CCX + single-qubit gates form universal quantum gate set
  • Reversible: implements reversible classical logic

Uses

  • Quantum arithmetic: addition, subtraction, multiplication in quantum algorithms
  • Classical simulation: Deutsch-Jozsa and related algorithms
  • Reversible computing: designing reversible classical circuits
  • Error correction: appears in quantum error correction codes

Decomposition

  • Gate cost: ~6 CX gates + ~10 single-qubit gates
  • Complexity: expensive operation; avoid when possible
  • Note: complex multi-gate sequence (standard decomposition lengthy)

Implementation

  • Superconducting qubits: via gate decomposition; ~30–50 ns for single CCX or longer for full decomposition
  • Trapped ions: scalable decomposition via laser interactions
  • Photonic: probabilistic schemes or post-selection
  • Development: some platforms creating native CCX implementations

Dual gate

  • CSWAP (Fredkin): swaps two qubits if third is ; also universal for reversible classical computation
quantum-gate-ccx.md · Last modified: