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 aPlotlyWidget
. Otherwise the figure is to be returned as aPlotlyFigure
.
- Returns
The error map figure.
- Return type
- 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 [1;36m(most recent call last)[0m: File [0;32m"<ipython-input-1-d24a6d60dac4>"[0m, line [0;32m5[0m, in [0;35m<module>[0m backend = pro.backends.ibmq_vigo [1;36m File [1;32m"/opt/miniconda3/envs/qiskit/lib/python3.9/site-packages/qiskit/providers/ibmq/ibmqbackendservice.py"[1;36m, line [1;32m566[1;36m, in [1;35m__getattribute__[1;36m[0m [1;33m return self._backend_service.__getattribute__(item)[0m [1;31mAttributeError[0m[1;31m:[0m 'IBMQBackendService' object has no attribute 'ibmq_vigo' Use %tb to get the full traceback.