question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

QiskitBackendNotFoundError occurs if I registered both credentials of Q Experience and Q Console

See original GitHub issue

Informations

  • Qiskit version: 0.7.2
  • Python version: 3.6.8
  • Operating system: macOS HighSierra

What is the current behavior?

I have both Q Experience and Q Console accounts and registered them to IBMQ. Then, because both systems have a backend with the same name “ibmq_qasm_simulator”, QiskitBackendNotFoundError occurs.

Steps to reproduce the problem

$ python
>>> from qiskit import IBMQ
>>> IBMQ.load_accounts()
>>> print(IBMQ.backends())
[<IBMQBackend('ibmq_20_tokyo') from IBMQ(xxx, yyy, zzz)>,
 <IBMQBackend('ibmq_qasm_simulator') from IBMQ(xxx, yyy, zzz)>,
 <IBMQBackend('ibmqx4') from IBMQ()>,
 <IBMQBackend('ibmqx2') from IBMQ()>,
 <IBMQBackend('ibmq_16_melbourne') from IBMQ()>,
 <IBMQBackend('ibmq_qasm_simulator') from IBMQ()>]
>>> IBMQ.get_backend('ibmq_qasm_simulator')
QiskitBackendNotFoundError                Traceback (most recent call last)
----> 1 IBMQ.get_backend('ibmq_qasm_simulator')
~/envs/test/lib/python3.6/site-packages/qiskit/providers/baseprovider.py in get_backend(self, name, **kwargs)
     42         backends = self.backends(name, **kwargs)
     43         if len(backends) > 1:
---> 44             raise QiskitBackendNotFoundError('More than one backend matches the criteria')
     45         elif not backends:
     46             raise QiskitBackendNotFoundError('No backend matches the criteria')

QiskitBackendNotFoundError: 'More than one backend matches the criteria'

What is the expected behavior?

Users can choose “ibmq_qasm_simulator” on Q Experience or Q Console.

Suggested solutions

Change the backend name “ibmq_qasm_simulator” on Q Console.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nonhermitiancommented, Aug 16, 2021

That device is no longer operational. You will need to select a different one from those listed here: https://quantum-computing.ibm.com/services?services=systems

1reaction
jaygambettacommented, Feb 20, 2019

In the qiskit provider tutorial we show how to do this. Grab by hub or user account. For quantum experience set hub equal to none.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Access systems with your account - IBM Quantum
The IBM Quantum account has functions for handling administrative tasks. The credentials can be saved to disk, or used in a session and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found