/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Free solutions & answers for Algorithms Chapter 10 - (Page 1) [step by step] 9780073523408 | 91Ó°ÊÓ

91Ó°ÊÓ

Q2E

Page 329

Show that the following quantum circuit prepares the Bell state |Ψ⧽=12|00⧽+12|11⧽on input |00⟩: apply a Hadamard gate to the first qubit followed by a CNOT with the first qubit as the control and the second qubit as the target.

What does the circuit output on input 10 , 01 and 11 ? These are the rest of the Bell basis states.

Q.3E

Page 329

What is the quantum Fourier transform modulo M of the uniform superposition 1M∑j=0M−1 |j⟩?

Q4E

Page 329

What is the QFT modulo M of j>

Q5E

Page 329

Convocation-Multiplication.Supposeα⟩=∑jajj⟩byItogetthesuperpositionα'⟩=∑jαjj+I⟩.IftheQFTofα⟩isβ⟩,showthattheQFTOFα'ISβ',WhereβÂá'=βjÓ¬ij.Concludethatifα'⟩=∑j=0MK-1KMjk+I⟩,thenβ'⟩=1k∑j=0k-1Ó¬IjMKjMk⟩.

Q6E

Page 329

Show that if you apply the Hadamard gate to the inputs and outputs of a CNOT gate, the result is a CNOT gate with control and target qubits switched:

Q7E

Page 329

The CONTROLLED SWAP ( C-SWAP) gate takes as input3 qubits and swaps the second and third if and only if the first qubit is a 1.

  1. Show that each of theNOT, CNOT and C-SWAP gates are their own inverses.
  2. Show how to implement anrole="math" localid="1658207684748" AND gate using aC-SWAP gate, i.e., what inputsa,b,c would you give to aC-SWAP gate so that one of the outputs is a∧b?
  3. How would you achieve fanout using just these three gates? That is, on input aand0 , outputa anda .
  4. Conclude therefore that for any classical circuit Cthere is an equivalent quantum circuitQ using just NOT and C-SWAP gates in the following sense: ifC outputs Yon input x, then Qoutputs|x,y,z⟩ on input |x,0,0⟩. (Herez is some set of junk bits that are generated during this computation.)
  5. Now show that that there is a quantum circuit Q-1 that outputs|x,0,0⟩ on input|x,y,z⟩ .
  6. Show that there is a quantum circuitQ' made up ofNOT, CNOT and C-SWAPgates that outputs|x,y,0⟩ on input |x,0,0⟩.

Q8E

Page 330

In this problem we will show that if N=pq is the product of two odd primes, and if x is chosen uniformly at random between 0 and N-1, such that gcd(x,N)=1, then with probability at least role="math" localid="1658908286522" 38, the order r of x mod N is even, and more over xr2is a nontrivial square root of 1 mod N.

a) Let p be an odd prime and let x be a uniformly random number modulo p. Show that the order of x mod p is even with probability at least12 (Hint:Use Fermat’s little theorem (Section 1.3).)

b) Use the Chinese remainder theorem (Exercise 1.37) to show that with probability at least 34, the order r of x mod N is even.

c) If r is even, prove that the probability that role="math" localid="1658908648251" xr2≡±1is at most12.

Access millions of textbook solutions in one place

  • Access over 3 million high quality textbook solutions
  • Access our popular flashcard, quiz, mock-exam and notes features
  • Access our smart AI features to upgrade your learning
Access millions of textbook solutions in one place

Recommended explanations on Computer Science Textbooks