These are demo codes that is related to my paper below. Physical Review B 104 (16), 165132, Physical Review E 106 (1), 014104, and Phys. Rev. B 108, 024413. The original descriptions of Loop-TNR can ...