Loop transfer matrix and loop quantum mechanics