Earlier quoted context omitted.
Even a modern air source heat pump typically doesn't beat gas for $/kwh. Even in europe where gas prices are sky high, electricity still costs more when you look at the seasonal efficiency of heat pumps, which is typically advertised around 4.4, but various studies show that in most real world scenarios you typically won't reach the quoted lab numbers, so expect to get more like 2.5-3.0. Study: https://www.sciencedir…
Thus the solar panels. So long as the installation proves to make financial sense, the PV production offsets the heat pump efficiency, even in winter months.
If the commenter’s house doesn’t have gas, then it doesn’t seem to make sense to install it, and the price differential in the US isn’t as great as in the UK (how’s that Brexit thing working out?).