qbraid.visualization.plot_atomic_register

plot_atomic_register(sites, filling, title=None, xlabel=None, ylabel=None, save_path=None, show=True)[source]

Plots atomic register given site coordinates and filling.

Parameters:
  • sites (list[tuple[float, float]]) – A list of tuples represents (x, y) coordinates.

  • filling (list[bool]) – A list of booleans indicating the filling status at each site.

  • title (Optional[str]) – The title of the plot. Defaults to “Atomic Register”.

  • xlabel (Optional[str]) – The label for the x-axis. Defaults to “X (meters)”.

  • ylabel (Optional[str]) – The label for the y-axis. Defaults to “Y (meters)”.

  • save_path (Optional[str]) – Path to save plot. Plot is not saved unless specified.

  • show (bool) – If True, display the figure. Defaults to True.

Return type:

None