Search found 1 match
- 11 Feb 2025, 16:08
- Forum: HowTos and FAQ for TeNPy
- Topic: Initializing spin chain in + state
- Replies: 0
- Views: 88416
Initializing spin chain in + state
Hello, I'm working with the SpinChainNNN class and want to initialize my MPS to all spins in the |+> state. Is there a straightforward way to do so? I've used the naive approach of defining the p_state as an array with the coefficients but it does not work. Here's my code: def H_model(D, spin, lmbd,...