Skip to main contentIBM Quantum Documentation

qiskit.visualization.plot_gate_map

qiskit.visualization.plot_gate_map(backend, figsize=None, plot_directed=False, label_qubits=True, qubit_size=None, line_width=4, font_size=None, qubit_color=None, qubit_labels=None, line_color=None, font_color='white', ax=None, filename=None, qubit_coordinates=None)GitHub(opens in a new tab)

Plots the gate map of a device.

Parameters

Returns

A Matplotlib figure instance.

Return type

Figure

Raises

Example

from qiskit.providers.fake_provider import GenericBackendV2
from qiskit.visualization import plot_gate_map
 
backend = GenericBackendV2(num_qubits=5)
 
plot_gate_map(backend)
../_images/qiskit-visualization-plot_gate_map-1.png
Was this page helpful?