mqt.ionshuttler.multi_shuttler.outside.graph_utils¶
Module Contents¶
- update_distance_map(graph: Graph, state: dict[int, int]) dict[int, dict[str, int]][source]¶
Update a distance map that tracks the distances to each pz for each ion of current state. Dict: {ion: {‘pz_name’: distance}}, e.g., {0: {‘pz1’: 2, ‘pz2’: 2, ‘pz3’: 1}, 1: {‘pz1’: 4, ‘pz2’: 1, ‘pz3’: 2}, 2: {‘pz1’: 3, ‘pz2’: 1, ‘pz3’: 3}}