Skip to content

Reinstate pulse.Instruction.draw#9144

Merged
mergify[bot] merged 2 commits intoQiskit:mainfrom
jakelishman:reinstate-pulse-instruction-drawer
Nov 16, 2022
Merged

Reinstate pulse.Instruction.draw#9144
mergify[bot] merged 2 commits intoQiskit:mainfrom
jakelishman:reinstate-pulse-instruction-drawer

Conversation

@jakelishman
Copy link
Copy Markdown
Member

Summary

This was erroneously broken by gh-8306 and not detected by lint because of the existence of qiskit.visualization.__getattr__. This reinstates the functionality using the deprecated old instruction drawers.

Details and comments

I'm using the deprecated functionality, achieved by inlining what the old pulse_drawer (v1) code did for this path, because the paths in use haven't been triggering their deprecation warnings properly due to stacklevel issues, so are not eligible for immediate removal. This PR is stable for backport (fixes a bug in the deprecation period), and I'll follow it with a PR for 0.23 that applies the deprecations to the v1 pulse drawer (and this method) correctly.

This was erroneously broken by Qiskitgh-8306 and not detected by lint because
of the existence of `qiskit.visualization.__getattr__`.  This reinstates
the functionality using the deprecated old instruction drawers.
@jakelishman jakelishman added stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge. Changelog: Fixed Add a "Fixed" entry in the GitHub Release changelog. mod: visualization qiskit.visualization labels Nov 16, 2022
@jakelishman jakelishman added this to the 0.22.3 milestone Nov 16, 2022
@jakelishman jakelishman requested review from a team, eggerdj and wshanks as code owners November 16, 2022 16:00
@qiskit-bot
Copy link
Copy Markdown
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

@coveralls
Copy link
Copy Markdown

coveralls commented Nov 16, 2022

Pull Request Test Coverage Report for Build 3482318380

  • 2 of 12 (16.67%) changed or added relevant lines in 1 file are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.03%) to 84.602%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/pulse/instructions/instruction.py 2 12 16.67%
Files with Coverage Reduction New Missed Lines %
src/sabre_swap/layer.rs 2 98.95%
Totals Coverage Status
Change from base Build 3482041300: 0.03%
Covered Lines: 62613
Relevant Lines: 74009

💛 - Coveralls

@mergify mergify Bot merged commit da1a7e3 into Qiskit:main Nov 16, 2022
mergify Bot added a commit that referenced this pull request Nov 16, 2022
This was erroneously broken by gh-8306 and not detected by lint because
of the existence of `qiskit.visualization.__getattr__`.  This reinstates
the functionality using the deprecated old instruction drawers.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit da1a7e3)
mergify Bot added a commit that referenced this pull request Nov 16, 2022
This was erroneously broken by gh-8306 and not detected by lint because
of the existence of `qiskit.visualization.__getattr__`.  This reinstates
the functionality using the deprecated old instruction drawers.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit da1a7e3)

Co-authored-by: Jake Lishman <[email protected]>
@jakelishman jakelishman deleted the reinstate-pulse-instruction-drawer branch December 2, 2022 16:08
Cryoris pushed a commit to Cryoris/qiskit-terra that referenced this pull request Jan 12, 2023
This was erroneously broken by Qiskitgh-8306 and not detected by lint because
of the existence of `qiskit.visualization.__getattr__`.  This reinstates
the functionality using the deprecated old instruction drawers.

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: Fixed Add a "Fixed" entry in the GitHub Release changelog. mod: visualization qiskit.visualization stable backport potential Make Mergify open a backport PR to the most recent stable branch on merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants