Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2025/iii/paper-324/4/b/solution

Write and . Before measurement, the three controlled-NOT gates map a computational-basis component to
The measured bit is therefore . For , the unnormalized state of the first qubit is
For , it is
Each branch has probability ; after normalization and removal of the irrelevant global phase , the two outputs are
with equal probability. This is probabilistic phase-gate injection.

New to topics? Read the docs here!