The TOFFOLI gate, also known as the Controlled-Controlled-X gate.
cirq.CCNOT(
*args, **kwargs
)
Used in the notebooks
Used in the tutorials |
---|
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 .]]