Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 15D c Solution Created 2026-09-24 Updated 2026-09-25
Use three controlled-NOT gates with control-target directionsOn computational-basis bits they act asThey therefore implement the Three-CNOT decomposition of the SWAP gate, and linearity proves the identity on every two-qubit state.