Skip to content

Quam macro

QuamMacro

Bases: QuamComponent, BaseMacro, ABC

Source code in quam/core/macro/quam_macro.py
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@quam_dataclass
class QuamMacro(QuamComponent, BaseMacro, ABC):
    id: str = "#./inferred_id"
    fidelity: Optional[float] = None
    duration: Optional[float] = "#./inferred_duration"

    @property
    def inferred_duration(self) -> Optional[float]:
        """
        This property is used to get the duration of the macro (in seconds).
        It is not implemented in the base class, but can be overridden in subclasses.
        If not implemented, the macro is assumed to have no fixed duration.
        """
        return None

inferred_duration property

This property is used to get the duration of the macro (in seconds). It is not implemented in the base class, but can be overridden in subclasses. If not implemented, the macro is assumed to have no fixed duration.