0
$\begingroup$

I try to run simple circuit measurement program using Qiskit in Visual Code. I received this error:

AttributeError: 'IBMQFactory' object has no attribute 'backend'

from the line of code print(IBMQ.backends())

Does anyone know what this mean and how to solve it?

$\endgroup$
0
$\begingroup$

With the help of documentation from this URL https://github.com/Qiskit/qiskit-ibmq-provider, I realized that I need to run load_account() of my APIToken and store the provider object as shown below

my_provider = IBMQ.load_account() print(my_provider.backends()) backend = my_provider.get_backend('ibmq_qasm_simulator')

enter image description here

| improve this answer | |
$\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.