Nanostructures For Coherent Light Sources And Photodetectors