+1 vote
asked by (130 points)

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.

If could you please help then it will be great.
Thanks in advance.

1 Answer

0 votes
answered by (70.1k points)

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 (70.1k 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
Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.

Categories

...