Skip to content

Commit

Permalink
allow complex parameter for TE (#58)
Browse files Browse the repository at this point in the history
* fix #57
  • Loading branch information
Roger-luo authored and GiggleLiu committed Jul 19, 2019
1 parent e8652c6 commit 6feb56b
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 6feb56b

Please sign in to comment.