Question: 4. Factoring 21. (a) Suppose that, when running Shor's algorithm to factor the number 21, you choose the value a = 2. What is

4. Factoring 21. (a) Suppose that, when running Shor's algorithm to factor the number 21, you choose the

4. Factoring 21. (a) Suppose that, when running Shor's algorithm to factor the number 21, you choose the value a = 2. What is the order r of a mod 21? (b) Give an expression for the probabilities of the possible measurement outcomes when per- forming phase estimation with n bits of precision in Shor's algorithm. (c) In the execution of Shor's algorithm considered in part (a), suppose you perform phase estimation with n = - 7 bits of precision. Plot the probabilities of the possible measurement outcomes obtained by the algorithm. You are encouraged to use software to produce your plot. (d) Compute ged(21, ar/ 1) and gcd(21, ar/ + 1). How do they relate to the prime factors of 21? (e) How would your above answers change if instead of taking a = 2, you had taken a = = 5?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

This question relates to Shors algorithm and its application to prime factoring Lets address each part separately a Find the order r of 2 mod 21 The o... View full answer

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!