4
$\begingroup$

My code is:

    from qiskit import IBMQ
    IBMQ.load_account()
    provider = IBMQ.get_provider('ibm-q')
    qcomp = provider.get_backend('ibmq_16_melbourne')

but I run it in Jupyter I get the following message

    QiskitBackendNotFoundError                Traceback 
    (most recent call last)
    <ipython-input-6-f874d37829a9> in <module>
      2 IBMQ.load_account()
      3 provider = IBMQ.get_provider('ibm-q')
    ----> 4 qcomp = 
    provider.get_backend('ibmq_16_melbourne')

                                                                        
 
    ~\anaconda3\lib\sitepackages\qiskit\providers
     \providers\provider.py in get_backend(self, name, 
     **kwargs)
     53             raise 
     QiskitBackendNotFoundError("More than one backend 
     matches the criteria")
     54         if not backends:
     ---> 55             raise 
     QiskitBackendNotFoundError("No backend matches the 
     criteria")
     56 
     57         return backends[0]

     QiskitBackendNotFoundError: 'No backend matches the 
     criteria'

I have already made an account at IBM, and have already seen the post (Trying to get a provider from IBMQ but get 'No provider matches the criteria.'), but the problem still exists.

$\endgroup$

2 Answers 2

6
$\begingroup$

The backend that you choose ( 'ibmq_16_melbourne' ) was retired recently. With a different backend, it should work. You can find available IBM Quantum systems here.

https://quantum-computing.ibm.com/services?services=systems

$\endgroup$
2
  • $\begingroup$ Thank you so much for your answer! $\endgroup$
    – Assassinos
    Aug 17, 2021 at 14:01
  • $\begingroup$ Your welcome. :) $\endgroup$ Aug 25, 2021 at 16:53
2
$\begingroup$

As the other answer stated, this is because ibmq_16_melbourne is no longer in service. But in general, to know which backend is in service and available to you, you can quickly run the following script:

from qiskit import IBMQ, Aer
provider = IBMQ.load_account()
available_cloud_backends = provider.backends() 
print('\n Cloud backends:')
for i in available_cloud_backends: print(i)

available_local_backends = Aer.backends() 
print('\n Local backends: ')
for i in available_local_backends: print(i)

This will output something like:

 Cloud backends:
ibmq_qasm_simulator
ibmq_armonk
ibmq_santiago
ibmq_bogota
ibmq_lima
ibmq_belem
ibmq_quito
simulator_statevector
simulator_mps
simulator_extended_stabilizer
simulator_stabilizer
ibmq_manila

 Local backends: 
aer_simulator
aer_simulator_statevector
aer_simulator_density_matrix
aer_simulator_stabilizer
aer_simulator_matrix_product_state
aer_simulator_extended_stabilizer
aer_simulator_unitary
aer_simulator_superop
qasm_simulator
statevector_simulator
unitary_simulator
pulse_simulator

This might save you time from having to look up this info through the IBM Q webpage.

$\endgroup$
1
  • $\begingroup$ This is really helpful. Thank you! $\endgroup$
    – Assassinos
    Aug 18, 2021 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.