The goal is to start fusion by compressing the pellet using lasers and then use magnets to keep the plasma (charged, very hot gas/thing) confined to a small volume and hot enough so fusion becomes a chain reaction until all atoms of the pellet becomes a heavier element, when fusion stops (because a much higher temperature and pressure is required to fuse those).
This will generate a lot of energy which you car harness capturing the heat (by stoping the neutrons it emits or other method).
Use that heat to vaporize water to very high temperatures and use the high pressure to squeeze it through a pipe and then to push a generator.
So, this is a pulse thing. Pellet, laser, fusion, discard. Repeat.