Quantum Fourier Transform, Quantum Phase Estimation, Shors Algorithm, Quantum Computing, Qiskit.
qpe4.cp(2*math.pi/3, 0, 4) for _ in range(2**(1)): qpe4.cp(2*math.pi/3, 1, 4) for _ in range(2**(2)): qpe4.cp(2*math.pi/3, 2, 4) for _ in range(2**(3)): qpe4.cp(2*math.pi/3, 3, 4) qpe4.barrier() qpe4.swap(0,3) qpe4.h(0) qpe4.swap(1,2) qpe4.cp(-math.pi/4, 0,1) qpe4.h(1) qpe4.cp(-math.pi/4,0,2)