-
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
Added pulses to the SymbolicPulse
library
#9625
Conversation
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:
|
Pull Request Test Coverage Report for Build 4235675563
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TsafrirA this looks almost in good shape. Glad to see the growth of pulse library :)
Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @TsafrirA this looks good to go.
* Corrected library pulses return types. * Added Sin and Cos Pulses * Add sawtooth pulse * Add triangle pulse * Add new pulses to _init_ and some corrections * Add tests, release notes and some corrections. * Release notes correction * Documentation correction * Update qiskit/pulse/library/symbolic_pulses.py Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com> * Some corrections and modifications --------- Co-authored-by: Naoki Kanazawa <nkanazawa1989@gmail.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Summary
The old library of discrete pulses included several pulse types which were not present in the
SymbolicPulse
library. These pulses includeSin
,Cos
,Sawtooth
andTriangle
, which were added now to theSymbolicPulse
library.Details and comments
The
SymbolicPulse
library was extended to include 4 new pulse types:Sin
Cos
Sawtooth
Triangle
With the exception of the
Sawtooth
phase parameter, the behavior is identical to the corresponding discrete pulses. The phase parameter ofSawtooth
was modified such that a 2\pi phase shift will result in a full cycle shift, and not a \pi shift, as is the case in the discrete pulsesawtooth
.Following the example set by #9329, the pulses are introduced as functions, but their names are capitalized to match the old pulses.
The new pulses were not introduced to the
qpy_compat
test. To do that, the test would have to be split into several versions, according to the availability of different pulses in different releases. (Some versioning will be required anyway once the deprecation of complex amplitude will be completed - #9002)