Skip to content

Commit

Permalink
removed deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
neet-14 committed Nov 4, 2023
1 parent 2818cf0 commit 49d8b6e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 52 deletions.
52 changes: 0 additions & 52 deletions qiskit/visualization/pulse/matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import numpy as np

from qiskit.utils import optionals as _optionals
from qiskit.visualization.pulse.qcstyle import PulseStyle, SchedStyle
from qiskit.visualization.pulse.interpolation import step_wise
from qiskit.pulse.channels import (
DriveChannel,
Expand All @@ -46,21 +45,11 @@
SetPhase,
)
from qiskit.pulse.schedule import ScheduleComponent
from qiskit.utils.deprecation import deprecate_func


class EventsOutputChannels:
"""Pulse dataset for channel."""

@deprecate_func(
additional_msg=(
"Instead, use the new interface in ``qiskit.visualization.pulse_drawer`` for "
"pulse visualization."
),
since="0.23.0",
removal_timeline="no earlier than 6 months after the release date",
package_name="qiskit-terra",
)
def __init__(self, t0: int, tf: int):
"""Create new channel dataset.
Expand Down Expand Up @@ -290,23 +279,6 @@ def _trim(self, events: dict[int, Any]) -> dict[int, Any]:
class WaveformDrawer:
"""A class to create figure for sample pulse."""

@deprecate_func(
additional_msg=(
"Instead, use the new interface in ``qiskit.visualization.pulse_drawer`` for "
"pulse visualization."
),
since="0.23.0",
removal_timeline="no earlier than 6 months after the release date",
package_name="qiskit-terra",
)
def __init__(self, style: PulseStyle):
"""Create new figure.
Args:
style: Style sheet for pulse visualization.
"""
self.style = style or PulseStyle()

@_optionals.HAS_MATPLOTLIB.require_in_call("waveform drawer")
def draw(
self,
Expand Down Expand Up @@ -394,30 +366,6 @@ def draw(
class ScheduleDrawer:
"""A class to create figure for schedule and channel."""

@deprecate_func(
additional_msg=(
"Instead, use the new interface in ``qiskit.visualization.pulse_drawer`` for "
"pulse visualization."
),
since="0.23.0",
removal_timeline="no earlier than 6 months after the release date",
package_name="qiskit-terra",
)
def __init__(self, style: SchedStyle):
"""Create new figure.
Args:
style: Style sheet for pulse schedule visualization.
Raises:
MissingOptionalLibraryError: If matplotlib is not installed
"""
from matplotlib import pyplot as plt
from matplotlib import gridspec

self.plt_mod = plt
self.gridspec_mod = gridspec
self.style = style or SchedStyle()

def _build_channels(
self,
schedule: ScheduleComponent,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
upgrade:
- |
Instead use `draw` method in `~qiskit..visualization.pulse_v2.interface.py`
deprecations:
- |
The deprecated function in :func:`~qiskit..visualization.pulse.matplotlib.py` will be remove in the future release
fixes:
- |
Issue #11144 `Remove deprecated code since 0.23`

0 comments on commit 49d8b6e

Please sign in to comment.