Zurich Zurich

Quantum Programming 101: Getting real time information on IBM Quantum devices

quantum device
quantum device
Quantum Source Quantum Source
quantum device
IBM’s Quantum Computer

Introduction

IBMs quantum devices all vary whether its in terms of the number of qubits, pending jobs to those devices or whether they are operational at a certain time.

With the backend_overview() function however we can see at a glance information for all those devices which can be very useful if we are deciding what device we should send our program to.

Steps

  1. Copy and paste the code below in to a python file

  2. Enter your API token in the IBMQ.enable_account(‘Insert API token here’) part

  3. Save and run

    Responsive Image

Code

print('\nDevice Monitor')
print('----------------')

from qiskit import IBMQ
from qiskit.tools.monitor import backend_overview

IBMQ.enable_account('Insert API token here') # Insert your API token in to here
provider = IBMQ.get_provider(hub='ibm-q')

backend_overview() # Function to get all information back about each quantum device  

print('\nPress any key to close')
input()

Output

After running the code you will see something like the following printed on the screen :

Output

Output showing the status of each quantum device

Want to learn about Quantum Programming? Head over to Quantum Computing UK: https://quantumcomputinguk.org/

Macauley Coggins

Macauley Coggins is a Software Developer, Researcher, and Managing Director of Quantum Computing UK. He has experience in developing software for IBMs Quantum Computers and has a special interest in developing secure cryptographic systems with quantum hardware.

Share this article:

Keep track of everything going on in the Quantum Technology Market.

In one place.

Related Articles

Join Our Newsletter