If we just have a diatomic molecule, there is only one degree of freedom (the bond length), and so it is reasonable to model diatomic vibrations using a 1D harmonic oscillator:
If we just have a diatomic molecule, there is only one degree of freedom (the bond length), and so it is reasonable to model diatomic vibrations using a 1D harmonic oscillator: