A heat pump refers to a heat engine that is used to transfer heat energy to a thermal reservoir. It is often used to transfer thermal energy by absorbing heat from a cold space and releasing it to a warmer one. Heat pumps transfer heat from a cold body to a hot body when external energy is applied.