When is a heat pump worthwhile?

When is a heat pump worthwhile?