Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2024/ii/paper-1/10e/a/iii/solution

A final oracle call evaluates on the definite input :
Since modulo two is the parity of the Hamming weight of , this form also determines the last-qubit measurement.

New to topics? Read the docs here!