spheres.beams.viz_spin_beam

spheres.beams.viz_spin_beam(spin, size=3.5, n_samples=200)[source]

Visualizes a spin state and its corresponding structured Gaussian beam side by side with matplotlib.

Parameters
  • spin (qt.Qobj) – Spin-j state.

  • size (float) – Size of plot.

  • n_samples (int) – Number of samples of the beam function.