Skip to main content
. 2019 Aug 15;21(8):800. doi: 10.3390/e21080800
Algorithm 1: Bernstein and Vazirani [19,20]
  Proceed with the following steps.
  1. Prepare an n-qubit query register and an additional answer qubit in the state 0n1.

  2. Apply the Walsh-Hadamard transform to the query register and the output qubit.

  3. Apply the oracle.

  4. Apply the Walsh-Hadamard transform to the query register.

  5. Measure the query register in the computational basis.

  The measurement in the last step will reveal the secret string s.