## Problems with add_local_term and H.c

General discussions on the ideas behind the algorithm.
Fabio_Mendez
Posts: 3
Joined: 01 Feb 2022, 01:50

### Problems with add_local_term and H.c

Hi,
I'm trying to decrease the number of terms appearing in the Hamiltonian MPO by using H. c. in add_coupling_term. However, when I use plus_hc I always get an error. I have tried this with different models, and I get the same error. I provide an example below.
I have a ladder of SpinHalfFermions on a Chain lattice with the following hopping coupling terms:
This case works without any problem. However, when I change to:
IndexError: tuple index out of range
Am I doing something wrong?

F. P. M. Méndez-Cordoba.
Johannes
The index error indicates that you didn't actually set the option explicit_plus_hc=True, otherwise it would not have occured...