# [Julia]using a periodic boundary condition

+1 vote

Hi Miles

I want do time evolution in PBC with two sites Hamiltonian . For example, a chain made of 12 sites whose first site is related to the 12. I can only find code example in "Make a 2D Hamiltonian for DMRG" that uses
lattice = square_lattice(Nx, Ny; yperiodic = false)
If I imitate the code from "MPS Time Evolution" in document with my own Hamiltonian, how can I add PBC?

selected by