Search found 4 matches

by Catcher
15 Oct 2025, 08:47
Forum: HowTos and FAQ for TeNPy
Topic: The convergence problem of Spin-1 AFM Heisenberg Chain
Replies: 2
Views: 14368

Re: The convergence problem of Spin-1 AFM Heisenberg Chain

ok, thanks for your reply. And your suggestions are exceedingly important for me :)
by Catcher
14 Oct 2025, 05:45
Forum: HowTos and FAQ for TeNPy
Topic: The convergence problem of Spin-1 AFM Heisenberg Chain
Replies: 2
Views: 14368

The convergence problem of Spin-1 AFM Heisenberg Chain

I'm a newcomer of TeNPy, recently I want simulate the Spin-1 AFM Heisenberg Chain using tenpy-finite dmrg algorithm. H = \sum_i^{L-1} S_i\cdot S_{i+1} And my code as follow: import numpy as np import matplotlib.pyplot as plt from tenpy.networks.mps import MPS from tenpy.models.spins import SpinModel...
by Catcher
08 Oct 2025, 05:56
Forum: HowTos and FAQ for TeNPy
Topic: custom AKLT models
Replies: 2
Views: 14724

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...
by Catcher
05 Oct 2025, 07:27
Forum: HowTos and FAQ for TeNPy
Topic: custom AKLT models
Replies: 2
Views: 14724

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 ...