Skip to content

Commit

Permalink
Remove getattr
Browse files Browse the repository at this point in the history
  • Loading branch information
nkanazawa1989 committed Feb 17, 2023
1 parent f932bfb commit 292fabd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions qiskit/pulse/instruction_schedule_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
# copyright notice, and modified files need to carry a notice indicating
# that they have been altered from the originals.

# pylint: disable=unused-import

"""
A convenient way to track reusable subschedules by name and qubit.
Expand Down Expand Up @@ -38,6 +40,8 @@
ScheduleDef,
CallableDef,
PulseQobjDef,
# for backward compatibility
CalibrationPublisher,
)
from qiskit.pulse.exceptions import PulseError
from qiskit.pulse.schedule import Schedule, ScheduleBlock
Expand Down Expand Up @@ -400,9 +404,3 @@ def _get_instruction_string(inst: Union[str, Instruction]):
raise PulseError(
'Input "inst" has no attribute "name". This should be a circuit "Instruction".'
) from ex


def __getattr__(name):
from qiskit.pulse import calibration_entries

return getattr(calibration_entries, name)

0 comments on commit 292fabd

Please sign in to comment.