Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
cell a few times to see how it behaves. a = 7 FACTOR_FOUND = False ATTEMPT = 0 while not FACTOR_FOUND: ATTEMPT += 1 print(f"\nATTEMPT {ATTEMPT}:") phase = qpe_amod15(a) # Phase = s/r frac = Fraction(phase).limit_denominator(N) r = frac.denominator print(f"Result: r = {r}") if phase != 0: # Guesses