Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2020/ii/paper-2/15c/c/solution

The three controlled-NOT gates have directions , , and . On computational basis bits they act as
By linearity, the whole quantum circuit is the SWAP gate. Therefore
so and .

New to topics? Read the docs here!