代写MACM 476: Quantum Algorithms Assignment 4代写数据结构语言程序

MACM 476:  Quantum Algorithms

Assignment 4

Due at 11:59pm on MARCH 30. All solutions must be in LATEX’ed PDF form.

Question 1 [7 points]: Coset states and Generalized Simon

Recall that the dot product on the vector space is defined as x · y = x1y1  ⊕ x2y2 ⊕ · · · ⊕ xnyn  where x = (x1, x2,..., xn) and y = (y1, y2,..., yn). For any subspace S of , define the orthogonal complement of S with respect to the dot product as

1. Let and show that

Hint: show that for any z ∈ , either z ∈ S or z · s = 0 for exactly half the elements of S.

2.  Show that Simon’s algorithm works with no changes to the quantum part to solve the Boolean hidden subgroup problem. Explicitly, given a linear subspace S of Z2(n)  and f(x) = f(y) if and only if

x = y ⊕ s for some s ∈ S, find a basis for S.  You should sketch an algorithm in pseudo-code.

Question 2 [3 points]: Factoring, classically

In this question we will factor the number 21 classically.  You do not have to show your calculations and you may find it useful to use a calculator or program to calculate the GCD. If it were me, I would probably write a program to do it.

1.  Compute the period of f(x) = 5x   mod 21 — that is, find the smallest integer r such that 5r  ≡  1 mod 21.

2.  Compute GCD(5r/2 + 1, 21), GCD(5r/2 — 1, 21). What’s the problem?

3. Now repeat steps 1 and 2 with f(x) = 2x    mod 21 to factor 21 into its prime factors.

Question 3 [3 points]: QFT or QFT1?

In lectures and in the notes we’ve been pretty cavalier about whether we use QFT or the QFTt  in period finding and phase estimation. In this question we’ll investigate why.

1.  Determine what transformation is applied by  — that is, compute QFT2n(QFT2n |x⟩) where x ∈ {0, 1}n.

2. Now suppose you accidentally applied QFT when you should have applied QFT-1  and measured the result to get a bit string y ∈ {0, 1}n.  How could you classically recover the “correct” bit string z ∈ {0, 1}n  that you would have measured if you had instead applied QFT-1 ?

Question 4 [8 points]: Qutrit quantum computing

Much of quantum computation can be generalized to higher-dimensional qudits.  Most gates we’ve seen have higher-dimensional generalizations, like the Pauli gates X, Y, Z and the Hadamard or Fourier gate

H. In this question we will explore this notion briefly.

Consider a qutrit, which is a 3-dimensional quantum particle and whose state is a unit vector in C3 .

As discussed in class, we denote the computational basis of C3  as {|0⟩, |1⟩, |2⟩}, or  |x⟩ where x ∈ Z3, the integers mod 3. Denote the primitive third root of unity as ω3  = e2πi/3 .  The Pauli X and Z operators on a qutrit can now be defined as

Likewise, the qutrit Hadamard gate can be defined as

1.  Show that X and Z have order 3 (i.e. X3 = Z3  = I)

2.  Show that XZ = ω3ZX . Use this to calculate k such that XiZj  = ωkZj Xi whenever i,j ∈ {0, 1, 2} .

3.  Show that Ht ZH = X .

4.  Compute the eigenvalues of X and give corresponding (unit) eigenvectors.  Hint:  recall the relation- ship between H and the eigenvectors of X in the qubit case.

5. Now show that Deutsch’s algorithm generalizes to qutrits. Explicitly, given a function f : Z3  → Z3 promised to either be constant or balanced where balanced in this case means for every y ∈ Z3 , there exists exactly one x ∈ Z3  such that f(x) = y, show that Deutsch’s algorithm with the qutrit version of the H gate works the same way.

Hint: you may want to use the fact that over qutrits, H = QFT3, and so

Question 5 [6 points]: A quantum algorithm for SAT?

Given a formula in propositional logic φ — that is, a logical formula over Boolean variables, constants, ∨ , ∧,  =⇒  , and ¬  — the SAT problem is to determine whether there exists a satisfying assignment to the variables in φ .  That is, when viewed as a function from the values of its n variables to {0, 1}, there exists some x1 , . . . , xn  ∈ {0, 1} such that φ(x1,..., xn) = 1.

In this question we’re going to investigate whether or not the type of interference we’ve seen so far suffices (at least, in an obvious way) to give an efficient quantum algorithm for SAT.

1.  Consider the superposition

Show that the amplitude of a computational basis state |x1x2... xn⟩ in the above is non-zero if and only if φ(x1x2... xn) = 1.

In general, given a Boolean function f  :  {0, 1}n  →  {0, 1}, the phase  (—1)yf(x)  acts like a filter, filtering out the unwanted values of x where f(x) = 1.  Part of my research involves the use and generalization of interference patterns like this to allow (classical) computers to symbolically reason about quantum programs.

2.  Can the transformation

be implemented using unitary operations?  Stated more simply, is the state on the right hand side a unit vector for every φ?

3. Now consider the transformation

This transformation is indeed unitary, but we no longer get useful interference as in part 1.  Explain why.

4. Is it likely that we’ll easily discover an efficient quantum algorithm for SAT knowing that an efficient algorithm for SAT would allow us to solve any problem in NP efficiently?





热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图