tqec.simulation.plotting.inset.plot_observable_as_inset#

plot_observable_as_inset(ax_target: Axes, zx_graph: ZXGraph, correlation_surface: CorrelationSurface, bounds: tuple[float, float, float, float] = (0.5, 0.0, 0.5, 0.5)) None[source]#

Plot the provided observable as an inset in the provided ax.

Parameters:
  • ax_target – the ax to insert an inset in to plot the correlation surface.

  • bounds – (x0, y0, width, height) where (x0, y0) is the position of the lower-left corner of the inset. All coordinates are normalized to [0, 1] meaning that an input of (0, 0, 1, 1) will span the whole ax_target.

  • zx_graph – ZX graph used.

  • correlation_surface – correlation surface over the provided zx_graph to draw.