Generation of Fock states of the electromagnetic field in a high-Q cavity through the Anderson localization.
We investigate a high-Q cavity partially filled by a medium with ${\mathrm{\ensuremath{\chi}}}^{3}$ nonlinear susceptibility with a coherent signal having the form of a series of short pulses injected into it. We show that the electromagnetic field which builds up in the cavity has strong nonclassical features. For appropriate parameters Anderson localization occurs leading to the generation of states with a narrow photon-number probability distribution. We demonstrate that by adiabatic changing of the size of the cavity one may generate from the vacuum a nearly perfect Fock state of a chosen mode.