Hi, thanks again for the reply. This is really helpful. For the Gates, a for loop (pseudocode) like below would generate all the gates?
for(i,j){
auto si = Index(nameint("s", i),2,Site);
auto sj = Index(nameint("s",j),2,Site);
auto Gate(i,j) = ITensor(si,sj,prime(si),prime(sj))
}