iplot_error_map
iplot_error_map(backend, figsize=(800, 500), show_title=True, remove_badcal_edges=True, background_color='white', as_widget=False)
Plot the error map of a device.
Parameters
- backend (
IBMBackend
) – Plot the error map for this backend. - figsize (
Tuple
[int
]) – Figure size in pixels. - show_title (
bool
) – Whether to show figure title. - remove_badcal_edges (
bool
) – Whether to remove bad CX gate calibration data. - background_color (
str
) – Background color, either ‘white’ or ‘black’. - as_widget (
bool
) –True
if the figure is to be returned as aPlotlyWidget
. Otherwise the figure is to be returned as aPlotlyFigure
.
Return type
Union
[PlotlyFigure
, PlotlyWidget
]
Returns
The error map figure.
Raises
- VisualizationValueError – If an invalid input is received.
- VisualizationTypeError – If the specified backend is a simulator.
Example
from qiskit_ibm_provider import IBMProvider
from qiskit_ibm_provider.visualization import iplot_error_map
provider = IBMProvider(group='open', project='main')
backend = provider.get_backend('ibmq_vigo')
iplot_error_map(backend, as_widget=True)
Was this page helpful?