Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
" + readings[0]) phase = int(readings[0],2)/(2**N_COUNT) print(f"Corresponding Phase: {phase}") return phase From this phase, we can easily find a guess for : phase = qpe_amod15(a) # Phase = s/r Fraction(phase).limit_denominator(15) Out: Register Reading: 00000000 Corresponding Phase: 0.000000