Hao Sun
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Hao Sun has a total of 97 co-authors. Here are the top co-authors by number of shared publications:
- Cun-Zheng Ning
Department of Electronic Engineering, Tsinghua University, 100084 Beijing, China
9 shared publications - Yongzhuo Li
Department of Electronic Engineering, Tsinghua University, Beijing, China
7 shared publications - Xue Feng
Department of Electronic Engineering, Tsinghua University, Beijing, China
6 shared publications - Fang Liu
Department of Electronic Engineering, Tsinghua University, Beijing, China
5 shared publications - Kaiyu Cui
Department of Electronic Engineering, Tsinghua University, Beijing, China
5 shared publications - Wei Zhang
Tsinghua University
5 shared publications
Latest Publications
- 15 September 2026
- Published by Wiley in Advanced Functional Materials
- Vol. 36 (86)
NaYF 4 : Er 3+ Nanoparticles‐Graphene Photodetector for High‐Responsivity 1.5 µm Narrowband Imaging and Multi‐Wavelength Sensing
Silicon‐based photodetection in the 1.5 µm spectral window is important for next‐generation photonic systems, enabling critical applications in optical communication, LiDAR, and atmospheric gas sensing. Although erbium‐based upconversion photodetectors (UPDs) offer advantages in cost‐effective fabrication and stable spectral selectivity, their deployment is fundamentally limited by compromised responsivity, slow response times, and complex multilayer architectures that hinder scalability. Here, we report a UPD that synergistically integrates high‐efficiency Er‐based nanoparticles (ENPs) with an engineered graphene photogating architecture. Fabricated on SiO 2 /p+‐Si substrates, the optimized device achieves unparalleled performance metrics: a record‐high responsivity of 59.5 A/W at 1 V bias, millisecond‐scale response dynamics, and narrowband 1.5 µm detection. This exceptional performance originates from two synergistic mechanisms: the ENPs' high upconversion quantum yield (2.1%) and a substantial photoconductive gain (∼10 7 ) from the graphene photogating, increasing responsivity by a factor of 5 over conventional designs. Additionally, leveraging the intrinsic narrowband response of ENPs, we demonstrate a dual‐channel wavelength‐selective structure capable of effectively discriminating signals within the 1.5 µm band from those below 1.1 µm. This permits simultaneous multi‐wavelength detection, as demonstrated via spatially‐resolved imaging at 633 and 1523 nm. Combined with its fabrication simplicity and scalability, this work represents a significant leap forward for high‐performance UPDs.
- 15 September 2026
- Published by Wiley in Advanced Functional Materials
- Vol. 36 (86)
NaYF 4 : Er 3+ Nanoparticles‐Graphene Photodetector for High‐Responsivity 1.5 µm Narrowband Imaging and Multi‐Wavelength Sensing
Silicon‐based photodetection in the 1.5 µm spectral window is important for next‐generation photonic systems, enabling critical applications in optical communication, LiDAR, and atmospheric gas sensing. Although erbium‐based upconversion photodetectors (UPDs) offer advantages in cost‐effective fabrication and stable spectral selectivity, their deployment is fundamentally limited by compromised responsivity, slow response times, and complex multilayer architectures that hinder scalability. Here, we report a UPD that synergistically integrates high‐efficiency Er‐based nanoparticles (ENPs) with an engineered graphene photogating architecture. Fabricated on SiO 2 /p+‐Si substrates, the optimized device achieves unparalleled performance metrics: a record‐high responsivity of 59.5 A/W at 1 V bias, millisecond‐scale response dynamics, and narrowband 1.5 µm detection. This exceptional performance originates from two synergistic mechanisms: the ENPs' high upconversion quantum yield (2.1%) and a substantial photoconductive gain (∼10 7 ) from the graphene photogating, increasing responsivity by a factor of 5 over conventional designs. Additionally, leveraging the intrinsic narrowband response of ENPs, we demonstrate a dual‐channel wavelength‐selective structure capable of effectively discriminating signals within the 1.5 µm band from those below 1.1 µm. This permits simultaneous multi‐wavelength detection, as demonstrated via spatially‐resolved imaging at 633 and 1523 nm. Combined with its fabrication simplicity and scalability, this work represents a significant leap forward for high‐performance UPDs.
- Open Access
- 12 September 2026
- Published by Wiley in Advanced Optical Materials
- Vol. 14 (36) , e71777
Directional and Collimated Photoluminescence From 2D Perovskite Microcrystals via Post‐Synthetic Metalens Integration
For emerging frontiers for compact and miniaturized light sources, achieving deterministic control over the spatial wavefront and angular distribution of the emitted photons is paramount. Perovskite microcrystals are promising light‐emitting materials, but their intrinsic photoluminescence is typically highly divergent, which hinders efficient light collection and directional control. Here, we demonstrate wavefront engineering of spontaneous emission from a single phenethylammonium lead iodide (PEPI) microcrystal by integrating it with a dielectric metalens. The metalens, specifically designed for the peak emission wavelength, was fabricated on a quartz substrate via two‐photon polymerization. Subsequently, an individual PEPI microcrystal was positioned on the opposing quartz surface via a dry‐transfer method. This heterostructure effectively reshapes the divergent emission into a highly directional, quasi‐collimated beam, reducing the beam‐expansion slope from 0.16 to 0.04, corresponding to an approximately fourfold suppression of divergence. Angle‐resolved photoluminescence measurements further confirm a significantly narrowed angular distribution of ∼5°following metalens modulation. These results provide a straightforward, non‐invasive strategy to tailor the intrinsic emission of individual perovskite microcrystals, establishing a versatile platform for hybrid perovskite–metasurface photonics with enhanced directional emission and collection efficiency.
- 12 September 2026
- Published by Wiley in Advanced Optical Materials
- Vol. 14 (36) , e71777
Open AccessDirectional and Collimated Photoluminescence From 2D Perovskite Microcrystals via Post‐Synthetic Metalens Integration
For emerging frontiers for compact and miniaturized light sources, achieving deterministic control over the spatial wavefront and angular distribution of the emitted photons is paramount. Perovskite microcrystals are promising light‐emitting materials, but their intrinsic photoluminescence is typically highly divergent, which hinders efficient light collection and directional control. Here, we demonstrate wavefront engineering of spontaneous emission from a single phenethylammonium lead iodide (PEPI) microcrystal by integrating it with a dielectric metalens. The metalens, specifically designed for the peak emission wavelength, was fabricated on a quartz substrate via two‐photon polymerization. Subsequently, an individual PEPI microcrystal was positioned on the opposing quartz surface via a dry‐transfer method. This heterostructure effectively reshapes the divergent emission into a highly directional, quasi‐collimated beam, reducing the beam‐expansion slope from 0.16 to 0.04, corresponding to an approximately fourfold suppression of divergence. Angle‐resolved photoluminescence measurements further confirm a significantly narrowed angular distribution of ∼5°following metalens modulation. These results provide a straightforward, non‐invasive strategy to tailor the intrinsic emission of individual perovskite microcrystals, establishing a versatile platform for hybrid perovskite–metasurface photonics with enhanced directional emission and collection efficiency.
- Open Access
- 28 January 2026
- Published by Springer Nature in Research Square
New record in optical gain and room-temperature nanolasers in multiple wavelengths in 2D ErOCl single crystals
Erbium-based materials have long been recognized for their important telecom-band applications, yet their widespread adoption in integrated optoelectronics has been hindered by two fundamental limitations: the difficulty in achieving high erbium density without concentration quenching which leads to small optical gain in doped materials, and the difficulty in fabricating a practical device with single crystal nanowires that demonstrated high optical gain previously 1,2 . Here, we overcome these limitations by synthesizing 2D single crystal ErOCl that has an Er density of 1.75×10 22 cm -3 . The high-quality single crystal material significantly reduces the density-related quenching effect that dominates in randomly doped materials with high Er concentration. This results in a record optical gain coefficient over 1500 dB/cm at ~ 1536 nm band, at least larger by an order of magnitude than the previous gain record in Er materials. Leveraging this exceptional gain medium, we demonstrate room-temperature continuous-wave lasing operation by integrating with a photonic crystal microcavity, achieving a record-low threshold of 7 µW with the most compact size of any Er-based lasers. Furthermore, the unique Stark splitting characteristics of ErOCl provide optical gain in three wavelength bands and lead to lasing in these wavelengths by engineering the cavity. This is the first time that optical gain has been shown in three different wavelength bands in Er materials, together with the smallest size of laser cavity, could have many important applications in on-chip sensing and optical communication.
- 28 January 2026
- Published by Springer Nature in Research Square
Open AccessNew record in optical gain and room-temperature nanolasers in multiple wavelengths in 2D ErOCl single crystals
Erbium-based materials have long been recognized for their important telecom-band applications, yet their widespread adoption in integrated optoelectronics has been hindered by two fundamental limitations: the difficulty in achieving high erbium density without concentration quenching which leads to small optical gain in doped materials, and the difficulty in fabricating a practical device with single crystal nanowires that demonstrated high optical gain previously 1,2 . Here, we overcome these limitations by synthesizing 2D single crystal ErOCl that has an Er density of 1.75×10 22 cm -3 . The high-quality single crystal material significantly reduces the density-related quenching effect that dominates in randomly doped materials with high Er concentration. This results in a record optical gain coefficient over 1500 dB/cm at ~ 1536 nm band, at least larger by an order of magnitude than the previous gain record in Er materials. Leveraging this exceptional gain medium, we demonstrate room-temperature continuous-wave lasing operation by integrating with a photonic crystal microcavity, achieving a record-low threshold of 7 µW with the most compact size of any Er-based lasers. Furthermore, the unique Stark splitting characteristics of ErOCl provide optical gain in three wavelength bands and lead to lasing in these wavelengths by engineering the cavity. This is the first time that optical gain has been shown in three different wavelength bands in Er materials, together with the smallest size of laser cavity, could have many important applications in on-chip sensing and optical communication.
- Open Access
- 1 January 2026
- Published by Springer Nature in Light: Science & Applications
- Vol. 15 (1) , 16
SUANPAN: scalable photonic linear vector machine
Photonics is promising to handle extensive vector multiplications in artificial intelligence (AI) techniques due to natural bosonic parallelism and high-speed information transmission. However, the dimensionality of current photonic linear operation is limited and tough to improve due to the complex beam interaction for implementing optical matrix operation and digital-analog conversions. Here, we propose a programmable and reconfigurable photonic linear vector machine with extreme scalability formed by a series of emitter-detector pairs as the independent basic computing units. The elemental values of two high-dimensional vectors are prepared on emitter-detector pairs by bit encoding and analog detecting method without requiring large-scale analog-to-digital converter or digital-to-analog converter arrays. Since there is no interaction among light beams inside, extreme scalability could be achieved by simply multiplicating the independent emitter-detector pair. The proposed architecture is inspired by the traditional Chinese Suanpan or abacus, and thus is denoted as photonic SUANPAN. Experimentally, the computing fidelities for vector inner products could achieve >98% in our implementation with an 8 × 8 vertical cavity surface emission laser (VCSEL) array and an 8 × 8 MoTe 2 two-dimensional material photodetector array. Furthermore, such implementation is applied on two typical AI tasks as 1024-dimensional optimization problem is successfully solved and competitive classification accuracy of 88% is achieved for handwritten digit dataset. We believe that the photonic SUANPAN could serve as a fundamental linear vector machine and enhance various future AI applications.
- 1 January 2026
- Published by Springer Nature in Light: Science & Applications
- Vol. 15 (1) , 16
Open AccessSUANPAN: scalable photonic linear vector machine
Photonics is promising to handle extensive vector multiplications in artificial intelligence (AI) techniques due to natural bosonic parallelism and high-speed information transmission. However, the dimensionality of current photonic linear operation is limited and tough to improve due to the complex beam interaction for implementing optical matrix operation and digital-analog conversions. Here, we propose a programmable and reconfigurable photonic linear vector machine with extreme scalability formed by a series of emitter-detector pairs as the independent basic computing units. The elemental values of two high-dimensional vectors are prepared on emitter-detector pairs by bit encoding and analog detecting method without requiring large-scale analog-to-digital converter or digital-to-analog converter arrays. Since there is no interaction among light beams inside, extreme scalability could be achieved by simply multiplicating the independent emitter-detector pair. The proposed architecture is inspired by the traditional Chinese Suanpan or abacus, and thus is denoted as photonic SUANPAN. Experimentally, the computing fidelities for vector inner products could achieve >98% in our implementation with an 8 × 8 vertical cavity surface emission laser (VCSEL) array and an 8 × 8 MoTe 2 two-dimensional material photodetector array. Furthermore, such implementation is applied on two typical AI tasks as 1024-dimensional optimization problem is successfully solved and competitive classification accuracy of 88% is achieved for handwritten digit dataset. We believe that the photonic SUANPAN could serve as a fundamental linear vector machine and enhance various future AI applications.
- Open Access
- 11 February 2025
- Published by Springer Nature in Research Square
SUANPAN: Scalable Photonic Linear Vector Machine
Photonics is promising to handle extensive vector multiplications in artificial intelligence (AI) techniques due to natural bosonic parallelism and high-speed information transmission. However, the dimensionality of current photonic linear operation is limited and tough to improve due to the complex beam-interaction for implementing optical matrix operation and digital-analog conversions. Here, we propose a programmable and reconfigurable photonic linear vector machine with extreme scalability formed by a series of emitter-detector pairs as the independent basic computing units. The elemental values of two high-dimensional vectors are prepared on emitter-detector pairs by bit encoding and analog detecting method without requiring large-scale analog-to-digital converter or digital-to-analog converter arrays. Since there is no interaction among light beams inside, extreme scalability could be achieved by simply multiplicating the independent emitter-detector pair. The proposed architecture is inspired by the traditional Chinese Suanpan or abacus, and thus is denoted as photonic SUANPAN. Experimentally, the computing fidelities for vector inner products could achieve > 98% in our implemented SUANPAN with an 8×8 vertical cavity surface emission laser (VCSEL) array and an 8×8 MoTe2 two-dimensional material photodetector array. Furthermore, SUANPAN is applied on two typical AI tasks as 1024-dimensional optimization problem is successfully solved and competitive classification accuracy of 88% is achieved for handwritten digit dataset. We believe that the photonic SUANPAN could serve as a fundamental linear vector machine and enhance various future AI applications.
- 11 February 2025
- Published by Springer Nature in Research Square
Open AccessSUANPAN: Scalable Photonic Linear Vector Machine
Photonics is promising to handle extensive vector multiplications in artificial intelligence (AI) techniques due to natural bosonic parallelism and high-speed information transmission. However, the dimensionality of current photonic linear operation is limited and tough to improve due to the complex beam-interaction for implementing optical matrix operation and digital-analog conversions. Here, we propose a programmable and reconfigurable photonic linear vector machine with extreme scalability formed by a series of emitter-detector pairs as the independent basic computing units. The elemental values of two high-dimensional vectors are prepared on emitter-detector pairs by bit encoding and analog detecting method without requiring large-scale analog-to-digital converter or digital-to-analog converter arrays. Since there is no interaction among light beams inside, extreme scalability could be achieved by simply multiplicating the independent emitter-detector pair. The proposed architecture is inspired by the traditional Chinese Suanpan or abacus, and thus is denoted as photonic SUANPAN. Experimentally, the computing fidelities for vector inner products could achieve > 98% in our implemented SUANPAN with an 8×8 vertical cavity surface emission laser (VCSEL) array and an 8×8 MoTe2 two-dimensional material photodetector array. Furthermore, SUANPAN is applied on two typical AI tasks as 1024-dimensional optimization problem is successfully solved and competitive classification accuracy of 88% is achieved for handwritten digit dataset. We believe that the photonic SUANPAN could serve as a fundamental linear vector machine and enhance various future AI applications.
- 27 December 2024
- Published by Elsevier in Chemical Engineering Journal
- Vol. 504, 159023
Rapid analysis of salivary glucose content using MOF/MIPs biomimetic microfluidic paper chips
- 27 December 2024
- Published by Elsevier in Chemical Engineering Journal
- Vol. 504, 159023
Rapid analysis of salivary glucose content using MOF/MIPs biomimetic microfluidic paper chips
- Open Access
- 25 November 2024
- Published by Springer Nature in Research Square
SUANPAN: Scalable Photonic Linear Vector Machine
Photonic linear operation is a promising approach to handle the extensive vector multiplications in artificial intelligence (AI) techniques due to the natural bosonic parallelism and high-speed information transmission of photonics. However, there is still no universal scalable photonic computing architecture that can be readily merged with existing electronic digital computing system. Even though it is believed that maximizing the interaction of the light beams is necessary to fully utilize the parallelism and tremendous efforts have been made in past decades, the achieved dimensionality of vector-matrix multiplication is very limited due to the difficulty of scaling up a tightly interconnected or highly coupled optical system. Here, we propose a programmable and reconfigurable photonic linear vector machine to perform only the inner product of two vectors, formed by a series of independent basic computing units, while each unit contains only one emitter-detector pair. The elemental values of the processed vectors are prepared by the time-space domain encoding. Specifically, one vector is encoded by the output duration of continuous light-emitter while the other is encoded as the position of the emitter-detector pair. The result of the inner product is obtained by the sum of photocurrents of all photodetectors. Since there is no interaction among light beams inside, extreme scalability could be achieved by simply multiplicating the independent basic computing unit without requiring large-scale analog-to-digital converter or digital-to-analog converter arrays. Our time-space domain encoding architecture is inspired by the traditional Chinese Suanpan or abacus, and thus is denoted as photonic SUANPAN. As a proof of principle, SUANPAN architecture is implemented with an 8×8 vertical cavity surface emission laser (VCSEL) array and an 8×8 MoTe2 two-dimensional material photodetector array. The experimental computing fidelities for randomly generated vector inner products are all over 98% for 1-bit, 2-bit, 4-bit and 8-bit quantization and over 95% for 8~80 vector dimensionalities with 4-bit quantization. Two typical AI tasks of the Ising machine for non-deterministic polynomial-time (NP)-hard optimization problem and artificial neural network for visual perception are performed to demonstrate the ability of SUANPAN architecture. For the Ising problem, 1024-dimensional problems are successfully solved, which is the highest dimensional optical Ising machine with heuristic algorithm. For artificial neural network, a competitive classification accuracy of 84~88% is achieved for MNIST (Modified National Institute of Standards and Technology) handwritten digit dataset. We believe that our proposed photonic SUANPAN is capable of serving as a fundamental linear vector machine that can be readily merged with existing electronic digital computing system and is potential to enhance the computing power for future various AI applications.
- 25 November 2024
- Published by Springer Nature in Research Square
Open AccessSUANPAN: Scalable Photonic Linear Vector Machine
Photonic linear operation is a promising approach to handle the extensive vector multiplications in artificial intelligence (AI) techniques due to the natural bosonic parallelism and high-speed information transmission of photonics. However, there is still no universal scalable photonic computing architecture that can be readily merged with existing electronic digital computing system. Even though it is believed that maximizing the interaction of the light beams is necessary to fully utilize the parallelism and tremendous efforts have been made in past decades, the achieved dimensionality of vector-matrix multiplication is very limited due to the difficulty of scaling up a tightly interconnected or highly coupled optical system. Here, we propose a programmable and reconfigurable photonic linear vector machine to perform only the inner product of two vectors, formed by a series of independent basic computing units, while each unit contains only one emitter-detector pair. The elemental values of the processed vectors are prepared by the time-space domain encoding. Specifically, one vector is encoded by the output duration of continuous light-emitter while the other is encoded as the position of the emitter-detector pair. The result of the inner product is obtained by the sum of photocurrents of all photodetectors. Since there is no interaction among light beams inside, extreme scalability could be achieved by simply multiplicating the independent basic computing unit without requiring large-scale analog-to-digital converter or digital-to-analog converter arrays. Our time-space domain encoding architecture is inspired by the traditional Chinese Suanpan or abacus, and thus is denoted as photonic SUANPAN. As a proof of principle, SUANPAN architecture is implemented with an 8×8 vertical cavity surface emission laser (VCSEL) array and an 8×8 MoTe2 two-dimensional material photodetector array. The experimental computing fidelities for randomly generated vector inner products are all over 98% for 1-bit, 2-bit, 4-bit and 8-bit quantization and over 95% for 8~80 vector dimensionalities with 4-bit quantization. Two typical AI tasks of the Ising machine for non-deterministic polynomial-time (NP)-hard optimization problem and artificial neural network for visual perception are performed to demonstrate the ability of SUANPAN architecture. For the Ising problem, 1024-dimensional problems are successfully solved, which is the highest dimensional optical Ising machine with heuristic algorithm. For artificial neural network, a competitive classification accuracy of 84~88% is achieved for MNIST (Modified National Institute of Standards and Technology) handwritten digit dataset. We believe that our proposed photonic SUANPAN is capable of serving as a fundamental linear vector machine that can be readily merged with existing electronic digital computing system and is potential to enhance the computing power for future various AI applications.
- 1 October 2024
- Published by Optica Publishing Group in Photonics Research
- Vol. 12 (10) , 2288-2292
Photonics Research Interview with Professor Connie Chang-Hasnain
Professor Connie Chang-Hasnain discusses her career in semiconductor optoelectronics with her former student, Prof. Hao Sun.
- 1 October 2024
- Published by Optica Publishing Group in Photonics Research
- Vol. 12 (10) , 2288-2292
Photonics Research Interview with Professor Connie Chang-Hasnain
Professor Connie Chang-Hasnain discusses her career in semiconductor optoelectronics with her former student, Prof. Hao Sun.
- Open Access
- 27 September 2024
- Published by Springer Nature in Nature Communications
- Vol. 15 (1) , 1-9
Electrically switchable 2N-channel wave-front control for certain functionalities with N cascaded polarization-dependent metasurfaces
Metasurfaces with tunable functionalities are greatly desired for modern optical system and various applications. To increase the operating channels of polarization-multiplexed metasurfaces, we proposed a structure of N cascaded dual-channel metasurfaces to achieve 2N electrically switchable channels without intrinsic loss or cross-talk for certain functionalities, including beam steering, vortex beam generation, lens, etc. As proof of principles, we have implemented a 3-layer setup to achieve 8 channels. In success, we have demonstrated two typical functionalities of vortex beam generation with switchable topological charge of l = −3 ~ +4 or l = −1 ~ −8, and beam steering with the deflection direction switchable in an 8×1 line or a 4×2 grid. We believe that our proposal would provide a practical way to significantly increase the scalability and extend the functionality of polarization-multiplexed metasurfaces. Although this method is not universal, it is potential for the applications of LiDAR, glasses-free 3D display, OAM (de)multiplexing, and varifocal meta-lens.
- 27 September 2024
- Published by Springer Nature in Nature Communications
- Vol. 15 (1) , 1-9
Open AccessElectrically switchable 2N-channel wave-front control for certain functionalities with N cascaded polarization-dependent metasurfaces
Metasurfaces with tunable functionalities are greatly desired for modern optical system and various applications. To increase the operating channels of polarization-multiplexed metasurfaces, we proposed a structure of N cascaded dual-channel metasurfaces to achieve 2N electrically switchable channels without intrinsic loss or cross-talk for certain functionalities, including beam steering, vortex beam generation, lens, etc. As proof of principles, we have implemented a 3-layer setup to achieve 8 channels. In success, we have demonstrated two typical functionalities of vortex beam generation with switchable topological charge of l = −3 ~ +4 or l = −1 ~ −8, and beam steering with the deflection direction switchable in an 8×1 line or a 4×2 grid. We believe that our proposal would provide a practical way to significantly increase the scalability and extend the functionality of polarization-multiplexed metasurfaces. Although this method is not universal, it is potential for the applications of LiDAR, glasses-free 3D display, OAM (de)multiplexing, and varifocal meta-lens.
- 1 August 2024
- Published by American Physical Society (APS) in Physical Review Applied
- Vol. 22 (2) , L021001
Programmable and reconfigurable photonic simulator for classical modelsIn this work, we proposed and experimentally demonstrated a photonic simulator for models, which is a typical kind of classical spin model. By encoding the spins on the phase term of the input light field, the corresponding Hamiltonian could be performed on the output light intensities. The simulator is mainly based on a programmable and reconfigurable optical vector-matrix multiplication system, which can map arbitrary models within the dimensionality limit. Here, we demonstrated the Berezinskii-Kosterlitz-Thouless transition in a two-dimensional model, in which the values of some observables are calculated and consistent with the theory. Besides, we performed the ground-state search of two 25-spin models with different spin connections and coupling strengths. Our proposal paves the way to investigate the spin system.- 1 August 2024
- Published by American Physical Society (APS) in Physical Review Applied
- Vol. 22 (2) , L021001
Programmable and reconfigurable photonic simulator for classical modelsIn this work, we proposed and experimentally demonstrated a photonic simulator for models, which is a typical kind of classical spin model. By encoding the spins on the phase term of the input light field, the corresponding Hamiltonian could be performed on the output light intensities. The simulator is mainly based on a programmable and reconfigurable optical vector-matrix multiplication system, which can map arbitrary models within the dimensionality limit. Here, we demonstrated the Berezinskii-Kosterlitz-Thouless transition in a two-dimensional model, in which the values of some observables are calculated and consistent with the theory. Besides, we performed the ground-state search of two 25-spin models with different spin connections and coupling strengths. Our proposal paves the way to investigate the spin system.