spheres.visualization.matplotlib_spheres.viz_spin

spheres.visualization.matplotlib_spheres.viz_spin(spin, show_arrows=True, show=True)[source]

Visualizes a spin-j state with matplotlib.

Parameters
  • spin (qt.Qobj) –

  • show_arrows (bool) – If True, also shows vectors pointing to the stars.

  • show (bool) – Whether to automatically display the figure.