This post covers the CCNOT gate in quantum programming.
CCNOT Gate
The CCNOT or Toffoli gate inverts the third qubit in a multipart qubit. This only happens if the first and second qubits are jv. So, the first and second qubits are the control bits and the gate works as follows:.
- CCNOT*|j^j^j^> =
- = |j^j^j^>
- CCNOT*|jvjvj^> =
- = |jvjvjv>
- CCNOT*|jvjvjv> =
- = |jvjvj^>
Conclusion
Check out the use of the CCNOT in the Bellagio circuit in a later post.
Next: CZ Gate
Previous: AH2 Haadamard Gate