Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 10D b Solution Created 2026-09-24 Updated 2026-10-03
When ,One Grover search algorithm iteration therefore givesThe 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.
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 15C b i Solution Created 2026-09-24 Updated 2026-10-03
Starting from , the first layer of Hadamard gates givesThe Boolean quantum oracle then givesUsing the Walsh-Hadamard transform identitythe final state is
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 2 10D Solution Created 2026-09-24 Updated 2026-09-25
Apply a Hadamard gate to every qubit. The amplitude of becomesIt equals in case (I) and in case (II). A computational-basis measurement therefore returns with certainty in case (I) and never returns it in case (II). This is the Deutsch-Jozsa algorithm.
For the distributed problem, Alice preparesusing one query to her quantum oracle, and sends these qubits to Bob. Bob applies his phase oracle, producingThe function is constant zero in case (1) and balanced in case (2). Bob applies and measures as above: outcome identifies case (1), while every other outcome identifies case (2), with certainty.
Past exam of the mathematics course of the University of Cambridge 2023 iii Paper 324 3 ii Solution 2026-09-28
If some integer obeys , ordinary amplitude amplification already gives exactly. For a general known , use exact amplitude amplification. Choose so thatand put . Append an ancilla and coherently arrange that its designated good value has amplitude conditional on the original register being good. With the enlarged good subspace defined bythe starting state's total good amplitude is .
Apply the amplitude amplification theorem times to this enlarged problem. Its final good amplitude isThe Boolean quantum oracle implements the reflection by phase kickback, and the known state-preparation circuit implements the reflection about the starting state by prepare--reflect--unprepare. A final computational-basis measurement therefore yields an with with certainty.