plot_error_aware_history

plot_error_aware_history(circuit, ax=None)

Plot the error curves an error-aware compile recorded, against the layer count.

Draws the compilation error, the physical error and the overall error of every depth the search optimized, and marks the depth it returned.

Parameters:
  • circuit (QuantumCircuit) – Circuit compiled with an error-aware config, carrying the search’s metadata["error_aware"].

  • ax (Any | None) – Axes to draw on. A new figure is created when this is None.

Return type:

Any

Returns:

The axes drawn on.

Raises: