JuliaQuantumControl / QuantumPropagators.jl

Propagators for Quantum Dynamics and Optimal Control
https://juliaquantumcontrol.github.io/QuantumPropagators.jl/
MIT License
16 stars 4 forks source link

`flattop` shape with `t_rise=0` can give `NaN` #42

Closed goerz closed 1 year ago

goerz commented 1 year ago
julia> using QuantumControl.Shapes: flattop

julia> flattop(0; T=10.0, t_rise=0.0, func=:blackman)
NaN

julia> flattop(10.0; T=10.0, t_rise=0.0, func=:blackman)
NaN

julia> flattop(0; T=10.0, t_rise=0.0, func=:sinsq)
NaN

julia> flattop(10.0; T=10.0, t_rise=0.0, func=:sinsq)
NaN