Search found 2 matches
- 08 Oct 2025, 05:56
- Forum: HowTos and FAQ for TeNPy
- Topic: custom AKLT models
- Replies: 2
- Views: 417
Re: custom AKLT models
Hi, the AKLTChain is one of the few models in tenpy that is not defined via the CouplingModel framework, so this error is expected behavior. If you want to modify the existing AKLTChain, take a look at how it is defined and adjust the ``H_bond`` in ``__init__`` to include your extra term. Note that...
- 05 Oct 2025, 07:27
- Forum: HowTos and FAQ for TeNPy
- Topic: custom AKLT models
- Replies: 2
- Views: 417
custom AKLT models
I'm a newcomer of the TeNPy, and wanna write a script to simulate the spin-1 AKLT chain with the trivial perturbation \sum_i (S_i^z)^2 . The class script modified as follow : where i add Sz_dot_Sz = npc.tensordot(Sz,Sz,[['p'],['p*']]) # the trivial hamiltonian H_i = (S_i^z)^2 = S_i^z \cod S_i^z and ...