# How to use ITensorInfiniteMPS to build a 2D model

**URL:** <https://itensor.discourse.group/t/how-to-use-itensorinfinitemps-to-build-a-2d-model/582>\
**Category:** ITensor Julia Questions\
**Created:** [January 9, 2023, 9:45am UTC](https://itensor.discourse.group/t/how-to-use-itensorinfinitemps-to-build-a-2d-model/582 "2023-01-09T09:45:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinh](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/kevinh/32/139_2.png) [@kevinh](https://itensor.discourse.group/u/kevinh)\
**Post date:** [January 9, 2023, 9:45am UTC](https://itensor.discourse.group/t/how-to-use-itensorinfinitemps-to-build-a-2d-model/582/1 "2023-01-09T09:45:42Z")

</div>

Hi，ITensor:

In the ITensorInfiniteMPS.jl , some examples of 1D models are provided, which are very useful. However, there seems to be no example for how to build a 2D model. If I want to use ITensorInfiniteMPS to build a `haldane model`, what are the differences between the 1D model and 2D model? Can ITensor provide a relatively simple example code to tell beginners how to do this?

Thanks for your help！

---

<div class="post-metadata">

**Author:** ![andrewkhardy](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/andrewkhardy/32/439_2.png) [@andrewkhardy](https://itensor.discourse.group/u/andrewkhardy)\
**Post date:** [February 6, 2024, 3:59pm UTC](https://itensor.discourse.group/t/how-to-use-itensorinfinitemps-to-build-a-2d-model/582/2 "2024-02-06T15:59:16Z")

</div>

Hi @kevinh here is a 2D example [of the Heisenberg model](https://github.com/ITensor/ITensorInfiniteMPS.jl/blob/27fd437b38acc5331900d4e857a054adf5a6d864/examples/vumps/vumps_2d_heisenberg.jl). Pay attention to the `width` parameter
