Skip to main content
IBM Quantum Platform
이 페이지는 Qiskit SDK의 이전 버전입니다. 최신 버전으로 이동

qiskit.visualization.plot_error_map

qiskit.visualization.plot_error_map(backend, figsize=(15, 12), show_title=True, qubit_coordinates=None)

GitHub

Plots the error map of a given backend.

Deprecated since version 1.4

The function plot_error_map will stop supporting inputs of type BackendV1 in the backend parameter in a future release no earlier than 2.0. BackendV1 is deprecated and implementations should move to BackendV2.

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

Example

from qiskit.visualization import plot_error_map
from qiskit.providers.fake_provider import GenericBackendV2

backend = GenericBackendV2(num_qubits=5)
plot_error_map(backend)
Output from the previous code.
이 페이지가 도움이 되었습니까?
GitHub에서 버그, 오타를 보고하거나 컨텐츠를 요청하십시오.