system_error_map

system_error_map(backend, figsize=(None, None), colormap=None, background_color='white', show_title=True, remove_badcal_edges=True, as_widget=False)[source]

Plot the error map of a device.

Parameters
  • backend (IBMQBackend or FakeBackend or DeviceSimulator or Properties) – Plot the error map for a backend.

  • figsize (tuple, optional) – Figure size in pixels.

  • colormap (Colormap) – A matplotlib colormap.

  • background_color (str, optional) – Background color, either ‘white’ or ‘black’.

  • show_title (bool, optional) – Whether to show figure title.

  • remove_badcal_edges (bool, optional) – Whether to remove bad CX gate calibration data.

  • as_widget (bool, optional) – True if the figure is to be returned as a PlotlyWidget. Otherwise the figure is to be returned as a PlotlyFigure.

Returns

The error map figure.

Return type

PlotlyFigure or PlotlyWidget

Raises

KaleidoscopeError – Invalid input type.

Example

from qiskit import *
from kaleidoscope.qiskit.backends import system_error_map

pro = IBMQ.load_account()
backend = pro.backends.ibmq_vigo
system_error_map(backend)
Traceback (most recent call last):
  File "<ipython-input-1-d24a6d60dac4>", line 5, in <module>
    backend = pro.backends.ibmq_vigo
  File "/opt/miniconda3/envs/qiskit/lib/python3.9/site-packages/qiskit/providers/ibmq/ibmqbackendservice.py", line 566, in __getattribute__
    return self._backend_service.__getattribute__(item)
AttributeError: 'IBMQBackendService' object has no attribute 'ibmq_vigo'

Use %tb to get the full traceback.