Strictly speaking that's not efficiency, but a coefficient of performance.
And funny enough the work energy doesn't even have to be electricity. It's actually mechanical energy, that is required and you could even power a heat pump with a steam or diesel engine.