Skip to content

Conversation

@goerz
Copy link
Member

@goerz goerz commented Jul 17, 2024

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
JuliaQuantumControl/QuantumControlBase.jl#85

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
JuliaQuantumControl/QuantumControlBase.jl#85
@goerz goerz added the breaking PRs that break compatibility label Jul 17, 2024
@goerz goerz merged commit 3d65ebf into master Jul 17, 2024
@goerz goerz deleted the immutable-chi branch July 17, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking PRs that break compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants