Bernstein-Vazirani algorithm
ID: bernstein-vazirani-algorithm
The Bernstein-Vazirani algorithm identifies the coefficient string of a linear Boolean function with one Boolean quantum oracle call. It contrasts with the calls required by the classical query complexity of linear Boolean function identification. Prepare the data qubits at and an ancilla qubit at , apply a Hadamard gate to every wire, query the function oracle, and apply the Hadamard gates again. The full output is .
The mechanism is Bernstein-Vazirani phase kickback. The Pauli X gate has eigenvector with eigenvalue . Thus the target flips become relative quantum phases on the data, givingThe final Hadamard transform maps this product to , so computational-basis measurement recovers every coefficient with certainty. The ancilla preparation for the Bernstein-Vazirani algorithm ensures the required minus sign, and the Hadamard-conjugated linear oracle gives an exact quantum circuit interpretation. One query is optimal for , since without a query the output cannot depend on the unknown string.
The Bernstein–Vazirani algorithm is a quantum algorithm that solves a specific problem faster than any classical algorithm. It was introduced by Ethan Bernstein and Umesh Vazirani in 1993 and is particularly noteworthy because it showcases the potential power of quantum computation over classical methods.
New to topics? Read the docs here!