Photonic Devices And Algorithms For Computing door