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
- 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 [1;36m(most recent call last)[0m: File [0;32m"<ipython-input-1-8cecd017abdb>"[0m, line [0;32m5[0m, in [0;35m<module>[0m backend = pro.backends.ibmq_vigo [1;36m File [1;32m"/opt/miniconda3/envs/qiskit/lib/python3.9/site-packages/qiskit/providers/ibmq/ibmqbackendservice.py"[1;36m, line [1;32m566[1;36m, in [1;35m__getattribute__[1;36m[0m [1;33m return self._backend_service.__getattribute__(item)[0m [1;31mAttributeError[0m[1;31m:[0m 'IBMQBackendService' object has no attribute 'ibmq_vigo' Use %tb to get the full traceback.