A heat pump moves heat in either direction
A heat pump uses the same basic refrigeration principles as an air conditioner, but it can reverse the direction of heat transfer. In summer it moves heat from the home to the outdoors. In heating mode it extracts available heat from outdoor air and transfers it indoors.
Because a heat pump moves heat rather than creating all of its heat through electric resistance or combustion, it can provide efficient heating under appropriate operating conditions.
Heat-pump performance depends on equipment selection, outdoor temperature, airflow, controls and the home's heating load.