For this purpose, not only ordinary conventional energy but also negative energy will be required. Negative energy is a type of anti-gravitational energy that covers the space-time fabric.
As the sides of the magnet repel themselves in opposite directions, the negative energy will also act in the opposite direction, and in that way, it will be possible to open the warm hole longer if we travel inward from time to time.