iq_readout.plots.shots2d.plot_boundaries_2d#

plot_boundaries_2d(ax, classifier, xlim=None, ylim=None)[source]#

Plots the decision boundaries in a 2D plane

Parameters:
ax:

Matplotlib axis

xlim: (xmin, xmax)

Range of the X axis. Default: ax.get_xlim().

ylim: (ymin, ymax)

Range of the Y axis. Default: ax.get_ylim().

Returns:
ax:

Matplotlib axis with the data plotted