Quantum Fourier Transform, Quantum Phase Estimation, Shors Algorithm, Quantum Computing, Qiskit.
results # and convert the estimated phase bitstring to decimal sim = Aer.get_backend('aer_simulator') shots = 1 solution = execute(qc, sim, shots=shots, memory=True) #sim.run(transpile(qc, sim), shots, memory=True) readings = solution.result().get_memory() phase = int(readings[0], 2) / 2**count