## Search found 4 matches

05 Jan 2023, 03:10
Forum: HowTos and FAQ for TeNPy
Topic: Making an MPO given its tensors
Replies: 1
Views: 270

### Re: Making an MPO given its tensors

After reading the documentation more thoroughly, I see that the intermediate step that was missing was to use "tenpy.linalg.np_conserved.Array.from_ndarray_trivial" to convert my arrays to the appropriate format. This solves my problem, and my classical lattice computations are running smo...
21 Dec 2022, 08:06
Forum: HowTos and FAQ for TeNPy
Topic: Making an MPO given its tensors
Replies: 1
Views: 270

### Making an MPO given its tensors

I am hoping to run DMRG on the Hermitian transfer matrices of certain lattice and vertex models, like the 2d Ising model. These models' transfer matrices have the nice property that they can be represented as MPOs with explicit bulk and edge tensors. I believe that to run DMRG in TeNPy to find the e...
21 Sep 2022, 23:37
Forum: HowTos and FAQ for TeNPy
Topic: 01_dmrg.ipynb but with periodic boundary conditions
Replies: 2
Views: 404

### Re: 01_dmrg.ipynb but with periodic boundary conditions

I figured out my confusion. Although there's in principle the option optionCouplingMPOModel.bc_x which takes open or periodic as options, from the inheritance diagram on https://tenpy.readthedocs.io/en/latest/reference/tenpy.models.tf_ising.TFIChain.html, TFIChain is a "NearestNeighborModel&quo...
21 Sep 2022, 19:09
Forum: HowTos and FAQ for TeNPy
Topic: 01_dmrg.ipynb but with periodic boundary conditions
Replies: 2
Views: 404

### 01_dmrg.ipynb but with periodic boundary conditions

I am trying out DMRG for the first time in Google Colab with Tenpy. After adding a cell with !pip install physics-tenpy, I am able to run 01_dmrg.ipynb from https://tenpy.readthedocs.io/en/latest/notebooks/01_dmrg.html. It runs well and it's really nice to see the output! One thing I noticed is that...