One dimensional Chern-Simons theory and Index theorem