New quantum chemistry method to unlock secrets of advanced materials