Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions src/algorithms/approximate/vomps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -114,17 +114,16 @@ function localupdate_step!(
allocator = default_allocator(state.mps, scheduler)
tforeach(eachsite(state.mps); scheduler) do site
local AC, C
@sync begin
Threads.@spawn begin
tforeach(1:2; scheduler) do half
if isone(half)
AC = map(1:size(state.mps, 1)) do row
AC_projection(
CartesianIndex(row, site), state.mps, state.operator, state.envs;
it.backend, allocator
)
end
circshift!(AC, 1)
end
Threads.@spawn begin
else
C = map(1:size(state.mps, 1)) do row
C_projection(
CartesianIndex(row, site), state.mps, state.operator, state.envs;
Expand Down
Loading