The first term is the CASPT2 energy (α = β; Eq. ( )) or the coupling between states ). The third term in Eq. ( ) corresponds to the variational condition of the CASPT2 energy (Eq. ( )), the fourth term for the frozen core approximation is the semi-canonical condition of MOs, and the fifth term is the rotation of reference states (Eq. ( )).