diff --git a/qiskit/qpy/binary_io/schedules.py b/qiskit/qpy/binary_io/schedules.py index 83a023b9527b..1302698631e4 100644 --- a/qiskit/qpy/binary_io/schedules.py +++ b/qiskit/qpy/binary_io/schedules.py @@ -169,10 +169,10 @@ def _read_symbolic_pulse(file_obj, version): # And warn that this will change in future releases: warnings.warn( - "Complex amp support for symbolic library pulses will be deprecated. " - "Once deprecated, library pulses loaded from old QPY files (Terra version < 0.23)," + "Complex amp support for symbolic library pulses is deprecated. Once removed " + "in Qiskit 1.0.0, library pulses loaded from old QPY files (Terra version < 0.23)," " will be converted automatically to float (amp,angle) representation.", - PendingDeprecationWarning, + DeprecationWarning, ) class_name = "ScalableSymbolicPulse" diff --git a/releasenotes/notes/deprecate-complex-amp-old-qpy-d3d183e84c395d9c.yaml b/releasenotes/notes/deprecate-complex-amp-old-qpy-d3d183e84c395d9c.yaml new file mode 100644 index 000000000000..7e4ec10ab1eb --- /dev/null +++ b/releasenotes/notes/deprecate-complex-amp-old-qpy-d3d183e84c395d9c.yaml @@ -0,0 +1,13 @@ +--- +deprecations: + - | + Loading library :class:`~.qiskit.pulse.ScalableSymbolicPulse` objects with + complex ``amp`` parameter from + qpy files of version 5 or lower (Qiskit Terra < 0.23.0) is now deprecated. + Following the removal in Qiskit 1.0.0, complex ``amp`` will be automatically + converted to float (``amp``,``angle``). The change applies to the pulses: + + * :class:`~.qiskit.pulse.Constant` + * :class:`~.qiskit.pulse.Drag` + * :class:`~.qiskit.pulse.Gaussian` + * :class:`~.qiskit.pulse.GaussianSquare`