Skip to content

Commit

Permalink
Fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
Randl committed Nov 5, 2023
1 parent 22d3f2a commit 2e647ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qiskit/pulse/library/parametric_pulses.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ class ParametricPulseShapes(Enum):
new_supported_pulse_name = library.YourPulseWaveformClass
"""
from __future__ import annotations

import sys
from abc import abstractmethod
from typing import Any

import math
import numpy as np
from typing_extensions import TypeGuard


from qiskit.circuit.parameterexpression import ParameterExpression
from qiskit.pulse.exceptions import PulseError
Expand All @@ -52,6 +54,11 @@ class ParametricPulseShapes(Enum):
from qiskit.pulse.library.waveform import Waveform
from qiskit.utils.deprecation import deprecate_func

if sys.version_info >= (3, 11):
from typing import TypeGuard
else:
from typing_extensions import TypeGuard


class ParametricPulse(Pulse):
"""The abstract superclass for parametric pulses.
Expand Down

0 comments on commit 2e647ca

Please sign in to comment.