Skip to content

Commit

Permalink
fix: Filter unsupported events
Browse files Browse the repository at this point in the history
Both because of device limitations, or not yet implemented ones
  • Loading branch information
alecandido committed Dec 11, 2024
1 parent 82ec248 commit 293f39b
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion src/qibolab/_core/instruments/qblox/program.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import numpy as np

from qibolab._core.execution_parameters import AveragingMode, ExecutionParameters
from qibolab._core.pulses.pulse import Delay, Pulse, PulseLike, VirtualZ
from qibolab._core.pulses.pulse import (
Acquisition,
Align,
Delay,
Pulse,
PulseLike,
Readout,
VirtualZ,
)
from qibolab._core.sequence import PulseSequence
from qibolab._core.sweeper import ParallelSweepers, Parameter

Expand Down Expand Up @@ -117,6 +125,11 @@ def play(
pulse: PulseLike, waveforms: WaveformIndices, sampling_rate: float
) -> list[Line]:
"""Process the individual pulse in experiment."""
if isinstance(pulse, Align):
raise NotImplementedError("Align operation is not supported by Qblox.")
# TODO:
if isinstance(pulse, (Readout, Acquisition)):
raise NotImplementedError
return (
[
Line.instr(
Expand Down

0 comments on commit 293f39b

Please sign in to comment.