Search found 2 matches

by Jonas_K
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: 66

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...
by Jonas_K
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: 66

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