BV

Bernstein-Vazirani Algorithm

Core Primitives

Given a black-box function f(x) = a.x (mod 2) for a hidden n-bit string a, the algorithm recovers a with a single query by encoding the oracle's phase into a superposition and applying Hadamard transforms. A classical machine needs n queries, one per bit, because each answer reveals only one linear equation at a time.

Key fact1 quantum query vs n classical queries to identify the hidden string a.
Leader lensA clean, real query separation, and the direct ancestor of the phase-kickback technique used across the field. Still an oracle problem, not an application.