-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use actual gate name in backend monitor #5546
Conversation
There was a PR doing this a while ago, but it didn't deprecate it first. The concern around doing this though is nothing in the widgets is ibmq specific necessarily (except for maybe the queue position pieces) and it should be possible to have them written in a generic way so that any backend could work with it. Ideally all providers would get this for free. (I realize it doesn't work this way today, but it could work like that in the future). |
Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com>
Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com>
* don't hard code gates * fix lint * add release note * match old format * fix instruction duration test * check gate name in title * Update qiskit/tools/jupyter/backend_monitor.py Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> * Update qiskit/tools/monitor/overview.py Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> * fix title * use props.gate_error * remove unused code Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit cf7433a) # Conflicts: # test/python/transpiler/test_instruction_durations.py
* Use actual gate name in backend monitor (#5546) * don't hard code gates * fix lint * add release note * match old format * fix instruction duration test * check gate name in title * Update qiskit/tools/jupyter/backend_monitor.py Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> * Update qiskit/tools/monitor/overview.py Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> * fix title * use props.gate_error * remove unused code Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> (cherry picked from commit cf7433a) # Conflicts: # test/python/transpiler/test_instruction_durations.py * Fix merge conflict Co-authored-by: Jessie Yu <jessieyu@us.ibm.com> Co-authored-by: Matthew Treinish <mtreinish@kortar.org> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Summary
The new basis gate change broke backend monitor as it has the old gates hard coded. This PR fixes that by using the actual gate names returned in backend properties.
Also closes #5008.
Details and comments
Given we already have a backend widget in
qiskit-ibmq-provider
, and the backend monitor here only acceptsIBMQBackend
andFakeBackend
, it seems we can just remove it from terra or invoke the one in ibmq.