Skip to content

Commit

Permalink
fix: Start laying out the sequence structure
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Nov 1, 2024
1 parent f7a8883 commit d03e4f5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/qibolab/_core/instruments/qblox/sequence.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
from typing import Annotated

from pydantic import PlainSerializer, PlainValidator

from qibolab._core.serialize import Model

from .ast_ import Program
from .parse import parse


class Waveforms(Model):
pass


class Weights(Model):
pass


class Acquisitions(Model):
pass


class Sequence(Model):
waveforms: Waveforms
weights: Weights
acquisitions: Acquisitions
program: Annotated[
Program, PlainSerializer(lambda p: p.asm()), PlainValidator(parse)
]

0 comments on commit d03e4f5

Please sign in to comment.