A heat pump device comprising: a compressor that includes a compression mechanism that compresses a refrigerant and a motor that drives the compression mechanism; an inverter that applies a voltage for driving the motor; an inverter control unit that generates a driving signal for driving the inverter; wherein the inverter control unit includes a normal operation mode in which the refrigerant is compressed by performing a normal operation of the compressor and a heating operation mode in which a heating operation of the compressor is performed by applying, to the motor, a high-frequency voltage without rotationally driving the motor, and having a higher frequency than that in the normal operation mode, characterized by a plurality of temperature sensors (35a, 35b) that respectively detect plural temperatures of the compressor, wherein in the heating operation mode, the inverter control unit determines an amplitude and a phase of a voltage command for generating the high-frequency voltage on a basis of the plural temperatures of the compressor respectively detected by the temperature sensors (35a, 35b) and a necessary amount of heat specified in advance, and wherein the heating operation mode is stopped in accordance with a determination based on (i) a temperature difference (γ) between initial temperatures (T 0) at a start of the heating operation mode and current temperatures detected by the temperature sensors (35a, 35b) being below a first predetermined threshold, and (ii) a temperature difference (β) between current temperatures detected by an upper stage thermistor and a lower stage thermistor of the plurality of temperature sensors (35a, 35b) being below a second predetermined threshold. a compressor that includes a compression mechanism that compresses a refrigerant and a motor that drives the compression mechanism; an inverter that applies a voltage for driving the motor; an inverter control unit that generates a driving signal for driving the inverter; wherein the inverter control unit includes a normal operation mode in which the refrigerant is compressed by performing a normal operation of the compressor and a heating operation mode in which a heating operation of the compressor is performed by applying, to the motor, a high-frequency voltage without rotationally driving the motor, and having a higher frequency than that in the normal operation mode, characterized by a plurality of temperature sensors (35a, 35b) that respectively detect plural temperatures of the compressor, wherein in the heating operation mode, the inverter control unit determines an amplitude and a phase of a voltage command for generating the high-frequency voltage on a basis of the plural temperatures of the compressor respectively detected by the temperature sensors (35a, 35b) and a necessary amount of heat specified in advance, and wherein the heating operation mode is stopped in accordance with a determination based on (i) a temperature difference (γ) between initial temperatures (T 0) at a start of the heating operation mode and current temperatures detected by the temperature sensors (35a, 35b) being below a first predetermined threshold, and (ii) a temperature difference (β) between current temperatures detected by an upper stage thermistor and a lower stage thermistor of the plurality of temperature sensors (35a, 35b) being below a second predetermined threshold. (i) a temperature difference (γ) between initial temperatures (T 0) at a start of the heating operation mode and current temperatures detected by the temperature sensors (35a, 35b) being below a first predetermined threshold, and (ii) a temperature difference (β) between current temperatures detected by an upper stage thermistor and a lower stage thermistor of the plurality of temperature sensors (35a, 35b) being below a second predetermined threshold.