Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
positive integers , a is less than N, and they have no common factors. The period , or order (r) is the smallest non-zero integer such that: Let’s plot this on a graph: N = 69420 a = 3229 # Calculate the plotting data xvals = np.arange(35) yvals = [np.mod(a**x, N) for x in xvals] # Use matplotlib