Qiskit / qiskit-ibmq-provider

Qiskit Provider for accessing the quantum devices and simulators at IBM Quantum.
Apache License 2.0
242 stars 145 forks source link

Enabling live data features in the qiskit-ibmq-provider #1107

Closed cbjuan closed 2 years ago

cbjuan commented 2 years ago

Summary

This PR adds support to LiveData in the qiskit-ibmq-provider. Specifically, it adds a new tab in the backend Jupyter-related widget and supports the execution of jobs with the live_data_enabled=True parameter in allowed backends.

In this new tab, a user can observe which jobs have LiveData enabled and their real-time behavior while executing.

Details and comments

A minimal example of a job submitted to an IBM Quantum backend with LiveData enabled

from qiskit import *
qc = QuantumCircuit(2)
qc.h(0)
qc.x(1)

job = execute(qc,
              backend=backend,
              live_data_enabled=True)

Overview of the backend widget with the new tab: Screenshot_2022-01-18_at_13_22_37 Screenshot_2022-01-18_at_13_22_50

It works as expected in JupyterLab, Jupyter Notebook, and the IBM Quantum Notebooks platform. Co-authored by @filemaster

cbjuan commented 2 years ago

Thanks for your review, @rathishcholarajan. We have fixed the checks and added the required release note.

Do not hesitate to ping me if there is any other thing needed.