-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deprecate the discrete pulse library (#11110)
* 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)
- Loading branch information
1 parent
33ed163
commit addb62e
Showing
9 changed files
with
202 additions
and
158 deletions.
There are no files selected for viewing
61 changes: 31 additions & 30 deletions
61
docs/tutorials/circuits_advanced/06_building_pulse_schedules.ipynb
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
releasenotes/notes/deprecate-discrete-pulse-library-d2482407d7965972.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
deprecations: | ||
- | | ||
The discrete pulse library is now deprecated and will be removed in a future release. This includes: | ||
* :func:`~qiskit.pulse.library.constant` | ||
* :func:`~qiskit.pulse.library.zero` | ||
* :func:`~qiskit.pulse.library.square` | ||
* :func:`~qiskit.pulse.library.sawtooth` | ||
* :func:`~qiskit.pulse.library.triangle` | ||
* :func:`~qiskit.pulse.library.cos` | ||
* :func:`~qiskit.pulse.library.sin` | ||
* :func:`~qiskit.pulse.library.gaussian` | ||
* :func:`~qiskit.pulse.library.gaussian_deriv` | ||
* :func:`~qiskit.pulse.library.sech` | ||
* :func:`~qiskit.pulse.library.sech_deriv` | ||
* :func:`~qiskit.pulse.library.gaussian_square` | ||
* :func:`~qiskit.pulse.library.drag` | ||
Instead, use the corresponding :class:`~qiskit.pulse.SymbolicPulse`, with :meth:`~.SymbolicPulse.get_waveform()`. | ||
For example, instead of ``pulse.gaussian(100,0.5,10)`` use ``pulse.Gaussian(100,0.5,10).get_waveform()``. | ||
Note that the phase of both ``Sawtooth`` and ``Square`` is defined such that a phase of :math:``2\\pi`` | ||
shifts by a full cycle, contrary to the discrete counterpart. Also note that complex amplitude support is | ||
deprecated in the symbolic pulse library - use ``float`` ``amp`` and ``angle`` instead. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.