iqm.benchmarks.randomized_benchmarking.eplg.eplg.plot_layered_fidelities_graph

iqm.benchmarks.randomized_benchmarking.eplg.eplg.plot_layered_fidelities_graph#

iqm.benchmarks.randomized_benchmarking.eplg.eplg.plot_layered_fidelities_graph(fidelities: dict[str, dict[str, float]], backend_coupling_map: CouplingMap, qubit_names: dict[int, str], timestamp: str, station: str | None = None, eplg_estimate: dict[str, float] | None = None) tuple[str, Figure]#

Plots the layered fidelity for each corresponding pair of qubits in a graph layout of the given backend.

Parameters:
  • fidelities (dict[str, dict[str, float]]) – A dictionary (str qubit keys) of dictionaries (keys “value”/”uncertainty”) of fidelities (float) to plot.

  • backend_coupling_map (CouplingMap) – The CouplingMap instance.

  • qubit_names (dict[int, str]) – A dictionary of qubit names corresponding to qubit indices.

  • timestamp (str) – The timestamp of the corresponding experiment.

  • station (str | None) – The name of the station to use for the graph layout.

  • eplg_estimate (dict[str, float] | None) – A dictionary with the EPLG estimate value and its uncertainty.

Returns:

The figure label and the layered fidelities plot figure.

Return type:

tuple[str, Figure]