Skip to content
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

Merged
merged 15 commits into from
Jan 6, 2021

Conversation

jyu00
Copy link
Contributor

@jyu00 jyu00 commented Dec 18, 2020

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 accepts IBMQBackend and FakeBackend, it seems we can just remove it from terra or invoke the one in ibmq.

@jyu00 jyu00 requested review from chriseclectic and a team as code owners December 18, 2020 17:35
@jyu00 jyu00 added Changelog: Bugfix Include in the "Fixed" section of the changelog stable backport potential The bug might be minimal and/or import enough to be port to stable labels Dec 18, 2020
@mtreinish
Copy link
Member

Given we already have a backend widget in qiskit-ibmq-provider, and the backend monitor here only accepts IBMQBackend and FakeBackend, it seems we can just remove it from terra or invoke the one in ibmq.

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).

qiskit/tools/jupyter/backend_monitor.py Outdated Show resolved Hide resolved
qiskit/tools/jupyter/backend_monitor.py Outdated Show resolved Hide resolved
qiskit/tools/monitor/overview.py Show resolved Hide resolved
qiskit/tools/monitor/overview.py Outdated Show resolved Hide resolved
qiskit/tools/monitor/overview.py Outdated Show resolved Hide resolved
jyu00 and others added 5 commits January 5, 2021 13:58
Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com>
Co-authored-by: Thomas Alexander <thomasalexander2718@gmail.com>
@mergify mergify bot merged commit cf7433a into Qiskit:master Jan 6, 2021
mtreinish pushed a commit that referenced this pull request Jan 7, 2021
* 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
mergify bot added a commit that referenced this pull request Jan 7, 2021
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Bugfix Include in the "Fixed" section of the changelog stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backend monitor displays incorrect information
3 participants