Skip to content

Remove deprecated code from pulse module#7267

Merged
mergify[bot] merged 14 commits into
Qiskit:mainfrom
nkanazawa1989:pulse-cleanup-deprecated
Nov 22, 2021
Merged

Remove deprecated code from pulse module#7267
mergify[bot] merged 14 commits into
Qiskit:mainfrom
nkanazawa1989:pulse-cleanup-deprecated

Conversation

@nkanazawa1989
Copy link
Copy Markdown
Contributor

@nkanazawa1989 nkanazawa1989 commented Nov 15, 2021

Summary

This PR removes deprecated code from the pulse module. These codes have been deprecated for more than 3 months and should be removed for sake of code maintainability.

Details and comments

Corresponding unittests are removed or integrated into the test of alternative logic if any.

This code is partly overlapping with #7265.

@nkanazawa1989 nkanazawa1989 added Changelog: Removed Add a "Removed" entry in the GitHub Release changelog. mod: pulse Related to the Pulse module labels Nov 15, 2021
@coveralls
Copy link
Copy Markdown

coveralls commented Nov 15, 2021

Pull Request Test Coverage Report for Build 1484319281

  • 16 of 18 (88.89%) changed or added relevant lines in 8 files are covered.
  • 22 unchanged lines in 4 files lost coverage.
  • Overall coverage increased (+0.1%) to 82.668%

Changes Missing Coverage Covered Lines Changed/Added Lines %
qiskit/pulse/library/pulse.py 1 2 50.0%
qiskit/pulse/schedule.py 7 8 87.5%
Files with Coverage Reduction New Missed Lines %
qiskit/pulse/library/waveform.py 1 95.74%
qiskit/pulse/channels.py 6 88.71%
qiskit/pulse/instructions/instruction.py 6 86.02%
qiskit/pulse/instructions/play.py 9 75.61%
Totals Coverage Status
Change from base Build 1484137595: 0.1%
Covered Lines: 49763
Relevant Lines: 60196

💛 - Coveralls

Copy link
Copy Markdown
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like you need to update the tutorials to stop using deprecated functionality before this will pass CI

@nkanazawa1989
Copy link
Copy Markdown
Contributor Author

Thanks @mtreinish I updated the corresponding tutorial. Hope this PR will pass CI.

…nup-deprecated

# Conflicts:
#	test/python/pulse/test_parameters.py
mtreinish pushed a commit to Qiskit/qiskit-tutorials that referenced this pull request Nov 18, 2021
)

This is a follow-up to #1253 and is updating the
usage of the pulse drawer to avoid deprecated functionality.
This is a blocker of Qiskit/qiskit#7267 which is finishing
those deprecations and trying to remove the deprecated usage
patterns.
Copy link
Copy Markdown
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall I think this looks good, just one question inline about the timeline otherwise everything looks good

Comment thread qiskit/pulse/builder.py Outdated
Comment on lines 1131 to 1182
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weren't these just deprecated in 0.18.0? I know that was > 3 months ago now so we've passed the minimum 3 month deprecation period but did you want to give people > 1 release to adapt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I readd these contexts. Thanks for careful investigation. Because these context don't affect data representation of schedules so keeping them for extra release cycles should be fine.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nkanazawa1989 nkanazawa1989 force-pushed the pulse-cleanup-deprecated branch from bec28b0 to e383bdb Compare November 20, 2021 10:39
@nkanazawa1989 nkanazawa1989 added the mod: qpy Related to QPY serialization label Nov 21, 2021
@mergify mergify Bot merged commit 0a10008 into Qiskit:main Nov 22, 2021
@nkanazawa1989 nkanazawa1989 deleted the pulse-cleanup-deprecated branch November 25, 2022 02:51
Eric-Arellano pushed a commit to Eric-Arellano/qiskit-terra that referenced this pull request Aug 25, 2023
…skit/qiskit-tutorials#1254)

This is a follow-up to Qiskit/qiskit-tutorials#1253 and is updating the
usage of the pulse drawer to avoid deprecated functionality.
This is a blocker of Qiskit#7267 which is finishing
those deprecations and trying to remove the deprecated usage
patterns.
Eric-Arellano pushed a commit to Eric-Arellano/qiskit-terra that referenced this pull request Sep 8, 2023
…skit/qiskit-tutorials#1254)

This is a follow-up to Qiskit/qiskit-tutorials#1253 and is updating the
usage of the pulse drawer to avoid deprecated functionality.
This is a blocker of Qiskit#7267 which is finishing
those deprecations and trying to remove the deprecated usage
patterns.
Eric-Arellano pushed a commit to Qiskit/documentation that referenced this pull request Oct 6, 2023
…skit/qiskit-tutorials#1254)

This is a follow-up to Qiskit/qiskit-tutorials#1253 and is updating the
usage of the pulse drawer to avoid deprecated functionality.
This is a blocker of Qiskit/qiskit#7267 which is finishing
those deprecations and trying to remove the deprecated usage
patterns.
Eric-Arellano pushed a commit to Qiskit/documentation that referenced this pull request Oct 9, 2023
…skit/qiskit-tutorials#1254)

This is a follow-up to Qiskit/qiskit-tutorials#1253 and is updating the
usage of the pulse drawer to avoid deprecated functionality.
This is a blocker of Qiskit/qiskit#7267 which is finishing
those deprecations and trying to remove the deprecated usage
patterns.
Eric-Arellano pushed a commit to Qiskit/documentation that referenced this pull request Oct 9, 2023
…skit/qiskit-tutorials#1254)

This is a follow-up to Qiskit/qiskit-tutorials#1253 and is updating the
usage of the pulse drawer to avoid deprecated functionality.
This is a blocker of Qiskit/qiskit#7267 which is finishing
those deprecations and trying to remove the deprecated usage
patterns.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: Removed Add a "Removed" entry in the GitHub Release changelog. mod: pulse Related to the Pulse module mod: qpy Related to QPY serialization

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants