Bernstein-Vazirani Algorithm
Part of Womanium Quantum + AI 2024 program
Definition
Bernstein-Vazirani algorithm is another algorithm that proves the quantum advantage and not designed to be practically effective for a specific task.
Problem
Let's define
Where
The goal is to query
Classically, we would need
Bernstein-Vazirani Algorithm
The algorithm is very similar to Deutsch-Jozsa Algorithm, except for the oracle used.
We start applying the algorithm from the initial state
Now we discard of the ancilla qubit and continue to apply the Hadamard gates.
Now, let's look at the state where
But we know that:
Therefore, we know that after applying the algorithm we will measure the string
Conclusion
Bernstein-Vazirani algorithm is another algorithm that proves the special advantage that quantum computers posses.
Its problem define a function that uses a secret string to apply an inner product with the input then give a 1 bit result. The algorithm shows how we can find the value of the secret string in one query of the function, where after the algorithm we will measure the value of the secret string.
The problem for Bernstein-Vazirani algorithm was specially tailored to show the quantum advantage and it doesn't have an effective practical use.