Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic boundary conditions #194

Open
HumpyBlumpy opened this issue Feb 29, 2024 · 1 comment
Open

Periodic boundary conditions #194

HumpyBlumpy opened this issue Feb 29, 2024 · 1 comment

Comments

@HumpyBlumpy
Copy link

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?

@ChristophHotter
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants