Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
Fraction(0, 1) frac = Fraction(phase).limit_denominator(15) s, r = frac.numerator, frac.denominator print(r) 1 guesses = [gcd(a**(r//2)-1, N), gcd(a**(r//2)+1, N)] print(guesses) [15, 1] The cell below repeats the algorithm until at least one factor of 15 is found. You should try re-running the