Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C c Solution Created 2026-09-24 Updated 2026-09-29
The three controlled-NOT gates have directions , , and . On computational basis bits they act asBy linearity, the whole quantum circuit is the SWAP gate. Thereforeso and .
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 2 15C d i Solution Created 2026-09-24 Updated 2026-09-29
After the first Hadamard gate, the joint state isThe controlled SWAP gate then givesAfter the second Hadamard gate, it is
Three-CNOT decomposition of the SWAP gate Created 2026-09-24 Updated 2026-09-24