A heat pump is a device that is capable of transferring heat energy from a source of heat to what is known as the heat sink. It also moves thermal energy in the opposite direction of a spontaneous heat transfer through heat absorption from a cold space and releasing it to a warmer space.
When a heat pump is being utilized for heating, it employs the same principle with that of the refrigeration cycle used by an air conditioner or a refrigerator, but in the opposite direction since it releases heat into a conditioned space rather than the surrounding environment. Moreover, heat pump resembles much as refrigeration since it has the same components with the latter except for the presence of a reverse valve.
Yes, electromagnetic waves do carry energy. In fact, every wave carries energy: that is, potential energy.
The gap between the two flasks is partially evacuated of air creating a near vacuum which significantly reduces heat transfer by conduction or convection