system_gate_map

system_gate_map(backend, figsize=(None, None), label_qubits=True, qubit_size=None, line_width=None, font_size=None, qubit_colors='#2f4b7c', qubit_labels=None, line_colors='#2f4b7c', font_color='white', background_color='white', as_widget=False)[source]

Plots an interactive gate map of a device.

Parameters
  • backend (IBMQBackend or FakeBackend or DeviceSimulator or Properties) – Plot the error map for a backend.

  • figsize (tuple) – Output figure size (wxh) in pixels.

  • label_qubits (bool) – Labels for the qubits.

  • qubit_size (float) – Size of qubit marker.

  • line_width (float) – Width of lines.

  • font_size (float) – Font size of qubit labels.

  • qubit_colors (str or list) – A list of colors for the qubits. If a single color is given, it’s used for all qubits.

  • qubit_labels (list) – A list of qubit labels

  • line_colors (str or list) – A list of colors for each line from the coupling map. If a single color is given, it’s used for all lines.

  • font_color (str) – The font color for the qubit labels.

  • background_color (str) – The background color, either ‘white’ or ‘black’.

  • as_widget (bool) – Return the figure as a widget.

Returns

Returned figure instance.

Return type

PlotlyFigure or PlotlyWidget

Raises

KaleidoscopeError – Invalid input object.

Example

from qiskit import *
from kaleidoscope.qiskit.backends import system_gate_map

pro = IBMQ.load_account()
backend = pro.backends.ibmq_vigo
system_gate_map(backend)
Traceback (most recent call last):
  File "<ipython-input-1-8cecd017abdb>", line 5, in <module>
    backend = pro.backends.ibmq_vigo
  File "/opt/miniconda3/envs/qiskit/lib/python3.9/site-packages/qiskit/providers/ibmq/ibmqbackendservice.py", line 566, in __getattribute__
    return self._backend_service.__getattribute__(item)
AttributeError: 'IBMQBackendService' object has no attribute 'ibmq_vigo'

Use %tb to get the full traceback.