What causes a heatpump to freeze?
There are many possible causes but some of the more common ones are:


Clogged drain
Dirty filter
Excess humidity in the house
Blocked air return or outlet duct


Get it thawed out and make sure that the drain is flowing properly.  Check the filter, check the blower for any obstructions.