Skip to content

Commit

Permalink
fix: Mock sequencers as well
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Jan 20, 2025
1 parent 5ace71b commit bf2d42b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/qibolab/_core/instruments/qblox/mock/cluster.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
__all__ = []


from ..sequence import Sequence


class MockSequencer:
def __init__(self, idx: int) -> None:
self.idx = idx
self.register = {}

def sequence(self, sequence: Sequence) -> None:
pass


class MockModule:
def __init__(self, slot: int) -> None:
self.slot_idx = slot
Expand All @@ -14,7 +26,7 @@ def is_qrm_type(self) -> bool:

@property
def sequencers(self) -> list:
return [None] * 20
return [MockSequencer(i) for i in range(20)]

def disconnect_outputs(self) -> None:
pass
Expand Down

0 comments on commit bf2d42b

Please sign in to comment.