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.
-
$\begingroup$ What is the error message? $\endgroup$– Egretta.ThulaApr 11, 2022 at 10:13
-
$\begingroup$ 'IBMQFactory' object has no attribute 'backend' $\endgroup$– ArpitaApr 11, 2022 at 10:15
-
$\begingroup$ The above one is the error showing.. $\endgroup$– ArpitaApr 11, 2022 at 10:52
1 Answer
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.