spheres.beams.animate_spin_beam

spheres.beams.animate_spin_beam(spin, H, dt=0.1, T=6.283185307179586, size=3.5, n_samples=200, filename=None, fps=20)[source]

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

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

  • H (qt.Qobj) – Hamiltonian.

  • dt (float) – Time step.

  • T (float) – How long to evolve for.

  • size (float) – Size of plot.

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

  • filename (str) – Filename at which to save movie.

  • fps (int) – Frames per second.