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 (Optional[Sequence[Sequence[Tuple[int, int]]]) – Sequences of edges defining disjoint layers to draw. * Default is None.
station (Optional[str]) – The name of the station. * Default is None.
qubit_names (Optional[Dict[int, str]]) – A dictionary mapping qubit indices to their names. * Default is None.
is_eplg (Optional[bool]) – A flag indicating if the graph refers to an EPLG experiment. * Default is False.
- Returns:
The figure name and the figure object.
- Return type:
Tuple[str, Figure]