How to claim an energy credit missed on last year's return

I failed to claim a credit for the installation of a new heat pump on 2022.  Can the credit be claimed for 2023 or do I first need to file an amendment to the 2022 return in order for the carryover to appear on my 2023 return?