For N=4
C=psi.A(1)*Sz_1*dag(prime(psi.A(1),Site,Link));
C*= psi.A(2)*Sz_2*dag(prime(psi.A(2),Site,Link));
C*=psi.A(3)*Sz_3*dag(prime(psi.A(3),Site, Link));
C*=psi.A(4)*Sz_4*dag(prime(psi.A(4),Site,Link));
print ("==========S1S2S3S4=============","\n");
print (C,"\n");
It is ok.
I still don't know how to deal with Sz2*Sz4*Sz6 or Sz2*Sz4*Sz6*Sz8