kosmos.dqc_scheduling.utils.timing_utils

Functions

calculate_parallel_comm_time(comm_ops: list[tuple[kosmos.dqc_scheduling.event.EventId, int]], network: kosmos.topology.net.Network, get_nodes_func: collections.abc.Callable[[kosmos.dqc_scheduling.event.EventId], list[kosmos.topology.node.NodeId]]) int[source]

Calculate actual parallel communication time considering node resources.

Parameters:
  • comm_ops (list[tuple[EventId, int]]) – List of (event_id, execution_time) for communication operations.

  • network (Network) – The quantum network topology.

  • get_nodes_func (Callable[[EventId], list[NodeId]]) – Function to extract node IDs from an event ID.

Returns:

Actual execution time considering which ops can run in parallel.

Return type:

int