t b a b a
t b a b a
t b a b a
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CHAPTER 3<br />
GROVER’S ALGORITHM<br />
3.1 Grover’s Searching Algorithms<br />
Figure 3.1: The steps required by Grover’s algorithm.<br />
Consider a search space Tsearch = {Ex} consisting of N = 2 n elements. Each element<br />
Ex, 0 ≤ x ≤ 2 n − 1, is uniquely identified by a binary n-tuple x, called the index of the<br />
element. We assume that M ≤ N elements satisfy the requirements of a query and we wish<br />
to identify one of them.<br />
The classic approach is to repeatedly select an element Ej, decide if the element is a<br />
solution to the query, and if so, terminate the search. If there is a single solution (M = 1)<br />
then a classical exhaustive search algorithm requires O(2 n ) iterations.<br />
36