In theory, to fire a gun warhead does not need huge energy, it's a kind of pulse power surge, tank has 1500 HP motor, which is enough for rail gun if proper energy storage subsystem was used, for example, a super capacitor system.
P.S, the firing rate can not be too high, it need time to charge...