@article{Parandin_Mohamadi_2024, title={Design and Optimization of a Photonic Crystal-Based All-Optical XOR Gate Using Machine Learning}, volume={18}, url={https://oiccpress.com/Majlesi-Journal-of-Electrical-Engineering/article/design-and-optimization-of-a-photonic-crystal-based-all-optical-xor-gate-using-machine-learning/}, DOI={10.30486/mjee.2023.1984121.1111}, abstractNote={In this article, a two-dimensional photonic crystal-based XOR gate is designed and simulated. For this purpose, an initial two-dimensional photonic crystal structure is chosen and waveguides are created for inputs and outputs. Then, defect rods are selected so that the obtained outputs are approximately consistent with the XOR gate truth table. After that, we will be looking for the best output so that the highest optical power is created for logic 1 and the lowest power in the logical state of 0. For this reason, the simulation is performed for four defect rods and the output is obtained for different the radius of the rods. Then, using the K-Nearest Neighbors algorithm, which is a machine learning algorithm, the best output for logic 0 and also for logic 1 is obtained. The results show that the designed logic gate has high output power in logic 1 and very low power in the logic 0 state.  }, number={1}, journal={Majlesi Journal of Electrical Engineering}, publisher={OICC Press}, author={Parandin, Fariborz and Mohamadi, Alireza}, year={2024}, month={Apr.}, keywords={Photonic Crystal, Optical XOR gate, Photonic Bandgap, K-Nearest Neighbors} }