Quantum Computing, Quantum, Quantum Physics, Shors Algorithm, Qiskit.
Let’s try for a = 7 and N = 15. The circuit that prepares the said U is given to us: to create U^x , we have to simply implement this x times. def c_amod15(a, power): """Controlled multiplication by a mod 15""" if a not in [2,4,7,8,11,13]: raise ValueError("'a' must be 2,4,7,8,11 or 13") U =