This Python module provides a comprehensive suite of tools for studying and applying optics principles, particularly focusing on wave optics. The module is designed to generate families of solutions to the paraxial wave equation, which is fundamental in understanding the behavior of light in optical systems. Additionally, it includes functionalities for hologram generation, light propagation, and analysis of Stokes parameters, which describe the polarization state of light. These tools are essential for research and applications in optical engineering, laser physics, and related fields.
Solutions to the paraxial wave equation in various coordinate systems.
- Hermite-Gaussian Modes in cartesian coordinates
- Laguerre-Gaussian Modes in cylindrical coordinates
- Ince-Gaussian Modes in elyptical coordinates
- numpy
- pillow
- scipy
- matplotlib
- python >= 3.10
pip install optikit
where r is the radius,
from optikit.Beam import Beam
Gauss = Beam(type = 'Gaussian',
size = 5e-3, # in meters
shape = 501, # Number of points
w0 = 1e-3, # Beam width
k = (2*np.pi/632.8e-9), # wavenumber
z = 0)
Gauss.plot_amplitude()
The Ince-Gaussian (IG) mode is a solution to the paraxial wave equation expressed in elliptic coordinates
where r is the radius,
from optikit.Beam import Beam
Ince = Beam(type = 'InceGaussian',
size = 5e-3,
shape = 501,
parity = 0,
p = 2,
m = 2,
e = 2,
w0 = 1e-3,
k = (2*np.pi/632.8e-9),
z = 0)
Ince.plot_amplitude()
Created using a DMD
where r is the radius,
from optikit.Beam import Beam
Lag = Beam(type = 'LaguerreGauss',
size = 5e-3,
shape = 501,
p = 2,
l = 2,
w0 = 1e-3,
k = (2*np.pi/632.8e-9),
z = 0)
Lag.plot_amplitude()
where r is the radius,
from optikit.Beam import Beam
Herm = Beam(type = 'HermiteGaussian',
size = 5e-3,
shape = 501,
n = 2,
m = 2,
w0 = 1e-3,
k = (2*np.pi/632.8e-9),
z = 0)
Herm.plot_amplitude()
The slmpy module can be used to project the holograms in a SLM, the code implementation should be as bellow:
from optikit.Beam import Beam
import slmpy
Ince = Beam(type = 'InceGaussian',
size = 5e-3,
shape = 501,
parity = 0,
p = 2,
m = 2,
e = 2,
w0 = 1e-3,
k = (2*np.pi/632.8e-9),
z = 0)
slm = slmpy.SLMdisplay()
Hologram = Ince.Beam.Hologam(gamma=np.pi/3000, theta = np.pi/4, save= True)
slm.updateArray(Hologram)
The equation is solve numericaly by applying a transfer function.
where
The Propagator
class supports as an input a np.ndarray
ans OptiKit.Beam
class
from optikit.optics import propagator
from optikit.Beam import Beam
Gauss = Beam(type = 'Gaussian',
size = 2e-3,
shape = 2**8,
w0 = 1e-3,
k = (2*np.pi/632.8e-9),
z = 0)
Gauss.plot_amplitude()
Gauss_z = Propagator(beam= Gauss)
Gauss_z.propagate(zi = 1/2 * (2*np.pi/632.8e-9) * (1e-3 ** 2) , zn = 2**8)
Gauss_z.plot()
A classical way to measure the stokes paramters is the following:
Polarizer axis angle | Wave plate fast axis angle | Power Measurement |
---|---|---|
- | ||
- | ||
- | ||
$S_0 = P_1 + P_2$ $S_1 = P_1 - P_2$ $S_2 = 2P_3 - S_0$ $S_3 = S_0 - 2P_4$
$\psi = \frac{1}{2}\text{arctan}\left(\frac{S_2}{S_1}\right)$ $E_{ox} = \sqrt{0.5(S_0 + S_1)}$ $E_{oy} = \sqrt{0.5(S_0 - S_1)}$
[1] R. W. Gerchberg and W. O. Saxton, “A practical algorithm for the determination of the phase from image and diffraction plane pictures”, Optik 35, 237 (1972).
[2] K. Mitchell, S. Turtaev, M. Padgett, T. Cizmár, and D. Phillips, “High-speed spatial control of the intensity, phase and polarisation of vector beams using a digital micro-mirror device”, Opt. Express 24, 29269-29282 (2016).
[3] Forbes A. 2014, Laser Beam Propagation: Generation and Propagation of Customized Light (London: Taylor and Francis).
[4] Bandres MA, Gutiérrez-Vega JC. Ince-Gaussian modes of the paraxial wave equation and stable resonators. J Opt Soc Am A Opt Image Sci Vis. 2004 May;21(5):873-80. doi: 10.1364/josaa.21.000873. PMID: 15139441.
[5] Beth Schaefer, Edward Collett, Robert Smyth, Daniel Barrett, and Beth Fraher "Measuring the Stokes polarization parameters," Am. J. Phys. 75, 163-168 (2007).
[6] Siegman, A. E. (1986). Lasers. Taiwan: University Science Books.
[7] Vallone, Giuseppe. (2015). On the properties of circular beams: normalization, Laguerre–Gauss expansion, and free-space divergence. Optics Letters. 40. 10.1364/OL.40.001717.
[8] Capps DM. Derivation and application of a Green function propagator suitable for nonparaxial propagation over a two-dimensional domain. J Opt Soc Am A Opt Image Sci Vis. 2019 Apr 1;36(4):563-577. doi: 10.1364/JOSAA.36.000563. PMID: 31044976.
This project is still in development. New features will be added in upcoming versions.