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’smetadata["error_aware"].ax (
Any|None) – Axes to draw on. A new figure is created when this isNone.
- Return type:
- Returns:
The axes drawn on.
- Raises:
ValidationError – If the circuit carries no error-aware metadata.
ImportError – If matplotlib is not installed.