Skip to content

Commit

Permalink
One more fix in the indexing
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Aug 13, 2024
1 parent 217a02d commit 075bf62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/contractions/ctmrg_contractions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ Apply bottom projector to southwest corner and south edge.
function renormalize_bottom_corner((row, col), envs::CTMRGEnv, projectors)
C_southwest = envs.corners[SOUTHWEST, row, _prev(col, end)]
E_south = envs.edges[SOUTH, row, col]
P_bottom = projectors[1][_prev(row, end), col]
P_bottom = projectors[1][row, col]
return @autoopt @tensor corner[χ_in; χ_out] :=
E_south[χ_in D1 D2; χ1] * C_southwest[χ1; χ2] * P_bottom[χ2 D1 D2; χ_out]
end
Expand All @@ -292,7 +292,7 @@ Apply top projector to northwest corner and north edge.
function renormalize_top_corner((row, col), envs::CTMRGEnv, projectors)
C_northwest = envs.corners[NORTHWEST, row, _prev(col, end)]
E_north = envs.edges[NORTH, row, col]
P_top = projectors[2][row, col]
P_top = projectors[2][_next(row, end), col]
return @autoopt @tensor corner[χ_in; χ_out] :=
P_top[χ_in; χ1 D1 D2] * C_northwest[χ1; χ2] * E_north[χ2 D1 D2; χ_out]
end
Expand Down

0 comments on commit 075bf62

Please sign in to comment.