JuliaQuantumControl / QuantumPropagators.jl

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

Add generalized `evaluate`, `substitute` #36

Closed goerz closed 1 year ago

goerz commented 1 year ago

Rename eval_controlsevaluate and generalize such that evaluate evaluates arbitrary time-dependent objects to static objects. The vals_dict parameter for plugging in values for the controls is now an optional keyword argument. Without it, the controls are simply evaluated for the point in time specified by the positional arguments.

Also, rename substitute_controlssubstitute. This can now substitute a wide range of objects. One application this opens up is to substitute controls with parametrized amplitudes.