A nanolaser is a laser that has nanoscale dimensions and it refers to a micro-/nano- device which can emit light with light or electric excitation of nanowires or other nanomaterials that serve as resonators. A standard feature of nanolasers includes their light confinement on a scale approaching or suppressing the diffraction limit of light. These tiny lasers can be modulated quickly and, combined with their small footprint, this makes them ideal candidates for on-chip optical computing.