1
$\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$
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, privacy policy and cookie policy

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