Suppose we have a function $f:\{0,1\}^n\rarr \{0,1\}$ with the property that for some string $a \in \{0,1\}^n$ the following holds for every string $x \in \{0,1\}^n$:
$$ f(x) = \begin{cases} 1 &\text{if }x = a \\ 0 &\text{otherwise} \end{cases} $$
Our goal is to discover what is $a$ (that is, the needle)
For this we are allowed to query the value of $f$ at specific strings. What is the value of $f$ at string $x$? That is, what is $f(x)$?
The goal is to discover what is $a$ by asking as few queries as possible.
With certainty:
Randomly (with prob $\geq \frac23$):
$$ ⁍ $$
Quantumly, we can solve this problem using
$$ ⁍ $$
queries.
→ This is a great improvement!
Suppose $n=20$.