An air conditioner is a heat pump . This allows the heat pump to both bring heat into an occupied space , and take it out . In the cooling mode a heat pump works the same as an ordinary air conditioner ( A\/C ) .