Docsity

Assignment 4 for Quantum Computing | COT 6600, Assignments of Computer Science

Toggle sidebar
bg1
COT 6600: Quantum Computing
Assignment 4
Out: 11/26/2007 Due: 12/03/2007
1. (20 points) Do Exercise 8.1.2
2. (20 points) Do Exercise 8.1.3
3. (20 points) Do Exercise 8.1.4
4. (Bonus) Do Exercise 8.1.1
5. (Bonus) Assume an Nitem search for Msolutions, with initial state |ψi.P0
xindicates
a sum over all xwhich are solutions to the search problem and P00
xindicates a sum over
all xwhich are not solutions to the search problem. Define the normalized states
|αi ≡ 1
√N−MX
x
00
|xi
|βi ≡ 1
√MX
x
0
|xi
Note that the initial state
|ψi=1
√NX
x|xi
can be expressed as
|ψi=rN−M
N|αi+rM
N|βi.
Let cos θ/2 = pN−M/N . Now we can rewrite |ψias
|ψi= cos(θ/2)|αi+ sin(θ/2)|βi.
1. Show that in the |αi,|βibasis, we may write the Grover iteration as
G=cos(θ/2) −sin(θ/2)
sin(θ/2) cos(θ/2)
where θis a real number in the range 0 to π/2, chosen so that
sin θ=2pM(N−M)
N.
Page 1 of 2
pf2

Partial preview of the text

Download Assignment 4 for Quantum Computing | COT 6600 and more Assignments Computer Science in PDF only on Docsity!

COT 6600: Quantum Computing

Assignment 4 Out: 11/26/2007 Due: 12/03/

  1. (20 points) Do Exercise 8.1.
  2. (20 points) Do Exercise 8.1.
  3. (20 points) Do Exercise 8.1.
  4. (Bonus) Do Exercise 8.1.
  5. (Bonus) Assume an N item search for M solutions, with initial state |ψ〉.

x indicates a sum over all x which are solutions to the search problem and

x indicates a sum over all x which are not solutions to the search problem. Define the normalized states

|α〉 ≡

N − M

x

′′ |x〉

|β〉 ≡

M

x

′ |x〉

Note that the initial state

|ψ〉 =

N

x

|x〉

can be expressed as

|ψ〉 =

N − M

N

|α〉 +

M

N

|β〉.

Let cos θ/2 =

N − M/N. Now we can rewrite |ψ〉 as

|ψ〉 = cos(θ/2)|α〉 + sin(θ/2)|β〉.

  1. Show that in the |α〉, |β〉 basis, we may write the Grover iteration as

G =

[

cos(θ/2) − sin(θ/2) sin(θ/2) cos(θ/2)

]

where θ is a real number in the range 0 to π/2, chosen so that

sin θ =

M (N − M )

N

Page 1 of 2

This means that G is simply a rotation by angle θ in the plane spanned by |α〉 and |β〉.

The intuition behind Grover’s algorithm is that with each application of G we get closer to the state |β〉. Let CI(x) denote the closest integer to the real number x. Repeating the Grover iteration

R = CI

(arccos

M/N

θ

times rotates |ψ〉 very close to |β〉. The angle between GR^ |ψ〉 and |β〉 is at most θ/2.

  1. Assume M  N so we have θ ≈ sin θ ≈ 2

M/N. Show that

R ≤ d

π

4

N

M

e

That is R = O(

N/M ).

Page 2 of 2