CW, Q-Switched & Mode-Locked Lasers
Three fundamentally different ways a laser can emit light - and why each one matters. We use the Predator-Prey analogy (photons hunt electrons) to build deep physical intuition, then confirm every idea with interactive simulations.
What you will learn: Starting from the rate equations of a four-level laser, we understand why a CW laser reaches a steady state, why a Q-switched laser can concentrate megawatts into a nanosecond pulse, and how mode-locking pushes lasers to femtosecond durations - all through the lens of predator-prey dynamics.
Prerequisites: Basic differential equations, familiarity with the concept of stimulated emission and optical resonators. No coding experience required - edit the numbers and see what happens.
Table of Contents
The Laser Zoo - Three Modes of Operation
Rate Equations - Predators & Prey
Continuous Wave (CW) Lasers
Q-Switching - The Population Ambush
Mode-Locking - The Synchronized Pack
The Time-Bandwidth Product
Applications - When to Use Which
Key Equations Summary
1. The Laser Zoo - Three Modes of Operation
A laser cavity is a battlefield. Electrons promoted by the pump to an excited state are prey. Photons circulating between the mirrors are predators - each one that encounters an excited electron can trigger stimulated emission, spawning another identical photon (the hunt is self-amplifying). Three very different management strategies for this battle produce three radically different outputs:
Predators and prey reach an ecological equilibrium. The hunt rate equals the birth rate. Steady, uninterrupted light output. Power: milliwatts to tens of watts.
Pointer lasers, fiber comms, cutting CW
Predators are temporarily locked out. Prey multiply unchecked. Then the gate opens and every predator at once obliterates the swarm - a giant nanosecond pulse.
Laser ranging (LIDAR), material ablation, eye surgery
Instead of hunting alone, predators synchronize into a coordinated pack. All cavity modes beat together in phase. The result: a periodic train of femtosecond pulses.
Frequency combs, multiphoton microscopy, ultrafast science
| Property | CW | Q-Switched | Mode-Locked |
|---|---|---|---|
| Pulse duration | Continuous | 1 - 100 ns | 10 fs - 1 ps |
| Peak power | Watts | MW - GW | GW - TW |
| Repetition rate | n/a | Hz - kHz | MHz - GHz |
| Key mechanism | Equilibrium | Q modulation | Phase synchronization |
| Analogy | Balanced ecosystem | Ambush: build & release | Wolf pack synchrony |
2. Rate Equations - Predators & Prey
The heart of laser physics is the coupled rate equations for population inversion N (electrons in the excited state - the prey) and intracavity photon density φ (photons - the predators). These equations are structurally identical to the Lotka-Volterra predator-prey equations from ecology.
RPump rate - electrons promoted per second (birth rate of prey)
γₙ · NSpontaneous decay - excited electrons fall back without emitting laser photons (natural prey death)
B · N · φStimulated emission - each photon that meets an excited electron triggers another photon. Prey hunted = predators born.
γ_φ · φPhoton cavity loss - photons escape through the output coupler or are absorbed (predators leave the ecosystem)
The Threshold Condition
In steady state dφ/dt = 0, which gives N_th = γ_φ / B. This is the threshold population inversion. If pumping is too weak, predators die faster than they can reproduce and the photon population collapses to zero. Once N exceeds N_th, the laser turns on. It is the exact analogue of the minimum prey density needed to sustain a predator population.
Live Lab: CW Laser Rate Equations
Watch the population inversion (electrons = prey) and intracavity photon density (predators) reach a steady state in a CW laser. Try changing the pump rate R.
Preparing preview
Running once automatically on first load
Learn by Experimenting
This is a safe playground for learning! Try changing:
- • Colors: Modify color values to see different palettes
- • Numbers: Adjust sizes, positions, or data ranges
- • Labels: Update titles, axis names, or legends
Edit the code, run it, then open the full data visualization tool to continue with your own dataset.
The Myth
The laser threshold is a sharp on/off switch.
The Reality
Below threshold the laser still produces spontaneous emission and a tiny photon field. The threshold is a phase transition-like crossover where gain exactly compensates loss - above it, stimulated emission takes off exponentially before saturating.
3. Continuous Wave (CW) Lasers
A CW laser is an ecosystem in balance. The pump continuously promotes electrons to the excited state (prey are born), while the photon field continuously depletes it through stimulated emission (predators hunt them). The steady-state solution of the rate equations shows that:
Steady-State Inversion
When the laser is above threshold, N is clamped exactly at N_th. Any extra pump simply converts immediately into more photons. The prey population never grows beyond the threshold level once the predators are active.
N_ss = γ_φ / B = N_thSteady-State Photon Density
The photon density (output power) scales linearly with how far the pump is above threshold. This linear relationship is the well-known P-I slope efficiency curve.
φ_ss = (R - γ_n · N_th) / (γ_p · N_th)The Relaxation Oscillation
When a CW laser is switched on, the predator-prey system does not jump directly to steady state. It overshoots and oscillates - just like a fox-rabbit population after a perturbation. This “relaxation oscillation” at frequency ω_R = √(B · φ_ss / τ) decays with a timescale set by the spontaneous lifetime. Solid-state lasers (Nd:YAG) show distinct spikes; semiconductor lasers damp in picoseconds.
4. Q-Switching - The Population Ambush
The letter “Q” stands for the quality factor of the optical resonator - a measure of how well it stores energy. A high-Q cavity has low loss; a low-Q cavity leaks photons rapidly.
The Q-Switch Strategy in Three Acts
Act I: Lock out the predators (Q = LOW)
An electro-optic modulator, acousto-optic modulator, or saturable absorber introduces enormous intracavity loss. Photons cannot sustain themselves - every predator born is immediately killed. But the pump keeps running, stuffing electrons into the excited state. The prey (population inversion) builds up to enormous levels - far beyond what steady-state CW would allow.
Act II: The swarm peaks (N >> N_th)
The population inversion can reach 10-100 times the CW threshold value. This is stored potential energy - a compressed ecological spring. The photon density remains near zero because the cavity quality factor is deliberately suppressed.
Act III: Release the pack (Q-switch opens)
The modulator is switched in nanoseconds to high-Q. The photon population explodes exponentially, devouring the enormous inversion. The pulse rises in nanoseconds, peaks when N = N_th, then falls as the inversion crashes to zero. The result: peak powers millions of times higher than CW - concentrated energy output.
where N_i is the initial inversion (prey stock), V is the mode volume, and τ_p is the photon lifetime (inverse cavity loss). The peak power is proportional to how large a prey stock you built up before releasing the predators.
Live Lab: Q-Switch Pulse Generation
The prey (electrons) multiply unchecked while the predators (photons) are locked out. Then Q is switched on and a giant pulse erupts. Adjust the hold time and watch the pulse change.
Preparing preview
Running once automatically on first load
Learn by Experimenting
This is a safe playground for learning! Try changing:
- • Colors: Modify color values to see different palettes
- • Numbers: Adjust sizes, positions, or data ranges
- • Labels: Update titles, axis names, or legends
Edit the code, run it, then open the full data visualization tool to continue with your own dataset.
The Myth
A Q-switched laser always produces higher energy than a CW laser.
The Reality
A Q-switched laser compresses the same average power into nanosecond bursts, yielding dramatically higher peak power. But total energy per second (average power) is determined by the pump, not the Q-switch. The Q-switch trades repetition rate for peak power.
Active Q-Switching
An externally triggered electro-optic (Pockels cell) or acousto-optic switch controls the cavity Q. Timing is precise and deterministic. Used in Nd:YAG and CO2 lasers for materials processing and ranging.
Passive Q-Switching
A saturable absorber inside the cavity bleaches (becomes transparent) when the photon density is high enough. It self-triggers the switch. Simpler and cheaper but timing is not precisely controlled. Common in microchip lasers and eye-safe rangefinders.
5. Mode-Locking - The Synchronized Pack
A linear laser cavity of length L supports a series of longitudinal modes with frequencies:
Each mode is like an individual predator hunting alone, at its own pace and rhythm. In a free-running laser the modes have random relative phases - interference patterns scramble, and the output looks like noise. Mode-locking forces all modes to hunt in synchronized formation: all peaks aligned in time. When N modes add coherently, the peak intensity scales as N² while the average power stays constant - a factor N compression of energy into each pulse.
The Physics of Mode-Locking
Pulse duration
~T_rep / NPeriod divided by number of modes
Repetition rate
f_rep = c / 2LEquals the cavity free spectral range
Peak power ratio
P_peak / P_avg = NN-fold compression of energy
Live Lab: Mode-Locking - Frequency Domain
A laser cavity supports many discrete longitudinal modes. In a free-running laser the phases are random. In a mode-locked laser they are forced in phase - like a wolf pack hunting in perfect sync.
Preparing preview
Running once automatically on first load
Learn by Experimenting
This is a safe playground for learning! Try changing:
- • Colors: Modify color values to see different palettes
- • Numbers: Adjust sizes, positions, or data ranges
- • Labels: Update titles, axis names, or legends
Edit the code, run it, then open the full data visualization tool to continue with your own dataset.
Live Lab: Mode-Locked Pulse Train
When N modes are phase-locked, the laser emits a periodic train of ultrashort pulses. The pulse duration shrinks as you add more modes. The repetition rate equals the cavity FSR.
Preparing preview
Running once automatically on first load
Learn by Experimenting
This is a safe playground for learning! Try changing:
- • Colors: Modify color values to see different palettes
- • Numbers: Adjust sizes, positions, or data ranges
- • Labels: Update titles, axis names, or legends
Edit the code, run it, then open the full data visualization tool to continue with your own dataset.
Active Mode-Locking
An acousto-optic or electro-optic modulator driven at exactly f_rep synchronizes the modes by amplitude- or phase-modulating the intracavity field. Requires precise RF drive. Achieves pulse widths down to ~1 ps. Used in Ti:sapphire and fiber lasers where external sync is needed.
Passive Mode-Locking (SESAM/Kerr)
A semiconductor saturable absorber mirror (SESAM) or Kerr-lens mechanism selectively favors high-intensity peaks, pulling the modes into phase automatically. Produces femtosecond pulses without external RF. The workhorse of modern ultrafast lasers (Ti:Al2O3, Er:fiber).
The Myth
A mode-locked laser is just a faster Q-switched laser.
The Reality
Q-switching stores energy and releases it in a single burst (ns pulses, low repetition). Mode-locking uses phase coherence between many cavity modes to compress the energy into periodic fs pulses at 10-100 MHz rates. They exploit completely different physical mechanisms.
6. The Time-Bandwidth Product
The Heisenberg uncertainty principle applied to photons - or equivalently the Fourier uncertainty theorem - sets a hard lower limit on how short a pulse can be for a given spectral bandwidth:
where K = 0.4413 for a Gaussian pulse, K = 0.3148 for a sech² pulse (common in mode-locked fiber lasers), and Δt and Δν are pulse duration and spectral width (FWHM). A pulse that achieves the minimum value is called transform-limited or Fourier-limited. Real pulses are broader because of chirp - frequency varying across the pulse like a bird's call gliding up in pitch.
TBP Values for Common Shapes
0.4413Gaussian
Most common in mode-locked lasers
0.3148sech²
Ti:sapphire, Er:fiber typical shape
0.2206Lorentzian
Narrowest TBP but infinite wings
0.8859Top-hat (rect)
Broadest - flat-top pulses
Chirp & Compression
If a pulse has a frequency sweep (chirp), its TBP exceeds the minimum. A linear chirp can be compensated by a dispersive element (prism pair, grating pair, chirped mirror) that gives the “red” part of the pulse a time advance over the “blue” part. This is how chirped-pulse amplification (CPA) - the 2018 Nobel Prize technique - stretches, amplifies, and then recompresses pulses to petawatt levels.
Live Lab: Time-Bandwidth Product
The Fourier transform limit (time-bandwidth product) tells you the shortest pulse achievable for a given spectral bandwidth. Try different pulse shapes and see how the TBP changes.
Preparing preview
Running once automatically on first load
Learn by Experimenting
This is a safe playground for learning! Try changing:
- • Colors: Modify color values to see different palettes
- • Numbers: Adjust sizes, positions, or data ranges
- • Labels: Update titles, axis names, or legends
Edit the code, run it, then open the full data visualization tool to continue with your own dataset.
7. Applications - When to Use Which
The “best” laser mode depends entirely on what the application needs. Here is a decision map based on peak power, pulse duration, and average power requirements.
Optical fiber communications
Continuous data stream at stable power
Laser cutting & welding (low speed)
Sustained thermal energy input
Spectroscopy & sensing
Narrow linewidth, well-defined frequency
Laser pointers & alignment
Cost, simplicity
Laser ranging (LIDAR)
Short pulse gives precise time-of-flight measurement
Laser tattoo removal
High peak power ablates pigment, low average avoids burns
Nd:YAG ophthalmology
ns pulses deliver energy without thermal spread
Micromachining & drilling
Percussion drilling with minimal heat-affected zone
Optical frequency combs (Nobel 2005)
Equally spaced modes act as a precision frequency ruler
Two-photon microscopy
High peak power at focus triggers nonlinear absorption; low average protects tissue
Ultrafast pump-probe spectroscopy
Sub-100 fs resolution captures molecular dynamics
Laser eye surgery (LASIK)
Fs pulses cut cleanly with almost zero thermal damage
8. Key Equations Summary
| Concept | Equation |
|---|---|
| Rate eq. (inversion) | dN/dt = R - γₙN - BNφ |
| Rate eq. (photons) | dφ/dt = BNφ - γ_φφ |
| Threshold inversion | N_th = γ_φ / B |
| Cavity modes | f_n = nc / 2L |
| Repetition rate | f_rep = c / 2L |
| Pulse duration (ML) | τ_p ≈ T_rep / N |
| Fourier limit (Gauss) | Δt · Δν ≥ 0.4413 |
| Peak power (QS) | P_pk ≈ hν·N_i·V / 2τ_p |
Visualize your own laser data
Upload oscilloscope traces, pulse profiles, or spectrum data from your lab and generate publication-quality plots with AI assistance - directly in Plotivy.