diff --git a/ITensorGPU/Project.toml b/ITensorGPU/Project.toml index d562264749..656a821afc 100644 --- a/ITensorGPU/Project.toml +++ b/ITensorGPU/Project.toml @@ -21,7 +21,7 @@ cuTENSOR = "011b41b2-24ef-40a8-b3eb-fa098493e9e1" [compat] Adapt = "3.5" -CUDA = "4.0 - 4.0.1" +CUDA = "4.0 - 4.0.1, 4" Combinatorics = "1.0.2" Functors = "0.2, 0.3, 0.4" HDF5 = "0.15.7, 0.16" diff --git a/src/physics/lattices.jl b/src/physics/lattices.jl index 42280edc6a..54b3c635f6 100644 --- a/src/physics/lattices.jl +++ b/src/physics/lattices.jl @@ -86,7 +86,7 @@ function square_lattice(Nx::Int, Ny::Int; kwargs...)::Lattice latt[b += 1] = LatticeBond(n, n + 1, x, y, x, y + 1) end if yperiodic && y == 1 - latt[b += 1] = LatticeBond(n, n + Ny - 1, x, y, x, y + Ny) + latt[b += 1] = LatticeBond(n, n + Ny - 1, x, y, x, y + Ny - 1) end end end