Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
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: # plot r on the graph r = yvals[1:].index(1) + 1 plt.annotate('',