Optical implementation of the Hopfield model | Synapse