Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gertian committed Oct 21, 2024
1 parent 1b075a1 commit 14d93a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/algorithms/grassmann.jl
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ end
function ManifoldPoint(state::Union{InfiniteMPS,FiniteMPS}, envs)
al_d = similar(state.AL)
@static if Defaults.parallelize_sites
g = fill(nothing, length(state)) #not typstable but this won't be a performance issue for now :)
g = Array{Any}(undef, length(state)) #not typstable but this won't be a performance issue for now :)
@sync for i in 1:length(state)
Threads.@spawn begin
al_d[i] = MPSKit.∂∂AC(i, state, envs.opp, envs) * state.AC[i]
Expand Down

0 comments on commit 14d93a4

Please sign in to comment.