Skip to content
This repository has been archived by the owner on Dec 18, 2021. It is now read-only.

allow complex parameter for TE #58

Merged
merged 2 commits into from
Jul 19, 2019
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
2 changes: 1 addition & 1 deletion src/primitive/time_evolution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ cache_key(te::TimeEvolution) = (te.dt, cache_key(te.H))
# parametric interface
niparams(::Type{<:TimeEvolution}) = 1
getiparams(x::TimeEvolution) = x.dt
setiparams!(r::TimeEvolution, param::Real) = (r.dt = param; r)
setiparams!(r::TimeEvolution, param::Number) = (r.dt = param; r)

function Base.:(==)(lhs::TimeEvolution, rhs::TimeEvolution)
return lhs.H == rhs.H && lhs.dt == rhs.dt
Expand Down