Skip to content

Commit

Permalink
formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
Gertian committed Oct 15, 2024
1 parent 7d1fb78 commit da3e94f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/algorithms/grassmann.jl
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ end
Retract a left-canonical finite MPS along Grassmann tangent `g` by distance `alpha`.
"""
function retract(x::ManifoldPoint{<:FiniteMPS}, g, alpha)
#TODO : support parralelize_sites
#TODO : support parralelize_sites.
state = x.state
envs = x.envs

Expand All @@ -247,13 +247,13 @@ function transport!(h, x, g, alpha, xp)
@sync for i in 1:length(h)
Threads.@spawn begin
h[i] = PrecGrad(Grassmann.transport!(h[i].Pg, x.state.AL[i], g[i].Pg, alpha,
xp.state.AL[i]))
xp.state.AL[i]))
end
end
else
for i in 1:length(h)
h[i] = PrecGrad(Grassmann.transport!(h[i].Pg, x.state.AL[i], g[i].Pg, alpha,
xp.state.AL[i]))
xp.state.AL[i]))
end
end
return h
Expand Down

0 comments on commit da3e94f

Please sign in to comment.