About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
qiskit.visualization.plot_error_map
qiskit.visualization.plot_error_map(backend, figsize=(15, 12), show_title=True, qubit_coordinates=None)
Plots the error map of a given backend.
Parameters
- backend (Backend) – Given backend.
- figsize (tuple) – Figure size in inches.
- show_title (bool) – Show the title or not.
- qubit_coordinates (Sequence) – An optional sequence input (list or array being the most common) of 2d coordinates for each qubit. The length of the sequence much mast the number of qubits on the backend. The sequence should be the planar coordinates in a 0-based square grid where each qubit is located.
Returns
A matplotlib figure showing error map.
Return type
Figure
Raises
- VisualizationError – The backend does not provide gate errors for the ‘sx’ gate.
- MissingOptionalLibraryError – If matplotlib or seaborn is not installed.
Example
from qiskit import QuantumCircuit, execute
from qiskit.visualization import plot_error_map
from qiskit.providers.fake_provider import FakeVigoV2
backend = FakeVigoV2()
plot_error_map(backend)

Was this page helpful?
Report a bug or request content on GitHub.