We are not discussing hydrogen bombs, but simple fission devices.
Stay Safe !
Little Boy: Gun-type uranium bomb
To prevent spontaneous detonation of an atomic bomb, the fissile material is kept in a subcritical configuration. It is then rapidly assembled into a supercritical mass using conventional explosives. Once the bomb has achieved this mass, any neutron introduced into it will be likely to initiate a chain reaction. The mechanism for "Little Boy", the U-235 bomb, was a gun that fired one subcritical piece of U-235 into another to form a supercritical mass. The pieces had to be assembled within a time less than the average time between appearance of a spontaneous neutron from either U-235 or cosmic radiation. A conventional explosive in an artillery barrel could fire the U-235 mass at speeds of a few millimeters per second, fast enough to prevent a fizzle caused by a spontaneous neutron setting off a premature chain reaction.
Originally, the gun-type mechanism was planned for both the U-235 and Pu-239 weapons. However, a problem arose with the Pu-239 bomb that required a different assembly mechanism. A small amount of Pu-240 is produced with the Pu-239 in the reactor.
Pu-240 emits large numbers of neutrons spontaneously: 1,030 neutrons per gram per second compared with 0.0004 neutrons per gram per second for U-235. Even at a concentration of 1% Pu-240 in the fissile Pu-239, the required mass of Pu emits 52,000 neutrons per second or one neutron every 20 microseconds. Thus, it is very probable that a neutron from Pu-240 will initiate a premature chain reaction during the critical last 100 microseconds in a gun-type assembly. This problem was discovered in mid 1944, well after the start of construction of the massive Hanford plutonium production facilities.
Fat Man: Implosion-type bomb
Removal of the Pu-240 was impractical. So the scientists and engineers looked for a faster method of assembling the plutonium. A mechanism based on implosion provided the solution to this problem. In this design, the fissile material is shaped into a single sphere with a mass slightly less than critical. Layers of carefully shaped high explosives surround the sphere. When the explosives are detonated, the force of the shock wave compresses the fissile material into a smaller volume, forming a supercritical mass. This method of assembly is much faster than the gun-type mechanism and thus eliminates the problems resulting from spontaneous neutron emission of Pu-240. The spherical mass resulted in a pumpkin-shaped weapon called "Fat Man".
To assure that a chain reaction occurs, an initiator is placed at the center of the sphere of fissile materials. It consists of a source of alpha particles, radioactive polonium, surrounded with thin aluminum foil. The foil-wrapped source is then surrounded with beryllium powder. When the initial explosion squeezes the fissile material into a supercritical mass, the foil breaks, allowing the alpha particles to reach the beryllium and produce the initial neutrons.