ToolPythonIntermediate Gerchberg-Saxton algorithm in NumPy: a phase-only hologram for 25 spots return np.fft.fftshift(np.fft.fft2(np.fft.ifftshift(E), norm="ortho"))
ToolPythonIntermediate The angular spectrum method with numpy.fft: a laser beam and a slit return np.fft.ifft2(np.fft.fft2(E) * np.exp(1j * kz * z))E_paraxial = np.fft.ifft2(np.fft.fft2(E0) * np.exp(1j * kz_paraxial * 10.0))