2
$\begingroup$

When I type this: IBMQ.load_account(), I am getting this error. What does this mean, and how can I rectify it?

NameError                                 Traceback (most recent call last)
<ipython-input-2-beb09c0bf764> in <module>
----> 1 IBMQ.load_account()

NameError: name 'IBMQ' is not defined
$\endgroup$
3
  • $\begingroup$ @met927 I have the same problem, I did install the ibm provider using "pip install qiskit-ibmq-provider" as said in the answer. still I am getting the same error. I am actually reproducing a code given in IBM summer-school youtube, so there should be something wrong with the installation or python version I have? $\endgroup$ Nov 3, 2020 at 15:01
  • $\begingroup$ What's your qiskit version? from qiskit import __qiskit_version__ $\endgroup$
    – luciano
    Nov 3, 2020 at 17:50
  • $\begingroup$ Uh I already fixed it. I had a typo mistake $\endgroup$ Nov 4, 2020 at 0:26

1 Answer 1

1
$\begingroup$

Please check you have qiskit-ibmq-provider installed. You can do this by running pip show qiskit-ibmq-provider in a terminal. If this returns a warning that it isn't installed, you can then install it using the command pip install qiskit-ibmq-provider.

Then go back to your code and make sure you have the statement from qiskit import IBMQ before this line of code.

That should take care of things.

$\endgroup$

Your Answer

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

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