iq_readout.plots.metrics.plot_probs_prep_meas#
- plot_probs_prep_meas(ax, probs, colorbar_flag=False)[source]#
Plots the matrix whose element i,j corresponds to: p(measure state j | prepared state i)
- Parameters:
- ax:
Matplotlib axis
- probs: np.ndarray(N, N)
Probability matrix
- colorbar_flag
If True, adds colorbar to the figure
- Returns:
- ax:
Matplotlib axis with the data plotted