# Error while compiling itebd package

+1 vote

I have installed ITensor package and its working. I have checked a few other calculations. Now I am trying to install itebd package using ITensor library. But while installing I am getting an error like this

itebd.h:14:19: error: ‘ITensorT’ does not name a type; did you mean ‘ITensor’?
using T = ITensorT;
^~~~~~~~
ITensor
itebd.h:22:9: error: ‘ITensorT’ does not name a type; did you mean ‘ITensor’?
ITensorT measure();
^~~~~~~~
ITensor

My Makefile is like this,

LIBRARY_DIR=$(HOME)/ITensor HEADERS=itebd.h include$(LIBRARYDIR)/thisdir.mk
include $(LIBRARY_DIR)/options.mk cond-mat.0605597: %: %.cpp$(HEADERS)
$(CCCOM)$< -o $@$(CCFLAGS) $(LIBFLAGS) %: %.cpp$(HEADERS)
$(CCCOM)$< -o $@$(CCFLAGS) \$(LIBFLAGS)

.PHONY: clean
clean:
find . -maxdepth 1 -type f -name '.[0-9]' ! -name '*.cpp' -exec rm {} +****

So I don't understand why this kind of error is coming, maybe it is very easy to solve but I am unable to get it.

Hi, so I believe the error is coming because you are perhaps using the v3 branch of ITensor, whereas the iTEBD code requires the v2 branch. Please try switching to the v2 branch (git checkout v2) and recompiling (make clean; make).

Also, please note that the iTEBD code is maintained by a separate developer from us, and not maintained as part of ITensor. We are happy to help you to try to get it to work, but if it ultimately requires fixing bugs in that code you will need to contact the developer of it.

Best regards,
Miles

commented by (130 points)
Hi Miles,

Thank you very much for your answer. I will try the v2 branch and hope to get right installation of iTEBD without any error. If further, I get any error then surely I will try to contact the developer of it directly.

With best regards,
Aslam
commented by (37.2k points)
Ok great. Feel free to ask more questions on here if you think we can help with it. But if it involves needing to make changes to that code we will have to contact the developer is all.

Miles