/* Shor's Factoring Algorithm, probability of measurement y, from equation (3.50), N. David Mermin, Lecture Notes on Quantum Computation. http://www.lassp.cornell.edu/mermin/qcomp/chap3.pdf */ #include #include #define n 8 #define q (1<