0
$\begingroup$

I am trying to enable backends by using qiskit.IBMQ.backends() methods in google colab. but it is showing error. How to enable this? AL time this backend showing an error. i have tried by using some other methods but still the same issue. very confused regarding this.
tried using provider(). but same prblem.plz help.

enter image description here

$\endgroup$
3
  • $\begingroup$ What is the error message? $\endgroup$ Apr 11, 2022 at 10:13
  • $\begingroup$ 'IBMQFactory' object has no attribute 'backend' $\endgroup$
    – Arpita
    Apr 11, 2022 at 10:15
  • $\begingroup$ The above one is the error showing.. $\endgroup$
    – Arpita
    Apr 11, 2022 at 10:52

1 Answer 1

1
$\begingroup$

backends() is a method in AccountProvider class not in qiskit.IBMQ. So, at first you need to get a provider and then use it to get the backends:

provider = IBMQ.get_provider(hub = 'ibm-q')
provider.backends()

You can find more details here.

$\endgroup$
1
  • $\begingroup$ Ok.. i will read it.. thank you. $\endgroup$
    – Arpita
    Apr 11, 2022 at 11:24

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.