QiskitBackendNotFoundError occurs if I registered both credentials of Q Experience and Q Console
See original GitHub issueInformations
- 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:
- Created 5 years ago
- Comments:11 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
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.