How do I get the names of all currently available IBMQ devices?
-
1$\begingroup$ To those attempting close vote, what "details" or "clarity" do you think could be added? The question is clear, and that's why it got 4 answers. $\endgroup$– user1271772Mar 18, 2021 at 0:02
2 Answers
You can see the backends you can access directly on the IBM Quantum tools by going on the top left corner of the page, click and then go to Quantum Services, and click on "Yours".
Now, via Qiskit, you can do this, for example to access the open provider and get the backend ibmq_athens
:
from qiskit import IBMQ
IBMQ.load_account()
provider = IBMQ.get_provider(hub='ibm-q', group='open', project='main')
print(provider.backends())
backend = provider.get_backend('ibmq_athens')
Hope this helps, tell me if you need more details on something! :)
If you have only one provider (which is the most common case) you can print all your backend names like this:
from qiskit import IBMQ
IBMQ.load_account()
print([backend.name() for backend in IBMQ.providers()[0].backends()])