Search found 3 matches

by yhang
25 Jan 2024, 18:26
Forum: HowTos and FAQ for TeNPy
Topic: The EE is different for different initial setup
Replies: 0
Views: 35204

The EE is different for different initial setup

Hi, all, I am trying to implement a heisenberg chain with alternating bond strength. I am implementing using XXZ model from tenpy. However, when I try to calculate the entanglement entropy(EE), the result is different for different initial setup. Any suggestions here? Thank you so much! Here is my c...
by yhang
31 Aug 2022, 04:23
Forum: HowTos and FAQ for TeNPy
Topic: Why does my SSH model not working
Replies: 1
Views: 1622

Why does my SSH model not working

I am trying to code the SSH model using tenpy, but it looks like the product state got some problems, which I am confused about, here are my codes and the error def example_DMRG_SSH_infinite_S_xi_scaling(): L = 50 # or whatever you like... t1, t2 = 0.5, 1.5 t_array = np.array([(t1 if i % 2 == 0 else...
by yhang
17 Jul 2022, 07:44
Forum: HowTos and FAQ for TeNPy
Topic: Newcomer of tenpy having an issue with my code
Replies: 1
Views: 6674

Newcomer of tenpy having an issue with my code

I have written a code in tenpy to simulate the 1D heisenberg chain, but it looks like finally my code does not create any "dynamic properties" at all(Both my energy and my entanglement entropy does not change at all). Can anyone help me with that? Thank you guys so much!Attached are my cod...