Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2022/ii/paper-4/10d/c/solution

The known circuit from part (b) lets us apply without querying the faulty oracle. Their composition satisfies
Because , only the last answer qubit is flipped in the exceptional case.
Prepare the answer register as
Since , quantum phase kickback gives, for an arbitrary search-register state,
The answer register is unchanged and factors out. The induced operation on the first register is therefore
This is the marked-state phase oracle from a single faulty identity-oracle query.

New to topics? Read the docs here!