Skip to content
This repository was archived by the owner on Sep 4, 2024. It is now read-only.

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.

Both chi and J_T can now have an optional keyword argument tau (instead of the previous improperly implemented and unicode τ). Whether or not tau should be passed to these functions is automatically detected.

@goerz goerz added the breaking PRs that break compatibility label 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.

Both chi and J_T can now have an optional keyword argument `tau`
(instead of the previous improperly implemented and unicode `τ`).
Whether or not `tau` should be passed to these functions is
automatically detected.

Add the `taus` and `taus!` functions.
goerz added a commit to JuliaQuantumControl/QuantumControl.jl that referenced this pull request 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
@goerz goerz merged commit 27702b5 into master Jul 17, 2024
@goerz goerz deleted the immutable-chi branch July 17, 2024 13:50
goerz added a commit to JuliaQuantumControl/TwoQubitWeylChamber.jl that referenced this pull request Jul 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

breaking PRs that break compatibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants