Class CCXGate

All Implemented Interfaces:
Gate

public final class CCXGate extends ThreeQubitGate
Toffoli (Controlled-Controlled-X or CCX) quantum gate.

A three-qubit gate that applies an X gate (bit flip) to the target qubit only if both control qubits are |1⟩. The Toffoli gate is a universal reversible gate and is fundamental in quantum computing for implementing classical logic gates reversibly. It is the quantum equivalent of the AND gate for quantum circuits.

  • Constructor Details

    • CCXGate

      public CCXGate()
  • Method Details

    • name

      public String name()
      Description copied from interface: Gate
      Get the name of this gate (e.g., "H", "X", "CNOT").
      Returns:
      the gate name