A thermodynamic boiler for exchanging (providing or drawing) heat with a heating circuit includes a thermal compressor. The thermal compressor acts on a compressible fluid and includes at least one compression stage, with an alternating bi-directional piston separating a first chamber and a second chamber, and a first fuel burner forming a heat source coupled to the first chamber. The thermal compressor uses the heating circuit as a cold source coupled to the second chamber and forms the compression function of a reversible heat pump type loop.