Optical neural networks, which use photons instead of electrons, have advantages over traditional systems. They also face major obstacles.