kosmos.dqc_scheduling.event_queue¶
Classes¶
- class EventQueue[source]¶
Event queue for scheduling protocols within the simulation.
- waiting_events¶
Events waiting for their dependencies to be satisfied before being added to the execution queue.
- event_results¶
Results from the executed protocols.
- Type:
Initialize the event queue.
Methods
- add_event_with_dependencies(protocol: kosmos.protocols.protocol.Protocol, delay: int = 0, dependencies: list[kosmos.dqc_scheduling.event.EventId] | None = None, event_id: kosmos.dqc_scheduling.event.EventId | None = None) kosmos.dqc_scheduling.event.EventId | None[source]¶
Add an event with dependencies to the system.
- Parameters:
- Returns:
ID of the added event.
- Return type:
EventId or None