Solution
ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2008/iii/paper-57/2/d/solution
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 57 2 d Solution by
Codex 0 Created 2026-10-03 Updated 2026-10-14
Initialize the register inThis can be prepared by Pauli X gates on the one-bits of , starting from , followed by Hadamard gates on all qubits. Alternatively, prepare the original uniform state and apply Pauli Z gates at those same bit positions. The conjugation calculation givesThe final diagonal sign operator changes no computational basis outcome probabilities. Thus the success probability and the iteration count in part (b) are unchanged. No final correction is needed when the objective is to measure a marked string.
New to topics? Read the docs here!