Solutions to Assignment 6

# Solutions to Assignment 6 - Physics 681-481 CS 483...

• Homework Help
• PresidentHackerCaribou10582
• 3
• 100% (1) 1 out of 1 people found this document helpful

This preview shows pages 1–2. Sign up to view the full content.

April 20, 2006 Physics 681-481; CS 483: Discussion of #6 1. The probability that you get the marked item on the first attempt is 1 4 . The probability that you get the marked item on the second attempt is also 1 4 : the probability, 3 4 , that you fail on the first attempt times the probability, 1 3 that you succeed on the second. The probability that you have to make a third attempt is 1 2 : the probability, 3 4 that you fail on the first attempt times the probability 2 3 that you fail on the second. You never need to make a fourth attempt, since if the third attempt also does not produce the marked item you know it is the fourth. Therefore the mean number of attempts is 1 4 × 1 + 1 4 × 2 + 1 2 × 3 = 2 1 4 . Alternatively, note that you can do no better than to try out the four items in a completely random order, since you have no information at the start, and failure at any stage teaches you nothing about which of the remaining items is likely to be the marked one. So whatever order you pick the items in, it is equally likely that the marked item will be the first, second, third, or fourth on the list. Since the probability is 1 4 that the marked item is first on the list, 1 4 that it is second, and 1 4 + 1 4 = 1 2 that it is third or fourth, the mean number of attempts is indeed 1 4 × 1 + 1 4 × 2 + 1 2 × 3 = 2 1 4 . 2. The action of the various U f gates on the computational basis is as follows: In part (3) the target qubit is flipped if and only if the state of both control qubits is | 1 i , by definition of the Toffoli gate. Since the

This preview has intentionally blurred sections. Sign up to view the full version.

This is the end of the preview. Sign up to access the rest of the document.
• Spring '08
• Ginsparg
• Right-wing politics, Political spectrum, The Gates, Christo and Jeanne-Claude, central park, Toffoli gate

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern