I get below error when I run a code on spyder environment:

File C:/MYPYTHON Programs/My Quantum Programs/Shor algo.py, line 4, in from qiskit import QuantumProgram

ImportError: cannot import name 'QuantumProgram' from 'qiskit' 

1 Answer 1


QuantumProgram was removed in Qiskit 0.6.0. (Release Notes) Your example code is likely for an older version. You can either install Qiskit 0.5.7, or find an updated Shor's Algorithm example.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.