There are three main types of laser gain media: gases, liquids, and solids. Gases like CO2 have narrow wavelength gain, while liquids like dyes have broad gain. Solid state lasers like Nd:YAG can have either narrow or broad gain depending on the material. All gain media require pumping to receive energy, which can be optical pumping using lamps or flashlights, or electrical pumping using gas discharges. Q-switching is a technique to produce high power pulses using a Pockels cell to prevent lasing until a population inversion is fully inverted.