Original: In other words a heat pump can change which coil is the condenser and which the evaporator.
Simplified: During the refrigeration cycle, the refrigerant changes from a liquid to a gas and back to a liquid.