Fourier Transform, Optical Computing, Free Space Optics.
the last dimension. In this script, nx and ny give the shape of the input for the device (for instance, in the above example, they would both be equal to 2), device_FT is the 2D Fourier transform done by the optical device (if you want to try this script, you may use np.fft.fft2, as shown in the