Solution

ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2020/quantum-information/3/c/solution

The phase oracle multiplies an unmarked basis vector by and a marked one by . Thus the state after the oracle is
Its squared norm is . All computational outcomes would still have probability if measured at this point: the oracle has changed the relative phase, not the magnitudes of the amplitudes. The following reflection converts that phase information into a changed probability distribution through quantum interference.

New to topics? Read the docs here!