An explosive lens—as used, for example, in nuclear weapons—is a highly specialized shaped charge. In general, it is a device composed of several explosive charges. These charges are arranged and formed with the intent to control the shape of the detonation wave passing through them. The explosive lens is conceptually similar to an optical lens, which focuses light waves. The charges that make up the explosive lens are chosen to have different rates of detonation. In order to convert a spherically expanding wavefront into a spherically converging one using only a single boundary between the constituent explosives, the boundary shape must be a hyperboloid; similarly, to convert a spherically diverging front into a flat one, the boundary shape must be a paraboloid, and so on. Several boundaries can be used to reduce aberrations (deviations from intended shape) of the final wavefront.
As mentioned by Hans Bethe, the invention of the explosive lens device was contributed and designed by John von Neumann
In a nuclear weapon, an array of explosive lenses is used to change the several approximately-spherical diverging detonation waves into a single spherical converging one. The converging wave is then used to collapse the various shells (tamper, reflector, pusher, etc.) and finally compresses the core (pit) of fissionable material to a prompt critical state. They are usually machined from a plastic bonded explosive and an inert insert, called a wave-shaper, which is often a dense foam or plastic, though many other materials can be used. Other, mainly older explosive lenses do not include a wave shaper, but employ two explosive types that have significantly different velocities of detonation (VoD), which are in the range from 5 to 9 km/s. The use of the low- and high-speed explosives again results in a spherical converging detonation wave to compress the physics package. The original Gadget device used in the Trinity test and Fat Man dropped on Nagasaki used Baratol as the low-VoD explosive and Composition B as the fast, but other combinations can be used.