JuliaQuantumControl / QuantumControl.jl

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

Make `chi` functions not-in-place #71

Closed goerz closed 2 months ago

goerz commented 2 months ago

The chi! functions previously used by GRAPE and Krotov are now simply chi do not act in-place. This is more general and easier to implement for the user, as it allows to use immutable structs for states

Note that in extreme performance-critical situations, one could still construct the χ-states in-place via a closure or functor.

See also https://github.com/JuliaQuantumControl/QuantumControlBase.jl/pull/85