diff --git a/ITensorGPU/Project.toml b/ITensorGPU/Project.toml index d562264749..6e9d3884ba 100644 --- a/ITensorGPU/Project.toml +++ b/ITensorGPU/Project.toml @@ -29,7 +29,7 @@ ITensors = "0.3.27" NDTensors = "0.1.47" SimpleTraits = "0.9.4" StaticArrays = "1.2.13" -Strided = "1.1.2" +Strided = "1.1.2, 2" TimerOutputs = "0.5.13" cuTENSOR = "1.0.1" julia = "1.6" 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