Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2019/ii/paper-3/10d/b/solution

When ,
One Grover search algorithm iteration therefore gives
The selective sign change is implemented with one application of the Boolean quantum oracle: prepare its answer qubit in and use quantum phase kickback, obtaining on each . The remaining operations , , and the final computational-basis measurement are independent of . Measurement of returns some with probability one, so exactly one query to suffices.

New to topics? Read the docs here!