Don't spend $10k on a bootcamp. Try our back-end career path first.
Back home

Quantum Programming 101: Backend Monitor

By Macauley Coggins on May 12, 2020

Introduction

In a previous tutorial we showed how you can get basic information on all quantum devices using backend_overview().

While this function is great to get information on all quantum devices at a glance it is not detailed on specific information such as qubit and gate errors. To get more detailed information on a quantum device (such as configuration and individual qubits and gates) you can use backend_monitor().

A simple path to your career in back-end development

The pace of Boot.dev's JavaScript, Python and Go courses has been perfect for me. The diverse community in Discord is a blast, and other members are quick to help out with detailed answers and explanations.

- Daniel Gerep from Cassia, Brasil

Implementation

Unlike backend_overview() this is for getting information on a specific device so you have to pass the device name in to the function as an argument.

For example to get real time information on the IBMQ Burlngton device you enter the following:

backend_monitor(provider.backends.ibmq_burlington)

and for another device like IBMQ Vigo:

backend_monitor(provider.backends.ibmq_vigo)

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

Get a back-end job without spending $10k on a bootcamp

I was a field service engineer and I wanted to become a backend developer, but work and family limited my options. Since completing the back-end career path on Boot.dev, I now have a job offer in hand and I'm starting my career as a software developer!

- Özgür Yildirim from Germany

Code

from qiskit import IBMQ
from qiskit.tools.monitor import backend_monitor

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

backend_monitor(provider.backends.ibmq_burlington) # Function to get all information back about a quantum  device  

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

Output

After the code is ran you will be given a list of information about the device including the configuration and specific information on individual qubits and gates.

Screenshot showing the device information for the IBMQ Burlington quantum device.

Screenshot showing the device information for the IBMQ Burlington quantum device.

Want to learn about Quantum Programming? Head over to Quantum Computing UK .

Learn back-end without spending $10,000+ on a bootcamp

Related Reading