About four-site coupling terms

How do I use this algorithm? What does that parameter do?
Post Reply
zzwszj
Posts: 2
Joined: 08 Sep 2019, 14:20

About four-site coupling terms

Post by zzwszj »

Hello,

I am new to the TeNPy. Now I have a Hamiltonian with four-site coupling terms. For example, like J, u1, ' Sz', u2, 'Sz', u3, 'Sz', u4, 'Sz', where u1, u2, u3, and u4 are different. I search the guide and find add_coupling can not deal with it. Does the TeNPy can do the four different sites coupling terms?

Thanks in advance.
User avatar
Johannes
Site Admin
Posts: 413
Joined: 21 Jul 2018, 12:52
Location: TU Munich

Re: About four-site coupling terms

Post by Johannes »

Welcome!

There is a way to add such couplings, namly with add_multi_coupling of the tenpy.models.model.MultiCouplingModel instead of just the add_coupling of the tenpy.models.model.CouplingModel.
The tenpy.models.toric_code.ToricCode is an example where this is used.

Take a look at this topic for more explanations on the add_multi_coupling.

Does this help? ;)
zzwszj
Posts: 2
Joined: 08 Sep 2019, 14:20

Re: About four-site coupling terms

Post by zzwszj »

Thanks, it helps!
Post Reply