exa.core.plotting.topology.plot_topology

Contents

exa.core.plotting.topology.plot_topology#

plot_topology(figure_title, layout, data=None, observation_type='', qb_colormap=<matplotlib.colors.ListedColormap object>, tc_colormap=<matplotlib.colors.ListedColormap object>, cr_colormap=<matplotlib.colors.ListedColormap object>, save_path=None, include_component_names=True, write_values=True, show_colorbar=True, background_color=None, resolution=300, show_logo=True, vmin=None, vmax=None, close_fig=False, min_spacing=None, plot_style=None)#

Draw the topology showing a symbolic representation of the couplers and the qubits layout.

Parameters:
  • figure_title (str) – The title of the figure.

  • layout (ChipLayout) – The locations of the components.

  • data (PlotData | None) – Contains component values and units.

  • observation_type (str) – Name of observation type, used for the colorbar label.

  • qpu_type – Name of the QPU to plot. Necessary to select correct style format.

  • qb_colormap (Colormap | None) – Colormap for qubits.

  • tc_colormap (Colormap | None) – Colormap for couplers.

  • cr_colormap (Colormap | None) – Colormap for computational resonators.

  • save_path (Path | None) – Path object to save directory.

  • include_component_names (bool) – Boolean value indicating whether components names should be explicitly shown.

  • write_values (bool) – Boolean value indicating whether data values should be explicitly written.

  • show_colorbar (bool) – Boolean value to determine whether colorbars should be added.

  • background_color (str | None) – Set background color.

  • resolution (int) – Dots-per-inch, only used if saved as a raster image.

  • show_logo (bool) – If True, shows the IQM logo with timestamp. If False, logo is removed.

  • vmin (float | None) – Minimal value of the colormap.

  • vmax (float | None) – Maximal value of the colormap.

  • close_fig (bool) – If True, closes plt figures.

  • min_spacing (float | None) – Distance between the closest components.

  • plot_style (dict | None) – The plot style to use.

Returns:

The topology map.

Return type:

Figure