When a significant forward bias is provided to such a setup, a big current runs through the junction, causing electrons to gain more energy than holes. As electrons combine with holes, this excess energy is released in the form of photons (during recombination process). All of these Laser Diode photons oscillate at a specific frequency and bounce back and forth between the active layer's reflecting walls. Some of them smash with other atoms during this process, producing an increased quantity of photons. When this process continues, the number of excited electrons will rise in comparison to those in the non-excited state. This is known as population inversion, and at this point, a steady highly coherent beam of light will be emitted from the core layer, parallel to it, through the partially reflecting surface.

Explore More- https://coherentmarketinsightsus.blogspot.com/2023/04/in-laser-diode-high-powered-light-is.html