Search found 4 matches
- 05 Dec 2025, 12:03
- Forum: HowTos and FAQ for TeNPy
- Topic: Error when using calc_H_bond() for both coupling and onsite terms
- Replies: 3
- Views: 6635
Re: Error when using calc_H_bond() for both coupling and onsite terms
That makes sense. Thanks for the quick reply!
- 05 Dec 2025, 10:13
- Forum: HowTos and FAQ for TeNPy
- Topic: Error when using calc_H_bond() for both coupling and onsite terms
- Replies: 3
- Views: 6635
Error when using calc_H_bond() for both coupling and onsite terms
Hi:) I am trying to create a model with periodic boundary conditions, but I am running into an error when using the Nearest Neighbor function calc_H_bond(). Below my code can be seen: class Arb_Model( CouplingModel, NearestNeighborModel, MPOModel ): def __init__(self, model_params): self.L = model_p...
- 21 Oct 2025, 10:49
- Forum: HowTos and FAQ for TeNPy
- Topic: Mismatch between numerical and MPS Schmidt-rank-1 projection overlap
- Replies: 2
- Views: 35660
Re: Mismatch between numerical and MPS Schmidt-rank-1 projection overlap
I ended up getting this to work by altering the tensor instead of the singular values at bond i. That is by: = psi.get_B( idx_cut ) legs = B.legs labels = B.get_leg_labels() new_B = npc.zeros( legs , labels = labels , dtype = B.dtype ) new_B[0, :, :] = B[0, :, :] psi.set_B(idx_cut, new_B) psi.canoni...
- 17 Oct 2025, 11:02
- Forum: HowTos and FAQ for TeNPy
- Topic: Mismatch between numerical and MPS Schmidt-rank-1 projection overlap
- Replies: 2
- Views: 35660
Mismatch between numerical and MPS Schmidt-rank-1 projection overlap
Hello, I am testing a simple 1D spin-1 chain (L = 4, open BCs) and have encountered trouble projecting my MPS onto the leading Schmidt component (around bond 2). I have two wavefunctions \psi and \psi_0 . Conceptually, my code should: 1 ) Time-evolve both states. 2) Project \psi onto its leading Sch...