|q⟩ Bad Qubits

← Question Bank

Multiple choice
In Shor's algorithm to factor N=15N=15 with base a=7a=7, the order-finding step yields period r=4r=4. The factors are obtained from gcd(ar/21,N)\gcd(a^{r/2} - 1, N) and gcd(ar/2+1,N)\gcd(a^{r/2} + 1, N). Since 72=49=4(mod15)7^2 = 49 = 4 \pmod{15}, what nontrivial factor does min(gcd(41,15),gcd(4+1,15))\min(\gcd(4-1,15), \gcd(4+1,15)) return?