:py:mod:`kosmos.dqc_scheduling.utils.timing_utils` ================================================== .. py:module:: kosmos.dqc_scheduling.utils.timing_utils Functions --------- .. py:function:: 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 Calculate actual parallel communication time considering node resources. :param comm_ops: List of (event_id, execution_time) for communication operations. :type comm_ops: list[tuple[EventId, int]] :param network: The quantum network topology. :type network: Network :param get_nodes_func: Function to extract node IDs from an event ID. :type get_nodes_func: Callable[[EventId], list[NodeId]] :returns: Actual execution time considering which ops can run in parallel. :rtype: int