I cannot modefiy my programma, in which the Hamiltonian is time-dependent, then the “timeevolution.master” show some bug. I cannot run. Can someone help me?

```
using QuantumOptics
using PyPlot
using SpecialFunctions
b = NLevelBasis(4)
s0 = nlevelstate(b,1)
s1 = nlevelstate(b,2)
sr = nlevelstate(b,3)
se = nlevelstate(b,4)
eye4 = identityoperator(b)
plus = (s0 + s1)/sqrt(2)
minus = (s0 - s1)/sqrt(2)
Omega = 2*pi*1*10^6
Urr = 2*pi*100*10^6
beta = 3
delta_0 = Urr
omega_0 = Urr/beta
alpha = 2.404825
delta = alpha*omega_0
time = pi/(Omega*besselj(2*beta,alpha))
psi_0 = tensor(s0,s1)
psi_f = tensor(s0,s1)
tlist = range(0, stop=time, length=1000)
function Hami(t)
detuning = delta_0*t + (2*delta*sin((omega_0*t)/2)^2)/omega_0
H1 = Omega/2*exp(1i*(-beta*pi+alpha+pi/2))*exp(-1i*detuning)*sr*dagger(s1) + dagger((Omega/2*exp(1i*(-beta*pi+alpha+pi/2))*exp(-1i*detuning)*sr*dagger(s1)))
H2 = Omega/2*exp(1i*(-beta*pi+alpha+pi/2))*exp(-1i*detuning)*sr*dagger(s1) + dagger((Omega/2*exp(1i*(-beta*pi+alpha+pi/2))*exp(-1i*detuning)*sr*dagger(s1)))
return tensor(H1, eye4) + tensor(eye4, H2) + Urr*tensor(sr*dagger(sr), sr*dagger(sr))
end
function calc_pops(psi, t, psi0=psi_0)
fidelity = abs(dagger(psi) * psi_f)^2
return fidelity
end
tout, pops = timeevolution.master(tlist, psi_0, Hami; fout=calc_pops)
p1 = [p[1] for p=pops]
p2 = [p[2] for p=pops]
p3 = [p[3] for p=pops]
figure(figsize=(6, 3))
plot(tout, p1, label="Initial ground state")
plot(tout, p2, "--", label="Excited state")
plot(tout, p3, label="Other ground state")
axis([0, tmax, 0, 1])
legend()
gcf()
```

the software VS code shows the error:

```
ERROR: MethodError: no method matching master(::StepRangeLen{…}, ::Operator{…}, ::typeof(Hami); fout::typeof(calc_pops))
Closest candidates are:
master(::Any, ::Ket, ::Any...; kwargs...)
@ QuantumOptics C:\Users\Simon\.julia\packages\QuantumOptics\9adUY\src\master.jl:228
master(::Any, ::Operator, ::SuperOperator; fout, kwargs...)
@ QuantumOptics C:\Users\Simon\.julia\packages\QuantumOptics\9adUY\src\master.jl:119
master(::Any, ::Operator, ::AbstractOperator, ::Any; rates, Jdagger, fout, kwargs...)
@ QuantumOptics C:\Users\Simon\.julia\packages\QuantumOptics\9adUY\src\master.jl:81
Stacktrace:
[1] master(tspan::StepRangeLen{…}, psi0::Ket{…}, args::Function; kwargs::@Kwargs{…})
@ QuantumOptics.timeevolution C:\Users\Simon\.julia\packages\QuantumOptics\9adUY\src\master.jl:228
[2] top-level scope
@ f:\optimze\using QuantumOptics.jl:69
Some type information was truncated. Use `show(err)` to see complete types
```