Yes, a full replacement of the heat pump would be considered an improvement.
The requirements for the credit are that the Geothermal Heat Pump meets the Energy Star Requirements.
https://www.irs.gov/instructions/i5695
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"