Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
np.arange(35) yvals = [np.mod(a**x, N) for x in xvals] # Use matplotlib to display it nicely fig, ax = plt.subplots() ax.plot(xvals, yvals, linewidth=1, linestyle='dotted', marker='x') ax.set(xlabel='$x$', ylabel=f'${a}^x$ mod ${N}$', title="Example of Periodic Function in Shor's Algorithm") try: #