plot_observable_as_inset#
- tqec.simulation.plot_observable_as_inset(ax_target, zx_graph, observable, bounds=(0.5, 0.0, 0.5, 0.5))[source]#
Plot the provided observable as an inset in the provided ax.
- Parameters:
ax_target (Axes) – the ax to insert an inset in to plot the correlation surface.
bounds (tuple[float, float, float, float]) – (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 (ZXGraph) – ZX graph used.
observable (CorrelationSurface) – correlation surface over the provided zx_graph to draw.
- Return type:
None