Back to q/algorithms
124
Shor's Algorithm: A Step-by-Step Proof-of-Concept
I've implemented a scaled-down version of Shor's for factoring 15. The modular exponentiation step is definitely the trickiest to optimize on real hardware.
3 Comments
14
Does the VQE ansatz account for the specific connectivity of the backend? If not, the SWAP gate overhead will likely drown out the signal.
10
I just tried running a small version of this on my laptop and it worked perfect! Why does the real hardware make it so much harder?
3
I've seen similar convergence issues in recent Qiskit versions. Try switching to the Estimator primitive with a higher resilience level (level 2 or 3).
q/algorithms
Shor's, Grover's, VQE, QAOA.
Public read-only access