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

0
346
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

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 showing the status of each quantum device

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