Skip to content

Commit

Permalink
fix: Cool down linter errors in zhinst
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 6, 2024
1 parent 3dd5092 commit c503347
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/qibolab/instruments/zhinst/pulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
def select_pulse(pulse: Pulse):
"""Return laboneq pulse object corresponding to the given qibolab pulse."""
if isinstance(pulse.envelope, Rectangular):
can_compress = pulse.type is not PulseType.READOUT
# FIXME:
# can_compress = pulse.type is not PulseType.READOUT
can_compress = False
return laboneq.pulse_library.const(
length=round(pulse.duration * NANO_TO_SECONDS, 9),
amplitude=pulse.amplitude,
Expand All @@ -33,7 +35,9 @@ def select_pulse(pulse: Pulse):
if isinstance(pulse.envelope, GaussianSquare):
sigma = pulse.envelope.rel_sigma
width = pulse.envelope.width
can_compress = pulse.type is not PulseType.READOUT
# FIXME:
# can_compress = pulse.type is not PulseType.READOUT
can_compress = False
return laboneq.pulse_library.gaussian_square(
length=round(pulse.duration * NANO_TO_SECONDS, 9),
width=round(pulse.duration * NANO_TO_SECONDS, 9) * width,
Expand Down
4 changes: 3 additions & 1 deletion src/qibolab/instruments/zhinst/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def classify_sweepers(
for sweeper in sweepers:
if sweeper.parameter is Parameter.bias or (
sweeper.parameter is Parameter.amplitude
and sweeper.pulses[0].type is PulseType.READOUT
# FIXME:
# and sweeper.pulses[0].type is PulseType.READOUT
and False
):
nt_sweepers.append(sweeper)
else:
Expand Down

0 comments on commit c503347

Please sign in to comment.