Skip to content

Commit

Permalink
fix sparse conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang committed Oct 11, 2024
1 parent 3505eb0 commit edeef97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/evolution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function HEOMsolve(
flush(stdout)
end
sol = solve(prob, solver)
ADOs_list = map(ρvec -> ADOs(Vector(ρvec), M.dims, M.N, M.parity), sol.u)
ADOs_list = map(ρvec -> ADOs(sparse(Vector(ρvec)), M.dims, M.N, M.parity), sol.u)

# save ADOs to file
if filename != ""
Expand Down
2 changes: 1 addition & 1 deletion src/steadystate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function steadystate(
flush(stdout)
end

return ADOs(Vector(sol.u), M.dims, M.N, M.parity)
return ADOs(sparse(Vector(sol.u)), M.dims, M.N, M.parity)
end

@doc raw"""
Expand Down

0 comments on commit edeef97

Please sign in to comment.