Vectorial Huygens PSF - 3D
This example demonstrates how to use the VectorialHuygensPSF through the HuygensPSF factory to calculate the 3D PSF (through-focus) of an optical system.
Note: Vectorial PSF calculations are automatically performed when polarization is enabled in the optical system. This accounts for the full vectorial nature of the electric field at the exit pupil.
[1]:
from optiland.psf import HuygensPSF
from optiland.samples.objectives import TessarLens
from optiland.rays import create_polarization
[2]:
lens = TessarLens()
pol_state_H = create_polarization("H")
lens.updater.set_polarization(pol_state_H) # Enable polarization to trigger vectorial PSF
_ = lens.draw()
[3]:
psf = HuygensPSF(lens, field=(0, 1), wavelength=0.55)
_ = psf.view()