Energy efficient quantum machines