Qiskit / qiskit

Qiskit is an open-source SDK for working with quantum computers at the level of extended quantum circuits, operators, and primitives.
https://www.ibm.com/quantum/qiskit
Apache License 2.0
5.06k stars 2.33k forks source link

Add support to jupyter module for BackendV2 and other providers #9106

Open mtreinish opened 1 year ago

mtreinish commented 1 year ago

What should we add?

The jupyter module in qiskit.tools.jupyter has a bunch of magics and default formatters set for backends from the qiskit-ibmq-provider. However, that package has been superseded by qiskit-ibm-provider and will soon be deprecated and archived. This will make the jupyter functionality with backends not usable anymore. We should update all this functionality to be generic and work with any backend, not just those from the ibmq provider.

ohadlev77 commented 1 year ago

Hey, I am interested working on this one.

For clarification - what we want is that the table generated for BackendV1 (generated by code in qiskit.tools.jupyter.backend_monitor) upon calling a BackendV1 object will work the same for BackendV2 objects?

mtreinish commented 1 year ago

Yeah that's basically it, along with loosening the type hints to say they will accept any BackendV1 or BackendV2 based backend instead of being limited to IBMQBackend and FakeBackend. The other piece is updating the HTML_FORMATER hooks to work on the abstract backend types instead of importing the ibmq provider and setting it for that.

1ucian0 commented 3 months ago

Hi @ohadlev77 this still affects 0.46, which has extended support until August 15 (after that date, it can be closed). Are you still interested?