Taffoli Gate
Definition
The Taffoli gate is a three-qubit gate that flips the state of the third qubit if the first two qubits are in the state . This gate is also known as the Controlled-Controlled-Not (CCX) gate or CCNOT gate. This gate was invented by Tommaso Toffoli in 1980. He invented this gate as a reversible version of the classical AND gate. The Toffoli gate is a universal gate, which means that any classical or quantum computation can be performed using only Toffoli gates. This is because the Toffoli gate is a universal gate for classical reversible computation.
PS: reversible computation is a computation that can be undone, which means that the input can be recovered from the output when the computation is reversed.
Effect on qubit
The Toffoli gate flips the state of the third qubit if the first two qubits are in the state . If the first two qubits are not in the state , the Toffoli gate does not change the state of the third qubit. This gate has no effect on the first two qubits. First two qubits are control qubits and the third qubit is the target qubit.
Types
The Toffoli gate has only one type.
Representation
Matrix representation
The matrix representation of the Toffoli gate is: