Question: Grover s Algorithm Consider the search problem: we have oracle access to x in { 0 , 1 } N , with unknown Hamming weight

Grovers Algorithm
Consider the search problem: we have oracle access to x in {0,1}N , with unknown Hamming weight
t =|x|. We want to find a solution, i.e., an index i in {0,..., N 1} such that xi =1. If x =0N then our
search algorithm should output no solution.
(a) Suppose we know an integer s such that t in {1,..., s}. Give a quantum algorithm that finds a
solution with probability 1, using O(sN ) queries to x.
Hint: Try running the exact version of Grover (see Prof. Ronald de Wolfs lecture notes in Chapter 7)
with different guesses for what the actual t is.
(b) Suppose we know that t in {s +1,..., N }. Give a quantum algorithm that finds a solution with
probability at least 12s, using O(sN ) queries to x.
(c) For given \epsi >0, give a quantum algorithm that solves the search problem with probability >=1\epsi
using O(pN log(1/\epsi )) queries, without assuming anything about t.
NB: The important part here is that the log(1/\epsi ) is inside the square-root; usual amplification by
O(log(1/\epsi )) repetitions of basic Grover would give the worse upper bound of O(N log(1/\epsi )) queries.1 Grover's Algorithm
Consider the search problem: we have oracle access to xin{0,1}N, with unknown Hamming weight
t=|x|. We want to find a solution, i.e., an index iin{0,dots,N-1} such that xi=1. If x=0N then our
search algorithm should output "no solution."
(a) Suppose we know an integer s such that tin{1,dots,s}. Give a quantum algorithm that finds a
solution with probability 1, using O(sN2) queries to x.
Hint: Try running the exact version of Grover (see Prof. Ronald de Wolf's lecture notes in Chapter 7)
with different guesses for what the actual t is.
(b) Suppose we know that tin{s+1,dots,N}. Give a quantum algorithm that finds a solution with
probability at least 1-2-s, using O(sN2) queries to x.
(c) For given >0, give a quantum algorithm that solves the search problem with probability 1-
using O(Nlog(1)2) queries, without assuming anything about t.
NB: The important part here is that the log(1) is inside the square-root; usual amplification by
O(log(1)) repetitions of basic Grover would give the worse upper bound of O(N2log(1)) queries.
Grover s Algorithm Consider the search problem:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!