Compile error in ITensor and Tensor Network Machine Learning Project

Dear all,

Lately I’ve been studying this paper: Supervised Learning with Quantum-Inspired Tensor Networks(link). The authors have provided the source code here: link. This project is called TNML and is dependent on ITensor. I have all the packages installed already but the compilation of TNML generated multiple errors. I’ve attached some error messages below.

Some information about the packages I use:

  1. ITensor v3.2.0
  2. g++ (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
  3. png+±0.2.10
  4. libpng 1.6.37.

I don’t know what went wrong and how to fix this error. Please help.

Thanks a lot.

yh

Hm, I’m not sure, but what flags are you passing when you compile the codes? Mainly, what version of C++ are you using? Is it C++14 or greater? I think the ideal one to try is C++17.

Thanks for your suggestion, I’ll try it.