Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 58 3 a Solution Created 2026-10-03 Updated 2026-10-07
This is the Deutsch-Jozsa test with an arbitrary uniform-state unitary, and does not require to be a power of two. Choose a known unitary operator such that . Prepare the target qubit in . One Boolean-oracle call gives quantum phase kickback:Apply to the index register. The amplitude on isIt equals or for the two constant strings, and equals zero for a balanced string. Consequently a single query decides the promised problem exactly: measure the index register and report constant for outcome zero, balanced for any other outcome. This is the Deutsch-Jozsa algorithm with the available exact state-preparation operation.
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 10D b ii Solution Created 2026-09-24 Updated 2026-10-03
In either promised case, construct by the one-query procedure in part (a), apply the Walsh-Hadamard transform to its two qubits, and perform a quantum measurement in the computational basis. The outcome is certainly for case (i) and certainly for case (ii). ThereforeThis is a two-bit instance of Bernstein-Vazirani phase kickback, and also a promised Deutsch-Jozsa test.
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 2026 ii Paper 3 10E iii Solution Created 2026-09-24 Updated 2026-09-25
For perfect balance, and the all-zero probability is zero. For other balances the one-shot outcomes overlap the constant case. Repeat Deutsch-Jozsa algorithm and declare nonconstant upon any nonzero result. Constants are never misclassified; a -balanced function fails after trials with probability , . It suffices that , using that many oracle calls.