A heat pump is a device that transfers thermal energy between spaces, usually between an enclosed space and the outdoors. When used to heat a building, the energy is transferred from the outside into the building. A heat pump can also work as an air conditioner by transferring heat from the building to the outside.
http://www.outesgroup.com/heat-pump-water-heaters/