5
$\begingroup$

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' 
(C:\Users\gurmo\Anaconda3\envs\Qiskitenv\lib\site-packages\qiskit__init__.py)
$\endgroup$

1 Answer 1

8
$\begingroup$

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.

$\endgroup$

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.