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

Update GaussianPulse for consistent parameter validation results whether validation occurs during or after construction. #8151

Merged
3 changes: 2 additions & 1 deletion qiskit/pulse/library/parametric_pulses.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def get_waveform(self) -> Waveform:
@abstractmethod
def validate_parameters(self) -> None:
"""
Validate parameters.
Validate parameters. This is an internal check for subclasses and should
not be interpreted or used as part of the user-facing API.

Raises:
PulseError: If the parameters passed are not valid.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
fixes:
- |
Additional documentation has been added to
:meth:`~.pulse.library.ParametricPulse.validate_parameters`
which clarifies that this method serves only as an internal check for subclasses
and should not be interpreted or used as a part of the user-facing API. Refer to
`#7882 <https://github.com/Qiskit/qiskit-terra/issues/7882>` for more details.