Skip to content

Commit

Permalink
Fix related issues with correlation functions
Browse files Browse the repository at this point in the history
  • Loading branch information
albertomercurio committed Mar 26, 2024
1 parent d9b8908 commit 2cca3f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/time_evolution/mesolve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function _save_func_mesolve(integrator)
# to reshape u to make it a matrix, but I reshape the e_ops once.

ρ = integrator.u
_expect = op -> dot(ρ, op)
_expect = op -> dot(op, ρ)
@. expvals[:, progr.counter+1] = _expect(e_ops)
end
next!(progr)
Expand Down Expand Up @@ -74,7 +74,7 @@ function mesolveProblem(H::QuantumObject{MT1,HOpType},

progr = ODEProgress(0)
expvals = Array{ComplexF64}(undef, length(e_ops), length(t_l))
e_ops2 = @. mat2vec(get_data(e_ops))
e_ops2 = @. mat2vec(adjoint(get_data(e_ops)))

p = (L = L, progr = progr, Hdims = H.dims, e_ops = e_ops2, expvals = expvals, H_t = H_t, is_empty_e_ops = isempty(e_ops), params...)

Expand Down

0 comments on commit 2cca3f2

Please sign in to comment.