spheres.beams

Majorana formalism for structured Gaussian beams.

Functions

animate_spin_beam(spin, H[, dt, T, size, …])

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

colorize(z)

Converts complex values into colors: hue represents phase and brightness magnitude.

laguerre_gauss_mode(N, l[, coordinates])

Returns a function evaluating a Laguerre-Gauss mode, which may take cartesian/cylindrical coordinates or vectors thereof.

spin_beam(spin[, coordinates])

Converts a spin state into a structured Gaussian beam, the latter being function of cartesian or cylindrical coordinates, expressing the intensity and phase of the classical light beam in the paraxial approximation.

viz_beam(beam[, size, n_samples])

Visualizes a structured Gaussian beam with matplotlib.

viz_spin_beam(spin[, size, n_samples])

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