Wavelength-division multiplexing optical Ising simulator enabling fully programmable spin couplings and external magnetic fields
Abstract
Recently, spatial photonic Ising machines (SPIMs) have demonstrated the abilities to compute the Ising Hamiltonian of large-scale spin systems, with the advantages of ultrafast speed and high power efficiency. However, such optical computations have been limited to specific Ising models with fully connected couplings. Here we develop a wavelength-division multiplexing SPIM to enable programmable spin couplings and external magnetic fields as well for general Ising models. We experimentally demonstrate such a wavelength-division multiplexing SPIM with a single spatial light modulator, where the gauge transformation is implemented to eliminate the impact of pixel alignment. To show the programmable capability of general spin coupling interactions, we explore three spin systems: models, Sherrington-Kirkpatrick models, and only locally connected models and observe the phase transitions among the spin-glass, the ferromagnetic, the paramagnetic and the stripe-antiferromagnetic phases. These results show that the wavelength-division multiplexing approach has great programmable flexibility of spin couplings and external magnetic fields, which provides the opportunities to solve general combinatorial optimization problems with large-scale and on-demand SPIM.
Ising model is an archetypal model widely used for investigations of complex dynamics in physics, computer science, biology, and even social systems. Owing to Moore’s law for conventional computers, there has been tremendous interest and a boost in the development of unconventional computing architectures for simulating Ising Hamiltonians, for example, based on optical parametric oscillators [1, 2, 3, 4, 5], lasers [6, 7, 8, 9, 10], polariton [11, 12, 13], trapped ions [14], atomic and photonic condensates [15, 16], electronic memorisers [17], superconducting qubits [18, 19, 20], and nanophotonics circuits [21, 22, 23, 24, 25, 22]. Despite different approaches and technologies, it is worth noting that the error probability and time-to-solution metrics of these Ising machines have similar scaling trend as a function of the number of spins [26]. Practically, the difficulty to implement the spin coupling interactions with the proposed hardware has become the main factor limiting scalability and performance for unconventional Ising simulators [27, 28]. Also complete characterization of possible stable phases is necessary for estimating the Ising description and plays a key role to understand the working principle in spin systems [29, 30, 31, 32, 33].
In this regard, by encoding spins on the phase terms of a monochromatic field with spatial light modulators (SLMs), spatial photonic Ising machines (SPIMs) benefit with reliable large-scale Ising spin systems, even up to thousands of spins by exploring the spatial degrees of freedom [34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44]. Like other optical analog computations [45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55], the calculation of spin system energy is just by instantaneously measuring the light intensity, therefore with ultrafast speed and high power efficiency [38]. Moreover, to eliminate the impact of pixel alignment, the gauge transformation is proposed to simultaneously encode spin configurations and interaction strengths with a single spatial phase modulator [40]. However, the original proposed SPIM [38] is only applicable to Mattis-type coupling interactions [56]. Even with scattering medium, tunable SPIM was demonstrated based on multiple light scattering, while the Ising spin system is still limited to specific fully connected couplings [43]. Therefore, how to realize completely programmable spin couplings is a primary target to develop SPIMs for general Ising models.
Here we report a wavelength-division multiplexing SPIM to enable fully programmable spin couplings and external magnetic fields as well. Beyond Mattis-type interaction, we propose a gauge transformation for general Ising models with arbitrary spin interactions. More importantly, with wavelength-division multiplexing, we optically compute the general spin Hamiltonian with the advantages of large scale and ultrafast speed. We experimentally demonstrate such a wavelength-division multiplexing SPIM with a single SLM, where the gauge transformation is implemented to eliminate the impact of pixel alignment. To show the programmable capability of general spin coupling interactions, we explore three kinds of Ising models: fully connected model, Sherrington-Kirkpatrick (SK) model, and only locally connected model. For and SK models, we investigate the process of phase transition with different spin interactions and experimentally observe the spin-glass (SG), ferromagnetic (FM), and paramagnetic (PM) phases by simulating the equilibrium systems at different temperatures. We verify that the critical temperatures evaluated by the wavelength-division multiplexing SPIM are consistent with the predictions of the mean-field theory. We also demonstrate the phase transition from PM to stripe-antiferromagnetic phase in the model with competing interactions and experimentally observe the presence of SG phase by increasing the stochasticity of the next-nearest-neighbor interactions. These results show the great programmable flexibility of spin couplings and external magnetic fields by the wavelength-division multiplexing SPIM, which provides important potential applications in solving combinatorial optimization problems.
The wavelength-division multiplexing SPIM, designed for full programmability of spin interactions and magnetic fields, is shown in Fig. 1(a). The illumination components consist of a collimated super-continuum laser, a diffraction grating, and a cylindrical lens. The diffraction grating and cylindrical lens diffract light with different wavelengths onto a SLM along the -axis, while the -axis pixels are illuminated coherently by the same wavelength. By adjusting the diffraction angle, the operation wavelengths are selected within the quasi-stationary region of super-continuum light [57]. The optical field modulated by the SLM is then transformed by a Fourier lens, resulting in an incoherent intensity summation of different wavelengths and coherent interference for each wavelength at the back focus plane.
Next we show that the wavelength-division multiplexing SPIM can optically compute the Hamiltonian of any Ising model by detecting the intensity at the center position of the back focus plane. The Ising model is given by , where and are the interaction strength and the external magnetic field strength for spins, respectively, and can take binary values or . By adding an auxiliary spin with , we use a Cholesky-like decomposition to transform the Hamiltonian into multiple Mattis models , so that . The interaction strength for the -th Mattis model is given by , where , and are constants with the unit of energy. The transformation is summarized in Sec. I of the Supplemental Material (SM), and we note that despite the transformation, the degrees of freedom of remain equal to , which is the summation of those of and for arbitrary interactions and magnetic fields.
Inspired by the encoding scheme for Mattis model [40, 41], here we propose a general one for arbitrary Ising models by a gauge transformation. This transformation allows to encode the spin configurations and program the interaction strengths on a single phase-only SLM, as shown in Fig. 1(b). The transformation rotates each original spin about the -axis by an angle to arrive at a new spin vector, which is then projected onto the -axis to obtain the effective spin . By the gauge transformation given as
(1) |
the transformed Hamiltonian remains invariant, , where the interactions of the transformed spins are uniform with a strength of in both short and long ranges.
We encode the gauge-transformed spin configurations on a single phase-only SLM with wavelength-division multiplexing. For the -th Mattis model, we assume a uniform spectrum intensity light illuminating on SLM and apply a phase modulation on the -directional pixels for each spin as
(2) |
We note that for each Mattis model, the phase modulation should account for the calibration of different wavelengths when encoding in the direction on the SLM. The normalized intensity at the center position of the back focus plane is the summation of the incoherent field intensities for light with different wavelengths, . The Ising Hamiltonian for the general spin interactions is thus optically computed as . The details of the gauge transformation and the encoding for general illumination cases are described in SM Sec. II.
To evaluate the performance of the wavelength-division multiplexing SPIM, we conduct an experiment (detailed experiment setup can be found in SM Sec.III) and simulate three well-studied spin systems: the model [Fig. 2(a)], the SK model [Fig. 2(d)] and the SK model under external magnetic field [Fig. 2(g)]. The interactions between spins in the model are either with a probability of or with a probability of . The probability distribution is given as , where is a Kronecker delta function equal to 1 for and 0 for other cases. In the SK model, the probability distribution of is Gaussian, with the distribution given as , where and are two constant parameters, such that the energy can be extensive and proportional to [32].
We use the wavelength-division multiplexing SPIM to examine the phase transition with 80 spins. For each model, a quenched realization is generated for the interactions randomly assigned based on their respective probability distributions. By varying the temperature and utilizing the Markov chain Monte Carlo algorithm, we generate 100 replicas from the final configuration, where each replica is obtained by randomly initializing spin configurations and through 800 iterations of the optical Metropolis Hasting sampling procedure [40, 58, 39]. The spin overlap is then calculated as , which measures the similarity between replicas and . The phase transition is characterized by the probability density function of the overlap.
Figures 2(b) and (c) present the experimental results for the model with the parameters and , respectively. At high temperatures, both of the two parameters and result in randomly arranged spins and little correlation between replicas, indicating the PM phase, where has a peak at around zero. At low temperatures, however, displays the distinct density distributions for the two values of . For , since the interactions are mostly positive, the spins attract each other and the replicas remain in only two ground states of the FM phase. Consequently, at low temperature has two peaks around and as shown in Fig. 2(b). On the other hand, for , the interactions are composed of both positive and negative values, causing frustration during the energy minimization process at low temperatures. This frustration results in a multi-valley energy landscape and takes on a wide range of values at low temperature, as depicted in Fig. 2(c). This feature of widely distributed is the hallmark of the SG phase. These results demonstrate that the SG phase transition indeed emerges in the systems simulated by the wavelength-division multiplexing SPIM.
To further study the phase transition with the wavelength-division multiplexing SPIM, we examine the SK model without magnetic fields and compare the estimated critical temperature with the mean-field theory. Fig. 2(e) and (f) show the results for and , respectively, with . At high temperatures, both figures show the PM phase with dominated around zero, due to the randomly arranged spin configurations. However, as shown in Figs. 2(e) and (f), at low temperatures exhibit the FM and SG phases for the different values of and occur around and , respectively. The experiment results are consistent with the mean-field theory [32] with the critical temperatures for the PM-FM transition and for the PM-SG transition.
Additionally, we also investigate the stability of the complex multi-valley energy landscape of the SG phase in the presence of a uniform external magnetic field in the SK model [Fig. 2(g)]. As shown in Fig. 2(h), for the SK model with and , a weak magnetic field with aligns spins with the field direction even at high temperature, causing most values to cluster around positive values. Upon decreasing the temperature, the probability distribution of resembles that of the SG phase covering a wide range, indicating that weak magnetic fields are not strong enough to completely alter the multi-valley energy landscape. However, when subjected to a stronger magnetic field with [Fig. 2(i)], at low temperatures are more clustered, which suggests that the magnetic field flattens out some valleys in the energy landscape.
The wavelength-division multiplexing SPIM can be utilized to study Ising systems beyond the full-coupling models. To demonstrate its full programmability of spin couplings, we examine a locally connected model [Fig.3(a)]. The Hamiltonian only includes nearest-neighbor ferromagnetic and next-nearest-neighbor antiferromagnetic interactions on a square lattice with cyclic boundary conditions: , where and denote the nearest and next-nearest neighbors, respectively. The nearest-neighbor ferromagnetic interactions align adjacent spins with (represented by solid lines in Fig.3(a)), while the next-nearest-neighbor antiferromagnetic interactions drive two adjacent rows and columns to have opposite orientations with (represented by double parallel lines). When the antiferromagnetic interaction is strong enough to overcome the ferromagnetic interaction , a striped phase is produced, characterized by a two-component order parameter , where , and , and are the coordinates of spin . The ground states of the model are ordered when , and can be represented by the order parameters of and , corresponding to two longitudinal and transverse striped states with opposite spin directions, respectively [59].
Using the wavelength-division multiplexing SPIM, we simulate the transition between the striped states and the PM phases. Fig. 3(b) shows the simulation results for the parameters and on an lattice. Above the critical temperature of , the order parameters are both close to zero due to the thermal fluctuations destroying the long-range correlation between spins as a sample of spin configurations shown in Fig. 3(c). However, below , the order parameters split into four clusters located in different quadrants, corresponding to the four striped states [Fig. 3(b)]. Figs. 3(d-g) show four samples of the spin configurations, which exhibit a long stripe spatial distribution. These results for the model demonstrate the programmability of spin couplings.
The model plays a crucial role in comprehending the low-temperature phase of short-range spin glass. With the help of the wavelength-division multiplexing SPIM, we consider the next-nearest-neighbor interactions are Gaussian as with a mean value of and a standard deviation , while maintaining a fixed value of nearest-neighbor interactions . For small variances of [Fig. 4(a)], the density distribution of exhibits a single peak at high temperatures, signifying the PM phase. However, as the temperature decreases, transforms into three clusters of peaks, indicative of the ordered striped ground states. The peak around is twice as high as those around . In contrast, by increasing the standard deviation to , the increased disorder in the next-nearest-neighbor interactions results in a SG phase at low temperatures. The SG phase is characterized by many pairs of ground states and results in multiple sharp peaks of as Fig.4(b).
We also experimentally measure the susceptibility [60] to investigate the transition temperature in the model, where represents the time ensemble average of . At high temperatures, thermodynamic fluctuations cause the spin orientation to constantly change, resulting in being close to zero, as shown in Fig. 4(c). The susceptibility in both two cases decreases with increasing temperature and scales with . The results also indicate that the critical temperatures are different, with and for and , respectively. In the case of , the interactions of the next-nearest-neighbors are relatively small and close to . As the temperature decreases below , the system reaches the striped ground states with approaching , causing the average susceptibility to converge to zero. In contrast, for , at low temperatures, the local spin orientation still varies slowly due to the presence of numerous ground states in the SG phase, resulting in being close to a non-zero constant. These experimental results clearly demonstrate the spin-glass phase transition in the model with short-range interactions.
In summary, we propose the wavelength-division multiplexing SPIM to realize fully programmable spin couplings and external magnetic fields. With the full-coupling models, SK models and the only locally connected models, we demonstrate the great programmable flexibility of spin couplings and external magnetic fields with the wavelength-division multiplexing SPIM. By simulating the equilibrium systems at different temperatures, we experimentally observe the phase transitions among the spin-glass, the ferromagnetic, the paramagnetic and the stripe-antiferromagnetic phases with the wavelength-division multiplexing SPIM. The exhibited rich phase diagrams are beneficial to searching for the true ground state of the Ising model, and thus the wavelength-division multiplexing approach provides important potential applications in solving combinatorial optimization problems.
The authors acknowledge funding through the National Key Research and Development Program of China (2022YFA1405200) and the National Natural Science Foundation of China (12174340).
References
- McMahon et al. [2016] P. L. McMahon, A. Marandi, Y. Haribara, R. Hamerly, C. Langrock, S. Tamate, T. Inagaki, H. Takesue, S. Utsunomiya, K. Aihara, et al., A fully programmable 100-spin coherent Ising machine with all-to-all connections, Science 354, 614 (2016).
- Inagaki et al. [2016a] T. Inagaki, Y. Haribara, K. Igarashi, T. Sonobe, S. Tamate, T. Honjo, A. Marandi, P. L. McMahon, T. Umeki, K. Enbutsu, et al., A coherent Ising machine for 2000-node optimization problems, Science 354, 603 (2016a).
- Inagaki et al. [2016b] T. Inagaki, K. Inaba, R. Hamerly, K. Inoue, Y. Yamamoto, and H. Takesue, Large-scale Ising spin network based on degenerate optical parametric oscillators, Nature Photonics 10, 415 (2016b).
- Böhm et al. [2019] F. Böhm, G. Verschaffelt, and G. Van der Sande, A poor man’s coherent Ising machine based on opto-electronic feedback systems for solving optimization problems, Nature Communications 10, 1 (2019).
- Marandi et al. [2014] A. Marandi, Z. Wang, K. Takata, R. L. Byer, and Y. Yamamoto, Network of time-multiplexed optical parametric oscillators as a coherent Ising machine, Nature Photonics 8, 937 (2014).
- Utsunomiya et al. [2011] S. Utsunomiya, K. Takata, and Y. Yamamoto, Mapping of Ising models onto injection-locked laser systems, Optics Express 19, 18091 (2011).
- Babaeian et al. [2019] M. Babaeian, D. T. Nguyen, V. Demir, M. Akbulut, P.-A. Blanche, Y. Kaneda, S. Guha, M. A. Neifeld, and N. Peyghambarian, A single shot coherent Ising machine based on a network of injection-locked multicore fiber lasers, Nature Communications 10, 1 (2019).
- Tradonsky et al. [2019] C. Tradonsky, I. Gershenzon, V. Pal, R. Chriki, A. A. Friesem, O. Raz, and N. Davidson, Rapid laser solver for the phase retrieval problem, Science Advances 5, eaax4530 (2019).
- Parto et al. [2020] M. Parto, W. Hayenga, A. Marandi, D. N. Christodoulides, and M. Khajavikhan, Realizing spin Hamiltonians in nanoscale active photonic lattices, Nature Materials 19, 725 (2020).
- Honari-Latifpour and Miri [2020] M. Honari-Latifpour and M.-A. Miri, Mapping the XY Hamiltonian onto a network of coupled lasers, Physical Review Research 2, 043335 (2020).
- Kalinin et al. [2020] K. P. Kalinin, A. Amo, J. Bloch, and N. G. Berloff, Polaritonic XY-Ising machine, Nanophotonics 9, 4127 (2020).
- Berloff et al. [2017] N. G. Berloff, M. Silva, K. Kalinin, A. Askitopoulos, J. D. Töpfer, P. Cilibrizzi, W. Langbein, and P. G. Lagoudakis, Realizing the classical XY Hamiltonian in polariton simulators, Nature Materials 16, 1120 (2017).
- Kalinin and Berloff [2018] K. P. Kalinin and N. G. Berloff, Simulating Ising and n-state planar potts models and external fields with nonequilibrium condensates, Physical Review Letters 121, 235302 (2018).
- Kim et al. [2010] K. Kim, M.-S. Chang, S. Korenblit, R. Islam, E. E. Edwards, J. K. Freericks, G.-D. Lin, L.-M. Duan, and C. Monroe, Quantum simulation of frustrated Ising spins with trapped ions, Nature 465, 590 (2010).
- Struck et al. [2013] J. Struck, M. Weinberg, C. Ölschläger, P. Windpassinger, J. Simonet, K. Sengstock, R. Höppner, P. Hauke, A. Eckardt, M. Lewenstein, et al., Engineering Ising-XY spin-models in a triangular lattice using tunable artificial gauge fields, Nature Physics 9, 738 (2013).
- Kassenberg et al. [2020] B. Kassenberg, M. Vretenar, S. Bissesar, and J. Klaers, Controllable Josephson junction for photon Bose–Einstein condensates, arXiv preprint arXiv:2001.09828 (2020).
- Cai et al. [2020] F. Cai, S. Kumar, T. Van Vaerenbergh, X. Sheng, R. Liu, C. Li, Z. Liu, M. Foltin, S. Yu, Q. Xia, J. J. Yang, R. Beausoleil, W. D. Lu, and J. P. Strachan, Power-efficient combinatorial optimization using intrinsic noise in memristor hopfield neural networks, Nature Electronics 3, 409 (2020).
- Johnson et al. [2011] M. W. Johnson, M. H. S. Amin, S. Gildert, T. Lanting, F. Hamze, N. Dickson, R. Harris, A. J. Berkley, J. Johansson, P. Bunyk, et al., Quantum annealing with manufactured spins, Nature 473, 194 (2011).
- Boixo et al. [2014] S. Boixo, T. F. Rønnow, S. V. Isakov, Z. Wang, D. Wecker, D. A. Lidar, J. M. Martinis, and M. Troyer, Evidence for quantum annealing with more than one hundred qubits, Nature Physics 10, 218 (2014).
- King et al. [2018] A. D. King, J. Carrasquilla, J. Raymond, I. Ozfidan, E. Andriyash, A. Berkley, M. Reis, T. Lanting, R. Harris, F. Altomare, et al., Observation of topological phenomena in a programmable lattice of 1,800 qubits, Nature 560, 456 (2018).
- Roques-Carmes et al. [2020] C. Roques-Carmes, Y. Shen, C. Zanoci, M. Prabhu, F. Atieh, L. Jing, T. Dubček, C. Mao, M. R. Johnson, V. Čeperić, et al., Heuristic recurrent algorithms for photonic Ising machines, Nature Communications 11 (2020).
- Prabhu et al. [2020] M. Prabhu, C. Roques-Carmes, Y. Shen, N. Harris, L. Jing, J. Carolan, R. Hamerly, T. Baehr-Jones, M. Hochberg, V. Čeperić, et al., Accelerating recurrent Ising machines in photonic integrated circuits, Optica 7, 551 (2020).
- Shen et al. [2017] Y. Shen, N. C. Harris, S. Skirlo, M. Prabhu, T. Baehr-Jones, M. Hochberg, X. Sun, S. Zhao, H. Larochelle, D. Englund, et al., Deep learning with coherent nanophotonic circuits, Nature Photonics 11, 441 (2017).
- Wu et al. [2014] K. Wu, J. G. De Abajo, C. Soci, P. P. Shum, and N. I. Zheludev, An optical fiber network oracle for NP-complete problems, Light: Science & Applications 3, e147 (2014).
- Okawachi et al. [2020] Y. Okawachi, M. Yu, J. K. Jang, X. Ji, Y. Zhao, B. Y. Kim, M. Lipson, and A. L. Gaeta, Demonstration of chip-based coupled degenerate optical parametric oscillators for realizing a nanophotonic spin-glass, Nature Communications 11, 1 (2020).
- Mohseni et al. [2022] N. Mohseni, P. L. McMahon, and T. Byrnes, Ising machines as hardware solvers of combinatorial optimization problems, Nature Reviews Physics 4, 363 (2022).
- Heim et al. [2015] B. Heim, T. F. Rønnow, S. V. Isakov, and M. Troyer, Quantum versus classical annealing of ising spin glasses, Science 348, 215 (2015).
- Hamerly et al. [2019] R. Hamerly, T. Inagaki, P. L. McMahon, D. Venturelli, A. Marandi, T. Onodera, E. Ng, C. Langrock, K. Inaba, T. Honjo, et al., Experimental investigation of performance differences between coherent Ising machines and a quantum annealer, Science Advances 5, eaau0823 (2019).
- Mertens [1998] S. Mertens, Phase transition in the number partitioning problem, Physical Review Letters 81, 4281 (1998).
- Wang et al. [2013] Z. Wang, A. Marandi, K. Wen, R. L. Byer, and Y. Yamamoto, Coherent Ising machine based on degenerate optical parametric oscillators, Physical Review A 88, 063853 (2013).
- Calvanese Strinati et al. [2019] M. Calvanese Strinati, L. Bello, A. Pe’er, and E. G. Dalla Torre, Theory of coupled parametric oscillators beyond coupled Ising spins, Physical Review A 100, 023835 (2019).
- Nishimori [2001] H. Nishimori, Statistical physics of spin glasses and information processing: an introduction, 111 (Clarendon Press, 2001).
- Inaba et al. [2023] K. Inaba, Y. Yamada, and H. Takesue, Thermodynamic quantities of two-dimensional ising models obtained by noisy mean field annealing and coherent ising machine, arXiv preprint arXiv:2302.01454 (2023).
- Kumar et al. [2020] S. Kumar, H. Zhang, and Y.-P. Huang, Large-scale Ising emulation with four body interaction and all-to-all connections, Communications Physics 3, 1 (2020).
- Pierangeli et al. [2021] D. Pierangeli, M. Rafayelyan, C. Conti, and S. Gigan, Scalable spin-glass optical simulator, Physical Review Applied 15, 034087 (2021).
- Pierangeli et al. [2020a] D. Pierangeli, G. Marcucci, and C. Conti, Adiabatic evolution on a spatial-photonic Ising machine, Optica 7, 1535 (2020a).
- Pierangeli et al. [2020b] D. Pierangeli, G. Marcucci, D. Brunner, and C. Conti, Noise-enhanced spatial-photonic Ising machine, Nanophotonics 9, 4109 (2020b).
- Pierangeli et al. [2019] D. Pierangeli, G. Marcucci, and C. Conti, Large-scale photonic Ising machine by spatial light modulation, Physical Review Letters 122, 213902 (2019).
- Leonetti et al. [2021] M. Leonetti, E. Hörmann, L. Leuzzi, G. Parisi, and G. Ruocco, Optical computation of a spin glass dynamics with tunable complexity, Proceedings of the National Academy of Sciences 118, e2015207118 (2021).
- Fang et al. [2021] Y. Fang, J. Huang, and Z. Ruan, Experimental observation of phase transitions in spatial photonic ising machine, Physical Review Letters 127, 043902 (2021).
- Huang et al. [2021] J. Huang, Y. Fang, and Z. Ruan, Antiferromagnetic spatial photonic ising machine through optoelectronic correlation computing, Communications Physics 4, 1 (2021).
- Sun et al. [2022] W. Sun, W. Zhang, Y. Liu, Q. Liu, and Z. He, Quadrature photonic spatial ising machine, Optics Letters 47, 1498 (2022).
- Jacucci et al. [2022] G. Jacucci, L. Delloye, D. Pierangeli, M. Rafayelyan, C. Conti, and S. Gigan, Tunable spin-glass optical simulator based on multiple light scattering, Physical Review A 105, 033502 (2022).
- Kumar et al. [2023] S. Kumar, Z. Li, T. Bu, C. Qu, and Y. Huang, Observation of distinct phase transitions in a nonlinear optical ising machine, Communications Physics 6, 31 (2023).
- Silva et al. [2014] A. Silva, F. Monticone, G. Castaldi, V. Galdi, A. Alù, and N. Engheta, Performing mathematical operations with metamaterials, Science 343, 160 (2014).
- Bykov et al. [2014] D. A. Bykov, L. L. Doskolovich, E. A. Bezus, and V. A. Soifer, Optical computation of the laplace operator using phase-shifted bragg grating, Optics Express 22, 25084 (2014).
- Ruan [2015] Z. Ruan, Spatial mode control of surface plasmon polariton excitation with gain medium: from spatial differentiator to integrator, Optics Letters 40, 601 (2015).
- Youssefi et al. [2016] A. Youssefi, F. Zangeneh-Nejad, S. Abdollahramezani, and A. Khavasi, Analog computing by brewster effect, Optics Letters 41, 3467 (2016).
- Zhu et al. [2017] T. Zhu, Y. Zhou, Y. Lou, H. Ye, M. Qiu, Z. Ruan, and S. Fan, Plasmonic computing of spatial differentiation, Nature Communications 8, 1 (2017).
- Zhang et al. [2018] W. Zhang, K. Cheng, C. Wu, Y. Wang, H. Li, and X. Zhang, Implementing quantum search algorithm with metamaterials, Advanced Materials 30, 1703986 (2018).
- Guo et al. [2018] C. Guo, M. Xiao, M. Minkov, Y. Shi, and S. Fan, Photonic crystal slab laplace operator for image differentiation, Optica 5, 251 (2018).
- Zhu et al. [2019] T. Zhu, Y. Lou, Y. Zhou, J. Zhang, J. Huang, Y. Li, H. Luo, S. Wen, S. Zhu, Q. Gong, et al., Generalized spatial differentiation from the spin hall effect of light and its application in image processing of edge detection, Physical Review Applied 11, 034043 (2019).
- Zangeneh-Nejad et al. [2020] F. Zangeneh-Nejad, D. L. Sounas, A. Alù, and R. Fleury, Analogue computing with metamaterials, Nature Reviews Materials 6, 207 (2020).
- Zhu et al. [2020] T. Zhu, J. Huang, and Z. Ruan, Optical phase mining by adjustable spatial differentiator, Advanced Photonics 2, 016001 (2020).
- Zhu et al. [2021] T. Zhu, C. Guo, J. Huang, H. Wang, M. Orenstein, Z. Ruan, and S. Fan, Topological optical differentiator, Nature Communications 12, 680 (2021).
- Mattis [1976] D. Mattis, Solvable spin systems with random interactions, Physics Letters A 56, 421 (1976).
- Genty et al. [2010] G. Genty, M. Surakka, J. Turunen, and A. T. Friberg, Second-order coherence of supercontinuum light, Optics letters 35, 3057 (2010).
- Metropolis et al. [1953] N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, and E. Teller, Equation of state calculations by fast computing machines, The journal of chemical physics 21, 1087 (1953).
- Jin et al. [2013] S. Jin, A. Sen, W. Guo, and A. W. Sandvik, Phase transitions in the frustrated ising model on the square lattice, Physical Review B 87, 144406 (2013).
- Fischer and Hertz [1993] K. H. Fischer and J. A. Hertz, Spin glasses, 1 (Cambridge university press, 1993).
Supplementary Material: Wavelength-division multiplexing optical Ising simulator enabling fully programmable spin couplings and external magnetic fields
Li Luo, Zhiyi Mi, Junyi Huang, and Zhichao Ruan
Interdisciplinary Center of Quantum Information,
State Key Laboratory of Modern Optical Instrumentation,
and Zhejiang Province Key Laboratory of Quantum Technology and Device,
Department of Physics, Zhejiang University, Hangzhou 310027, China
I Decomposition of general Ising Hamiltonian into multiple Mattis-type models
We first consider the Hamiltonian of Ising model without external magnetic field as , and is the number of spins. To facilitate decomposition of the interaction matrix , we introduce auxiliary positive diagonal elements , and propose a Cholesky-like algorithm (Algorithm 1). This algorithm expresses as
(S1) |
where , , , , . We note that the auxiliary diagonal elements correspond to the self-interaction of spins, and only shift the energy value, without affecting the spin configurations of the ground state.
We now consider the Ising model with an external magnetic field, given by the Hamiltonian . To develop a Cholesky-like algorithm for this model, we add auxiliary elements to each vector , , , , . The values of are derived using Algorithm 2.
We further normalize each vector by dividing it by , where , so that . Next, we introduce an auxiliary spin and rewrite the Hamiltonian as:
(S2) |
where .
II Gauge transformation and Optical computation of general Ising Hamiltonian
We first assume that the amplitude of the illumination light on SLM for each wavelength is uniform and equal to . For the -th Mattis-type model, with the gauge transformation proposed in the main text, we encode each spin by pixels as Fig. S1 and the phase modulation on SLM as defined in Eq.(2) in the main text. Therefore, the electric fields after the SLM modulation are given by
(S3) |
where and are written as
(S4) |
Here denotes the spatial coordinate on the SLM plane, and represents the position of the -th spin in direction on SLM. The rectangular function is defined as
(S5) |
where represents the pixel width of the SLM. and are two checkerboard functions, as shown in Fig. S1, such that , and are defined as
(S6) |
where denotes the convolution operation.
After passing through the Fourier lens, the optical fields at the CCD for each wavelength are evaluated using a two-dimensional Fourier transform. The resulting electric fields in the spatial spectra are given by:
(S7) |
where
(S8) |
(S9) |
(S10) |
(S11) |
(S12) |
(S13) |
(S14) |
Here, the convolution terms indicate that due to the checkerboard modulation, the beams are diffracted at multiple orders around in the angular spectral space, where and are two integers. Assuming negligible field overlap between different orders, the zeroth order diffraction field for and can be expressed as
(S15) |
where .
For the angle spectrum , the spatial coordinate on the detection plane are , . Thus, the intensity contributed by the -th wavelength light is given by
(S16) | ||||
In particular, the intensity at and is
(S17) |
Due to the incoherent nature between different wavelengths, the total intensity detected at the zeroth order is
(S18) | ||||
For a special case of and for all spins, the phase modulations are given by (see Eq. (2) in the main text). That is, when the phase modulation is set to for all pixels, the intensity on CCD is . Therefore by measuring the intensities and normalizing the intensity to , the Ising Hamiltonian for the general spin interaction is optically computed as
(S19) |
We note that when the amplitude for different wavelengths is not uniform, supposing that the amplitude for the -th wavelength is , the phase encoding in Eq. (2) can be modified as . Here is the minimum amplitude among all wavelengths. Under such circumstances, the above derivation is still available, but the normalized intensity changes to .
III Experimental setup and measurement of intensity
Figure S2 illustrates the experimental setup of the wavelength-division multiplexing optical Ising simulator. Here a super-continuum laser (Anyang SC-5) is used to generate a collimated Gaussian beam. The waist radius of the light beam is enlarged tenfold by the lens (focal length is 50mm) and (focal length is 500mm). The light then illuminates a reflective diffraction grating (inscribed line density of 600/mm), and the cylindrical lens (CL, the focal length is 100mm) focuses the light with different wavelengths onto the SLM (Holoeye PLUTO-NIR-011). With this configuration, the light with different wavelengths is diffracted along the direction of the SLM, while the -directional pixels are coherently illuminated by the collimated incident light with the same wavelength. An adjustable diaphragm is designed to change the wavelength range incident on the SLM. For the model and Sherrington-Kirkpatrick (SK) models (Figure 2 in the main text) 80 spins cover wavelengths from 588nm to 611nm, with each spin occupying nm in the direction. For the model (Figs. 3-4 in the main text), we carry out experiments with 64 spins and set and for the other 16 spins. According to Eq. (S17), results in no contribution of to . Polarizer P is used to make the incident beam linearly polarized along the long display axis of the SLM.
Lens (200mm focal length) performs a Fourier transformation of the optical field from the SLM. A CCD (Ophir SP620) is placed at the back focus plane to detect optical field intensity. Due to the finite size of SLM pixel and the resolution of CCD, we integrate the intensity within a region around the center point instead of measuring the intensity at a single point. The effective squared detection area is defined as . We find that the results are convergent and stable when m, which corresponds to a detection area covering pixels.