pygsti.report.choi_eigenvalue_barplot

pygsti.report.choi_eigenvalue_barplot(evals, errbars=None, size=(8, 5), barWidth=1, save_to=None, fontSize=15, xlabel='index', ylabel='Re[eigenvalue]', title=None)

Creates a bar plot showing the real parts of each of the eigenvalues given. This is useful for plotting the eigenvalues of Choi matrices, since all elements are positive for a CPTP map.

Parameters:
  • evals (ndarray) – An array containing the eigenvalues to plot.
  • errbars (ndarray, optional) – An array containing the lengths of the error bars to place on each bar of the plot.
  • size (tuple, optional) – The (width,height) figure size in inches.
  • barWidth (float, optional) – The width of the bars in the plot.
  • save_to (str, optional) – save figure as this filename (usually ending in .pdf)
  • fontSize (int, optional) – size of font for title
  • xlabel (str, optional) – An x-axis label for the plot.
  • ylabel (str, optional) – A y-axis label for the plot.
  • title (str, optional) – A title for the plot.
Returns:

Return type:

ReportFigure