The energy of a photon is inversely proportional to its wavelength, given by:
\[
E = \frac{hc}{\lambda}
\]
Since the wavelength of the second photon is twice that of the first, the energy ratio is \( E_1/E_2 = (4000/2000) = 2 \), so the energy ratio is 4.
Final Answer:
\[
\boxed{4}
\]