Quantum Fourier Transform, Quantum Phase Estimation, Shors Algorithm, Quantum Computing, Qiskit.
qpe4.cp(-math.pi/2,1,2) qpe4.cp(-math.pi/8,0,3) qpe4.h(2) qpe4.cp(-math.pi/4,1,3) qpe4.measure(0,0) qpe4.cp(-math.pi/2,2,3) qpe4.measure(1,1) qpe4.h(3) qpe4.measure(2,2) qpe4.measure(3,3) qpe4.draw("mpl") QPE circuit Now we will use the AerSimulator to simulate this circuit and plot a histogram: