iqm.benchmarks.utils_plots.plot_layout_fidelity_graph

iqm.benchmarks.utils_plots.plot_layout_fidelity_graph#

iqm.benchmarks.utils_plots.plot_layout_fidelity_graph(cal_url: str, qubit_layouts: list[list[int]] | None = None, station: str | None = None)#

Plot a graph showing the quantum chip layout with fidelity information.

Creates a visualization of the quantum chip topology where nodes represent qubits and edges represent connections between qubits. Edge thickness indicates gate errors (thinner edges mean better fidelity) and selected qubits are highlighted in orange.

Parameters:
  • cal_url (str) – URL to retrieve calibration data from

  • qubit_layouts (list[list[int]] | None) – List of qubit layouts where each layout is a list of qubit indices

  • station (str | None) – Name of the quantum computing station to use predefined positions for. If None, positions will be generated algorithmically.

Returns:

The generated figure object containing the graph visualization

Return type:

matplotlib.figure.Figure