iqm.error_reduction_tools.readout_characterization.visualization.visualize_time_stability#
- iqm.error_reduction_tools.readout_characterization.visualization.visualize_time_stability(data, std_shots, threshold_err=0.1, threshold_ratio=3, upper_y_label=None)#
Visualize temporal stability of readout characterization data across multiple runs.
Creates a two-panel visualization to assess the temporal stability of readout measurements. The first panel shows the distribution of measurements across qubits with violin plots, individual data points, and error bars representing pure statistical uncertainty. The second panel displays the ratio of total standard deviation to shot-noise standard deviation for each qubit.
- Parameters:
data (ndarray) – 2D array of shape (
num_runs,num_qubits) containing measurement data from multiple characterization runs.std_shots (ndarray) – Array of shot-noise standard deviations for each qubit, representing pure statistical uncertainty expected from finite sampling.
threshold_err (float) – Threshold value for acceptable error level, displayed as a horizontal line in the first panel. Default is 0.1 (10%).
threshold_ratio (float) – Threshold value for the ratio of standard deviations, displayed as a horizontal line in the second panel. Default is 3.
upper_y_label (str | None) – Label for the y-axis of the first panel. If
None, no label is set.
- Returns:
None. Displays a matplotlib figure with two subplots.- Return type:
None
Note
The first panel shows violin plots with overlaid scatter points (with jitter) and error bars representing shot-noise limited uncertainty.
The second panel uses a logarithmic y-scale to show the ratio of total standard deviation to shot-noise standard deviation. A ratio near 1 indicates that the measurement is shot-noise limited, while higher ratios suggest additional sources of variability (e.g., temporal drift).
Horizontal reference lines at y=1 and y=threshold_ratio help identify qubits with excessive time-dependent variability.