A hidden string of bits costs one classical question per bit, or exactly one quantum question in total, so the Bernstein-Vazirani algorithm is the cleanest single-query win the field has.

An oracle holds a secret string of bits and, for any input string you send, returns a single bit, the parity, meaning whether the number of positions where both your input and the secret have a one is odd or even. Classically each query buys you one bit of the secret, so a secret of a given length costs that many queries, and no cleverness helps.
Bernstein and Vazirani ask once. Prepare the uniform superposition, the register holding every possible input at once with equal weight, let the oracle act, so it writes each parity into the sign of the corresponding amplitude rather than into a separate output, and then undo the superposition. The interference is total, so the register reads the secret string itself, with certainty, every time.
There's no probability, no repetition and no post-processing, so it's one query and one answer.
Bernstein-Vazirani is an algorithm witness in the same family as Deutsch-Jozsa and Simon, an oracle between two layers of Hadamard gates, and the corpus proves the strong version, that the full circuit's output is concentrated entirely on the secret string, with that outcome having probability one and every other outcome probability zero. Unlike the reduced analysis of Simon's algorithm, this is the complete circuit, superposition, oracle and undoing, with no measurement reduction along the way.
The standing disclaimer applies as ever, as the algorithms consume the programme's unitary-evolution pillar and don't support the foundations.
The circuit is H^n then the phase oracle |x> to (-1)^{<a,x>} |x> then H^n, on |0^n>. The output amplitude at y is (1/2^n) sum over x of (-1)^{<y+a, x>}, and the character sum reduces to 2^n [y = a], the Kronecker delta. The corpus proves outcome a with probability one (bv_certain) and every other outcome zero (bv_zero).
The content is one orthogonality of characters over F_2^n, and the algorithm is the observation that a single physical query evaluates all the parities in superposition.
Ethan Bernstein and Umesh Vazirani published the algorithm inside their 1993 STOC paper on quantum complexity theory, the paper that defined BQP and made quantum computation a complexity class rather than a curiosity. Vazirani, at Berkeley, went on to shape much of the field's theory, and Bernstein was his doctoral student.
Source links are pinned to a commit, so they do not drift. The anchors above are checked mechanically against the Lean tree on every build. The mathematics is not, and cannot be: that is a human responsibility and it rests with the author.
Part of Constraint-Surface Dynamics · Formalised in csd-lean4.
Google Analytics counts visits to this page, which stores cookies in your browser. They record how the page was reached, not who you are, and nothing is passed on. Blocking cookies for this site breaks nothing here. Details.