Skip to content

Commit

Permalink
Remove try/except import error
Browse files Browse the repository at this point in the history
  • Loading branch information
nulinspiratie authored Feb 16, 2024
1 parent 17b5091 commit 59597a9
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions quam/components/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
from quam.utils import string_reference as str_ref


try:
from qm.qua import align, amp, play, wait, measure, dual_demod, declare, fixed
from qm.qua._type_hinting import *
except ImportError:
print("Warning: qm.qua package not found, pulses cannot be played from QuAM.")
from qm.qua import align, amp, play, wait, measure, dual_demod, declare, fixed
from qm.qua._type_hinting import *
from qm.qua._dsl import _PulseAmp


__all__ = [
Expand Down Expand Up @@ -120,8 +118,6 @@ def play(
automatically set to `self.name`.
"""
from qm.qua._dsl import _PulseAmp

if validate and pulse_name not in self.operations:
raise KeyError(
f"Operation '{pulse_name}' not found in channel '{self.name}'"
Expand Down

0 comments on commit 59597a9

Please sign in to comment.