4
$\begingroup$

How do I get the names of all currently available IBMQ devices?

$\endgroup$
1
  • 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$ – user1271772 Mar 18 at 0:02
7
$\begingroup$

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! :)

$\endgroup$
4
$\begingroup$

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()])
$\endgroup$
1
  • $\begingroup$ Thanks. It works! $\endgroup$ – Holger Mar 18 at 17:44

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.