The invention discloses a method for optically realizing a
restricted Boltzmann machine. According to the invention, analog calculation of the
restricted Boltzmann machine and optical
Gibbs sampling can be realized, and the
system has the advantages of wide application range, fast
information transmission, simple structure, low cost, fast calculation and the like. According to the invention, a coherent wide-
spectrum light source is used as
signal input, a
light field is subjected to light splitting by using a light splitting device such as a
grating and then enters a modulator, then
spinning, interaction and
magnetic field parameters are coded on light
wavefront at different positions through a time or space light modulator, and optical
Fourier transform is carried out by using a time or space lens
system, so that the
optical field is obtained. The
light intensity after
Fourier transform is measured through the
detector, and finally the difference between the
light intensity measured twice is calculated, so that optical
Gibbs sampling is realized, the calculation complexity is reduced, and the calculation efficiency is improved. The method provided by the invention has important application prospects in the fields of optical neural networks and the like, can realize applications of
content generation, classification and identification and the like, and is convenient to integrate in optical chips and the like.