In this physics.stackexchange answer, it is stated that the absorption of electromagnetic wave at a given wavelength by a molecule is determined by its vibration modes. What is the exact equation/Hamiltonian, either classical electrodynamical or quantum mechanical, that governs the process?