You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was reading the Symbolic-Sums-and-Indices section of the docs, but I could not find there whether I can define a model on a lattice with periodic boundary conditions.
For example, for a simple tight-binding model, I wanted to to do something like that ham = ∑(a(j)*a(j+1)',j)+∑(a(j)'*a(j+1),j)
This does not work. Is there another way of achieving this?
The text was updated successfully, but these errors were encountered:
Sorry for the late reply.
Currently, it is not possible to write a Hamiltonian with shifted indices.
You can define a Hamiltonian with a double-sum as e.g. in the cavity antiresonance example. This includes all coupling terms, you can then just set the unnecessary ones to zero.
Hello,
I was reading the Symbolic-Sums-and-Indices section of the docs, but I could not find there whether I can define a model on a lattice with periodic boundary conditions.
For example, for a simple tight-binding model, I wanted to to do something like that
ham = ∑(a(j)*a(j+1)',j)+∑(a(j)'*a(j+1),j)
This does not work. Is there another way of achieving this?
The text was updated successfully, but these errors were encountered: