Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.visualization.plot_error_map

plot_error_map(backend, figsize=(12, 9), show_title=True, qubit_coordinates=None)[código fonte]

Plots the error map of a given backend.

Parâmetros
  • backend (IBMQBackend) – 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.

Retorno

A matplotlib figure showing error map.

Tipo de retorno

Figure

Levanta
  • VisualizationError – Input is not IBMQ backend.

  • VisualizationError – The backend does not provide gate errors for the “sx” gate.

  • MissingOptionalLibraryError – If seaborn is not installed

Example

from qiskit import QuantumCircuit, execute, IBMQ
from qiskit.visualization import plot_error_map
%matplotlib inline

IBMQ.load_account()
provider = IBMQ.get_provider(hub='ibm-q')
backend = provider.get_backend('ibmq_vigo')
plot_error_map(backend)
../_images/qiskit.visualization.plot_error_map_1_0.png