If you buy heat pumps for the house, and make the electricity with gas, about half the energy making the electricity is lost, but when the heat pump heats the house, it's 5 times more efficient.
So the net result is that it requires less than half the gas to heat the house with heat pumps, even if the electricity is made with gas.
Heat pumps are brilliant. π₯°