When I say producing net energy I mean getting out more useful energy than we put in.
At the lowest level, the energy we received comes from the fact that the two nuclei fused have a lower energy state than they had individually and the remaining energy causes heat via the emission of neutrons