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

Deprecate the discrete pulse library #11110

Merged
merged 7 commits into from
Oct 31, 2023

Conversation

TsafrirA
Copy link
Collaborator

Summary

All pulses in the discrete pulse library now raise a DeprecationWarning.

Details and comments

#10222 started the deprecation process of the discrete pulse library, and now the PendingDeprecationWarning are promoted to DeprecationWarning. Tests were updated accordingly.

The tutorial 06_building_pulse_schedules.ipynb was updated in a very shallow way - the deprecated functions were removed, but the tutorial itself seems a bit stale. It requires some updates to the SymbolicPulse era. This was beyond the scope of this PR.

@TsafrirA TsafrirA requested review from eggerdj, wshanks and a team as code owners October 25, 2023 11:58
@qiskit-bot
Copy link
Collaborator

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

@mtreinish mtreinish added this to the 0.46.0 milestone Oct 25, 2023
@nkanazawa1989 nkanazawa1989 added Changelog: Deprecation Include in "Deprecated" section of changelog mod: pulse Related to the Pulse module labels Oct 26, 2023
@nkanazawa1989 nkanazawa1989 self-assigned this Oct 26, 2023
Copy link
Contributor

@nkanazawa1989 nkanazawa1989 left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @TsafrirA

@@ -310,12 +310,12 @@
"source": [
"#### Pulse library functions\n",
"\n",
"Our own pulse library has sampling methods to build a `Waveform` from common functions."
"It is possible to convert `SymbolicPulse` objects into `Waveform`s via the `get_waveform()` method. Using our own pulse library you can build `Waveform` from common functions."
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

@nkanazawa1989 can you tell me if any (other) information in the Building Pulse Schedules tutorial is important to migrate to the Qiskit docs on IBM Quantum? I believe it will get lost otherwise with the big migration.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think new docs is largely based off of the existing Building Pulse Schedules tutorial so the rest of contents should be fine.

@nkanazawa1989 nkanazawa1989 added this pull request to the merge queue Oct 26, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 26, 2023
@coveralls
Copy link

Pull Request Test Coverage Report for Build 6681968128

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 5 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.003%) to 86.93%

Files with Coverage Reduction New Missed Lines %
qiskit/extensions/quantum_initializer/squ.py 2 84.15%
crates/qasm2/src/lex.rs 3 91.67%
Totals Coverage Status
Change from base Build 6673491411: 0.003%
Covered Lines: 73985
Relevant Lines: 85109

💛 - Coveralls

@nkanazawa1989 nkanazawa1989 added this pull request to the merge queue Oct 31, 2023
Merged via the queue into Qiskit:main with commit 7c89b68 Oct 31, 2023
13 checks passed
@ElePT
Copy link
Contributor

ElePT commented Nov 17, 2023

Given that this removal is planned for 1.0, we should backport the deprecation to 0.46. Thanks @TsafrirA for pointing it out.

@ElePT
Copy link
Contributor

ElePT commented Nov 17, 2023

@Mergifyio backport stable/0.46

Copy link
Contributor

mergify bot commented Nov 17, 2023

backport stable/0.46

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Nov 17, 2023
* Promote to deprecation and correct tests

* remove `guassian` from tutorial

* Release notes

* change to 0.46.0

* Test fix

* Lynt

(cherry picked from commit 7c89b68)
github-merge-queue bot pushed a commit that referenced this pull request Nov 17, 2023
* Promote to deprecation and correct tests

* remove `guassian` from tutorial

* Release notes

* change to 0.46.0

* Test fix

* Lynt

(cherry picked from commit 7c89b68)

Co-authored-by: TsafrirA <[email protected]>
@TsafrirA TsafrirA deleted the DiscreteLibraryDeprecation branch February 8, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: Deprecation Include in "Deprecated" section of changelog mod: pulse Related to the Pulse module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants