Ab initio quantum chemistry in the molecular model of atomic collisions