cirq.ops.CCNOT

The TOFFOLI gate, also known as the Controlled-Controlled-X gate.

If the first two qubits are in the |11⟩ state, this flips the third qubit in the computational basis, otherwise this applies identity to the third qubit.

The exponent=1 instance of cirq.CCXPowGate.

Matrix:

    [[1 . . . . . . .],
     [. 1 . . . . . .],
     [. . 1 . . . . .],
     [. . . 1 . . . .],
     [. . . . 1 . . .],
     [. . . . . 1 . .],
     [. . . . . . . 1],
     [. . . . . . 1 .]]