Questions: Deutsch-Jozsa Algorithm

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

The Deutsch-Jozsa algorithm achieves an exponential speedup over classical algorithms for determining whether a function is constant or balanced. What type of speedup is this?

AExponential speedup over all classical algorithms including probabilistic ones
BExponential speedup over deterministic classical algorithms only — a randomized algorithm can solve it with high probability in O(1) queries
CPolynomial speedup similar to Grover's algorithm
DNo speedup — it is primarily of theoretical interest
Question 2 True / False

In the Deutsch-Jozsa circuit, the ancilla qubit is initialized to |1> rather than |0> before the Hadamard is applied. This is an arbitrary convention with no effect on the algorithm.

TTrue
FFalse
Question 3 Short Answer

Explain the role of interference in the Deutsch-Jozsa algorithm — specifically, why does the final Hadamard transform on the input register produce |0...0> for constant functions but never |0...0> for balanced functions?

Think about your answer, then reveal below.