iqm.benchmarks.coherence.coherence.plot_coherence#
- iqm.benchmarks.coherence.coherence.plot_coherence(amplitude: Dict[str, float], backend_name: str, delays: List[float], offset: Dict[str, float], qubit_set: List[int], qubit_probs: dict[str, List[float]], timestamp: str, T_fit: Dict[str, float], T_fit_err: Dict[str, float], qubit_to_plot: List[int] | None = None, coherence_exp: str = 't1') Tuple[str, Figure] #
Plot coherence decay (T1 or T2_echo) for each qubit as subplots.
- Parameters:
amplitude_list – Fitted amplitudes (A) per qubit.
backend_name (str) – Name of the backend used for the experiment.
delays (List[float]) – List of delay times used in the coherence experiments.
offset (Dict[str, float]) – Fitted offsets (C) for each qubit.
qubit_set (List[int]) – List of qubit indices involved in the experiment.
qubit_probs (dict[str, List[float]]) – Measured probabilities P(1) for each qubit at different delays.
timestamp (str) – Timestamp for labeling the plot.
T_fit (Dict[str, float]) – Fitted coherence time (T) for each qubit.
T_fit_err (Dict[str, float]) – Fitted coherence time error for each qubit.
qubit_to_plot (List[int] | None) – Specific qubits to plot. If None, all qubits in qubit_set are plotted.
coherence_exp (str) – Type of coherence experiment (‘t1’ or ‘t2_echo’) for labeling and plotting logic.
- Returns:
Filename of the saved plot and the matplotlib figure object.
- Return type:
Tuple[str, Figure]