iqm.benchmarks.utils_plots.draw_graph_edges#
- iqm.benchmarks.utils_plots.draw_graph_edges(backend_coupling_map: CouplingMap, backend_num_qubits: int, edge_list: Sequence[tuple[int, int]], timestamp: str, disjoint_layers: Sequence[Sequence[tuple[int, int]]] | None = None, station: str | None = None, qubit_names: dict[int, str] | None = None, is_eplg: bool | None = False) tuple[str, Figure]#
Draw given edges on a graph within the given backend.
- Parameters:
backend_coupling_map (CouplingMap) – The coupling map to draw the graph from.
backend_num_qubits (int) – The number of qubits of the respectve backend.
edge_list (Sequence[tuple[int, int]]) – The edge list of the linear chain.
timestamp (str) – The timestamp to include in the figure name.
disjoint_layers (Sequence[Sequence[tuple[int, int]]] | None) – Sequences of edges defining disjoint layers to draw.
station (str | None) – The name of the station.
qubit_names (dict[int, str] | None) – A dictionary mapping qubit indices to their names.
is_eplg (bool | None) – A flag indicating if the graph refers to an EPLG experiment.
- Returns:
The figure name and the figure object.
- Return type:
Tuple[str, Figure]