All-optical machine learning using diffractive deep neural networks (2018)
science.sciencemag.org
science.sciencemag.org
There do exist non-linear optical components, so I assume that could be used for a piece of followup work...
As far as I can tell, your understanding that this is just a linear function is precisely correct - which means it can't do anything that a simple linear classifier can't.
[1] I suspect that the reason this has multiple layers is because of the physical constraints of the system that prevent a single layer from being an arbitrary linear function of the inputs. The light from a specific pixel can only get effectively diffracted so far, so they need to cascade multiple layers to make sure that all the inputs can contribute to all the outputs. It still ends up being equivalent to a single linear transformation.
This is only for inferencing. It can't learn.