Coils produce a magnetic field which confines a big plasma ball. The magnetic field is rapidly increased which makes the plasma ball implode. In the compressed state fusion happens. The plasma ball explodes and compresses the surrounding magnetic field. This produces more induction in the surrounding coils, which is used to produce energy.