What is the grover's algorithm?
This search task is to find a blue color out of $N$ cases. Each box when checked will reveal true$(1)$ or false$(0)$. In other words : Find $x$ such that $f(x)= k$ , in this case, $x$ can represent all possibilites (this is called a superposition), where $k = 0,1$.
This could solve problems like trying to find the best move in a chess game or the best route between two cities with $n$ transits.
🔴 | 🔴 | 🔴 | 🔵 | $\cdots$ | 🔴 |
---|---|---|---|---|---|
$1$ | $2$ | $3$ | $w$ | $\cdots$ | $N=2^n$ |
As Lov Grover would say, the search helps you find a needle in the haystack :
This falls under a so-called "the fast database search".
Grover's algorithm is a quantum algorithm for searching an unsorted database with N entries in $O(N^{1/2)}$ time and using $O(\log N)$ storage space (see big O notation). It was invented by Lov Grover in 1996.
Play quantum card test, to see the demonstration of this on IBM's quantum experience:
This presents a 2 qubit example of Grover’s Search algorithm.
Could Grover’s quantum algorithm help in searching an actual database?
This question is not aimed at the internet search but perhaps a quantum internet. Everything available on the internet can’t be searched with Grover’s algorithm as the internet is not quantum. Also this question is refering to unordered databases.
Christof asked this question in 1999, in 2009 Google started looking at this phenomenon :
Even before you search, Google organizes information about webpages in our Search index. The index is like a library, except it contains more info than in all the world’s libraries put together.
Arguments and Comparison
Proponents of classical search algorithm would say this approach requires expensive quantum hardware since all the addressing system would have to work in superposition.
Classical: We would need to check $\frac{N}{2}=2^{n-1}$ of the boxes on average, in order to find the present.
Quantum : we can find the marked item in roughly $\sqrt{N}$ steps with Grover’s amplitude amplification trick. A quadratic speedup is indeed a substantial time-saver for finding marked items in long lists.
First, we need to be able to implement the unitary. A common way to encode such a list set $f(w)=1$ for the winner and $f(x)=0$ for all unmarked items $x$. To use a quantum computer for this problem, we must provide the items in superposition to this function, so we encode the function into a unitary matrix called an oracle. First we choose a binary encoding of the items $x$, $w\in \left{0,1\right}^n$ so that $N=2^n$; now we can represent it in terms of qubits on a quantum computer.Then we define the oracle matrix Uf to act on any of the simple, standard basis states $|x⟩$ by $Uf\left| x \right\rangle=(-1)^{f(x)}\left|x\right\rangle \implies Uf\left| w \right\rangle=-\left| w \right\rangle$
Any guess of its location is as good as any other, which can be expressed in terms of a quantum state called a uniform superposition:The superposition doesn't give us any information about the general state of the system.
Initial State : $\left| s \right\rangle = H^{\otimes n}\left|0\right\rangle^n = \frac{1}{\sqrt{N} }\Sigma_{x=0}^{N-1}\left|x \right\rangle$ , since $| w⟩$ is one of the basis vectors, the overlap is $\left\langle w| s \right\rangle = \dfrac{1}{\sqrt{N}}$
In the Netherlands,TUDelft is working on a quantum internet between four hubs: Delft, Amsterdam, Leiden en The Hague.
The steps of Grover's algorithm are as follows:
Further Notes:
Quantum Zoo
This blog is writen by Jonas.
Thoughts and comments are always welcome. As always, thanks for reading.