iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.plot_rb_decay

Contents

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.plot_rb_decay#

iqm.benchmarks.randomized_benchmarking.randomized_benchmarking_common.plot_rb_decay(identifier: str, qubits_array: List[List[int]], dataset: Dataset, observations: Dict[int, Dict[str, Any]], violin: bool = True, scatter: bool = True, bars: bool = False, shade_stdev: bool = False, shade_meanerror: bool = False, logscale: bool = True, interleaved_gate: str | None = None, mrb_2q_density: float | None = None, mrb_2q_ensemble: Dict[str, float] | None = None) Tuple[str, Figure]#

Plot the fidelity decay and the fit to the model.

Parameters:
  • identifier (str) – the type of RB experiment

  • qubits_array (List[List[int]]) – Array of sets of qubits for which to plot decays

  • dataset (xr.dataset) – the dataset from the experiment

  • observations (Dict[str, Dict[str, Any]]) – the corresponding observations from the experiment

  • bars (bool, optional) – Whether error bars are plotted or not. Defaults to False

  • violin (bool, optional) – Whether violins are plotted or not. Defaults to True

  • scatter (bool, optional) – Whether all individual points are plotted or not. Defaults to True

  • shade_stdev (bool, optional) – Whether standard deviations are shaded or not. Defaults to False

  • shade_meanerror (bool, optional) – Whether to shade standard deviations. Defaults to False

  • logscale (bool, optional) – Whether x-axis uses logscale. Defaults to True

  • interleaved_gate (Optional[str]) – The label or the interleaved gate. Defaults to None

  • mrb_2q_density (Optional[float], optional) – Density of MRB 2Q gates. Defaults to None.

  • mrb_2q_ensemble (Optional[Dict[str, float]], optional) – MRB ensemble of 2Q gates. Defaults to None.

Returns:

the plot title and the figure

Return type:

Tuple[str, Figure]