-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Remove ParametricPulse
#11281
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
Remove ParametricPulse
#11281
Conversation
One or more of the the following people are requested to review this:
|
Pull Request Test Coverage Report for Build 6928112990
💛 - 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.
This looks fine but note that #11024 already does this. I put a comment in-line based on something I saw there but not here.
) -> "ParametricPulseShapes": | ||
"""Get Qobj name from the pulse class instance. | ||
|
||
Args: | ||
instance: Symbolic or ParametricPulse class. |
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.
The references to library.parametric_pulses
below should be removed.
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.
@wshanks @nkanazawa1989 |
@@ -257,8 +256,6 @@ def _build_waveform(self): | |||
for command in commands: | |||
duration = command.duration | |||
tf = min(time + duration, self.tf) | |||
if isinstance(command, ParametricPulse): |
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.
Do we need to replace this with SymbolicPulse
?
def detail_title( | ||
program: Union[pulse.Waveform, pulse.ParametricPulse, pulse.Schedule], device: DrawerBackendInfo | ||
) -> str: | ||
def detail_title(program: Union[pulse.Waveform, pulse.Schedule], device: DrawerBackendInfo) -> str: |
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.
Same here
|
||
The ``ParametricPulse`` base class and pulse library were superseded by the | ||
:class:`~qiskit.pulse.SymbolicPulse` class and pulse library, which provide | ||
better performance and QPY support. All removed library pulses have a |
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.
I'm not sure if symbolic will provide better performance. Visualization is usually slow due to symbolic expression evaluation overhead.
@nkanazawa1989 following my previous comment, do you want to handle this here or on #11024? |
Close in favor of #11024 (can be reopened if another PR cannot meet 1.0 deadline) |
Summary
This PR removes the
ParametericPulse
base class and pulse library.Details and comments
The
ParametricPulse
library has been superseded by theSymbolicPulse
library which provides QPY support and some performance improvements. It is supposed to be deprecated in Qiskit 0.46 in #11279, and has been pending deprecation since Terra 0.22. This PR removes the base class and pulse library.