JuliaQuantumControl / QuantumControl.jl

Julia Framework for Quantum Dynamics and Control
https://juliaquantumcontrol.github.io/QuantumControl.jl/
MIT License
47 stars 7 forks source link

`ParametrizedAmplitude` cannot be instantiated without shape #43

Closed goerz closed 1 year ago

goerz commented 1 year ago
julia> using QuantumControl.PulseParametrizations: SquareParametrization, ParametrizedAmplitude
julia> a = ParametrizedAmplitude(t->1.0; parametrization=SquareParametrization())
ERROR: A ParametrizedAmplitude control must either be a vector of values or a callable

The cause is a typo in the code (control being confused with shape)