Questions: Bernstein-Vazirani Algorithm

3 questions to test your understanding

Score: 0 / 3
Question 1 Multiple Choice

In the Bernstein-Vazirani algorithm, what is the output state of the input register after the Hadamard-oracle-Hadamard sequence, before measurement?

A|0...0>
B|s> where s is the hidden string
CAn equal superposition of all n-bit strings
D|s_perp> — the bitwise complement of s
Question 2 True / False

The Bernstein-Vazirani algorithm uses the same circuit structure as Deutsch-Jozsa: Hadamard, oracle, Hadamard.

TTrue
FFalse
Question 3 Short Answer

Why does a classical algorithm need exactly n queries to find s, while the quantum algorithm needs only one?

Think about your answer, then reveal below.