Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO
Abstract In this paper, we present an all-optical XOR gate based on two-dimensional photonic crystals (PCs). The proposed gate is designed to be used in optical computing and all-optical logic applications, offering advantages such as fast computation and parallel processing. To enhance the design p...
Saved in:
| Main Authors: | , , , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
Nature Portfolio
2025-07-01
|
| Series: | Scientific Reports |
| Subjects: | |
| Online Access: | https://doi.org/10.1038/s41598-025-12146-9 |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1849333419872354304 |
|---|---|
| author | Farsad Heidari Delir Pashabadi Mohammad Fathi Mohammad Razaghi |
| author_facet | Farsad Heidari Delir Pashabadi Mohammad Fathi Mohammad Razaghi |
| author_sort | Farsad Heidari |
| collection | DOAJ |
| description | Abstract In this paper, we present an all-optical XOR gate based on two-dimensional photonic crystals (PCs). The proposed gate is designed to be used in optical computing and all-optical logic applications, offering advantages such as fast computation and parallel processing. To enhance the design process and optimize its performance, we employ artificial neural network (ANN) to model the gate’s behavior. A dataset of 555 samples, obtained from the Finite-Difference Time-Domain (FDTD) method, is used to train the ANN model. Subsequently, particle swarm optimization (PSO) is used to find optimal values of XOR design parameters, including the lattice constant and the radius of the rods. This optimization process leads to an optimized structure that enhances the gate’s performance. The proposed all-optical XOR gate exhibits a range of output powers across the respective logical states (desired state): 0 (0), 0.995 (1), 0.935 (1), and 0.015 (0). The proposed structure achieved an acceptable contrast ratio of 17.947 dB. By leveraging the ANN-PSO approach to improve the performance of PCs, we demonstrate a promising strategy for developing complex and efficient optical computing systems. |
| format | Article |
| id | doaj-art-be93be492fcc4c56a9f6ed406fa10ad5 |
| institution | Kabale University |
| issn | 2045-2322 |
| language | English |
| publishDate | 2025-07-01 |
| publisher | Nature Portfolio |
| record_format | Article |
| series | Scientific Reports |
| spelling | doaj-art-be93be492fcc4c56a9f6ed406fa10ad52025-08-20T03:45:52ZengNature PortfolioScientific Reports2045-23222025-07-0115111810.1038/s41598-025-12146-9Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSOFarsad Heidari0Delir Pashabadi1Mohammad Fathi2Mohammad Razaghi3Department of Electrical Engineering, University of KurdistanDepartment of Electrical Engineering, University of KurdistanDepartment of Electrical Engineering, University of KurdistanDepartment of Electrical Engineering, University of KurdistanAbstract In this paper, we present an all-optical XOR gate based on two-dimensional photonic crystals (PCs). The proposed gate is designed to be used in optical computing and all-optical logic applications, offering advantages such as fast computation and parallel processing. To enhance the design process and optimize its performance, we employ artificial neural network (ANN) to model the gate’s behavior. A dataset of 555 samples, obtained from the Finite-Difference Time-Domain (FDTD) method, is used to train the ANN model. Subsequently, particle swarm optimization (PSO) is used to find optimal values of XOR design parameters, including the lattice constant and the radius of the rods. This optimization process leads to an optimized structure that enhances the gate’s performance. The proposed all-optical XOR gate exhibits a range of output powers across the respective logical states (desired state): 0 (0), 0.995 (1), 0.935 (1), and 0.015 (0). The proposed structure achieved an acceptable contrast ratio of 17.947 dB. By leveraging the ANN-PSO approach to improve the performance of PCs, we demonstrate a promising strategy for developing complex and efficient optical computing systems.https://doi.org/10.1038/s41598-025-12146-9Photonic crystalOptical logic gateFDTD, ANN, PSO |
| spellingShingle | Farsad Heidari Delir Pashabadi Mohammad Fathi Mohammad Razaghi Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO Scientific Reports Photonic crystal Optical logic gate FDTD, ANN, PSO |
| title | Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO |
| title_full | Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO |
| title_fullStr | Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO |
| title_full_unstemmed | Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO |
| title_short | Optical XOR logic gate design in two dimensional photonic crystal using ANN and PSO |
| title_sort | optical xor logic gate design in two dimensional photonic crystal using ann and pso |
| topic | Photonic crystal Optical logic gate FDTD, ANN, PSO |
| url | https://doi.org/10.1038/s41598-025-12146-9 |
| work_keys_str_mv | AT farsadheidari opticalxorlogicgatedesignintwodimensionalphotoniccrystalusingannandpso AT delirpashabadi opticalxorlogicgatedesignintwodimensionalphotoniccrystalusingannandpso AT mohammadfathi opticalxorlogicgatedesignintwodimensionalphotoniccrystalusingannandpso AT mohammadrazaghi opticalxorlogicgatedesignintwodimensionalphotoniccrystalusingannandpso |