# Adding a field to Hamiltonian for TEBD gates

**URL:** <https://itensor.discourse.group/t/adding-a-field-to-hamiltonian-for-tebd-gates/364>\
**Category:** ITensor Julia Questions\
**Created:** [August 24, 2022, 8:27pm UTC](https://itensor.discourse.group/t/adding-a-field-to-hamiltonian-for-tebd-gates/364 "2022-08-24T20:27:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![miles](https://yyz2.discourse-cdn.com/free1/user_avatar/itensor.discourse.group/miles/32/6_2.png) [@miles](https://itensor.discourse.group/u/miles)\
**Post date:** [August 24, 2022, 8:43pm UTC](https://itensor.discourse.group/t/adding-a-field-to-hamiltonian-for-tebd-gates/364/2 "2022-08-24T20:43:45Z")

</div>

Your approach of just including the field term on the left side of each bond, then also including the right-side field term on the last bond looks very reasonable to me.

If you aren’t getting the results you expect, I’d just suggest checking over all the details very carefull and trying limits like N=2 sites. It’s really good that you are comparing to ED.

When you say the results don’t match ED, are they very different or just a little bit different?

---

_[View the full topic](https://itensor.discourse.group/t/adding-a-field-to-hamiltonian-for-tebd-gates/364)._
