The procedure of doping tiny amounts of the metals chromium (Cr), neodymium (Nd), erbium (Er), thulium (Tm), ytterbium (Yb), and a few others, into transparent crystals, ceramics, or glasses is used to produce the active medium for solid-state lasers. It is in the electrons of the dopant atoms that a population inversion can be produced, and this population inversion is essential for the stimulated emission of photons in the operation of all lasers.
In the case of the natural ruby, what has occurred is that a tiny amount of chromium dopant has been naturally distributed through a crystal of aluminium oxide (corundum). This chromium both gives a ruby its red color, and also enables a ruby to undergo a population inversion and act as a laser. The aluminium and oxygen atoms in the transparent crystal of aluminium oxide served simply to support the chromium atoms in a good spatial distribution, and otherwise, they do not have anything to do with the laser action.
In other cases, such as in the neodymium YAG laser, the crystal is synthetically made and does not occur in nature. The human-made yttrium aluminium garnet crystal contains millions of yttrium atoms in it, and due to its physical size, chemical valence, etc., it works well to take the place of a small minority of yttrium atoms in its lattice, and to replace them with atoms from the rare-earth series of elements, such as neodymium. Then, these dopant atoms actually carry out the lasing process in the crystal. The rest of the atoms in the crystal consist of yttrium, aluminium, and oxygen atoms, but just as above, these other three elements function to simply support the neodymium atoms. In addition, the rare-earth element erbium can readily be used as the dopant rather than neodymium, giving a different wavelength of its output.
In many optically-transparent hosts, such active centers may keep their excitation for a time on the order of milliseconds, and relax with stimulated emission, providing the laser action. The amount of dopant is usually measured in atomic percent. Usually the relative atomic percent is assumed in the calculations, taking into account that the dopant ion can substitute in only part of a site in a crystalline lattice. The doping can be also used to change the refraction index in optical fibers, especially in the double-clad fibers. The optical dopants are characterized with lifetime of excitation and the effective absorption and emission cross-sections, which are main parameters of an active dopant. Usually, the concentration of optical dopant is of order of few percent or even lower. At large density of excitation, the cooperative quenching (cross-relaxation) reduces the efficiency of the laser action.