Heat pumps transfer heat by moving a refrigerant through a cycle of heating and cooling. In the cooling mode, the refrigerant absorbs heat from the building and transfers it to the air or ground outside.