I did it by accounting the coefficients A and B.
t*(S_{i+}S_{j-}+S_{i-}S_{j+})+t_{1}*(S_{i+}T_{j-}+S_{i-}T_{j+}) + 
t_{2}*(T_{i+}T_{j-}+T_{i-}T_{j+}) = 
(A_{ij}S_{i+}S_{j-}+B_{ij}S_{i-}S_{j+}) , 
where 
A_{ij}=(t+t_{1}*(2S_{jz}+1)+t_{2}*(2S_{iz}-1)(2S_{jz}+1))
B_{ij}=(t+t_{1}*(2S_{jz}-1)+t_{2}*(2S_{iz}+1)(2S_{jz}-1)).    


2014-05-11 17:56 GMT+06:00 Matthias Troyer <troyer@phys.ethz.ch>:
I would be very interested in how you did it, since I didn't think that the code can do it

Matthias

On 27 Apr 2014, at 21:13, vitbka konef <konefvitbka53@gmail.com> wrote:

> Hi all,
> Thanks for the help.
> I did it, in some way!
> With best regards.