qiskit.visualization.plot_error_map#

qiskit.visualization.plot_error_map(backend, figsize=(12, 9), show_title=True, qubit_coordinates=None)[fuente]#

Plots the error map of a given backend.

Par谩metros:
  • 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.

Devuelve:

A matplotlib figure showing error map.

Tipo del valor devuelto:

Figure

Muestra:

Ejemplo

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)

(Source code)

../_images/qiskit-visualization-plot_error_map-1.png