Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generalized evaluate, substitute #36

Merged
merged 1 commit into from
Nov 18, 2022
Merged

Add generalized evaluate, substitute #36

merged 1 commit into from
Nov 18, 2022

Conversation

goerz
Copy link
Member

@goerz goerz commented Nov 17, 2022

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.

@goerz goerz added the breaking PRs that break compatibility label Nov 17, 2022
Rename `eval_controls` → `evaluate` 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_controls` → `substitute`. This can now
substitute a wide range of objects. One application this opens up is to
substitute controls with parametrized amplitudes.
@goerz goerz force-pushed the evaluate-substitute branch from fce42d5 to 5d0fd16 Compare November 17, 2022 19:45
goerz added a commit to JuliaQuantumControl/QuantumControlBase.jl that referenced this pull request Nov 17, 2022
goerz added a commit to JuliaQuantumControl/Krotov.jl that referenced this pull request Nov 17, 2022
goerz added a commit to JuliaQuantumControl/GRAPE.jl that referenced this pull request Nov 17, 2022
goerz added a commit to JuliaQuantumControl/QuantumControl.jl that referenced this pull request Nov 17, 2022
@goerz goerz merged commit 5d0fd16 into master Nov 18, 2022
goerz added a commit to JuliaQuantumControl/QuantumControlBase.jl that referenced this pull request Nov 18, 2022
goerz added a commit to JuliaQuantumControl/Krotov.jl that referenced this pull request Nov 18, 2022
goerz added a commit to JuliaQuantumControl/GRAPE.jl that referenced this pull request Nov 18, 2022
goerz added a commit to JuliaQuantumControl/QuantumControl.jl that referenced this pull request Nov 18, 2022
@goerz goerz deleted the evaluate-substitute branch January 25, 2023 23:40
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.

1 participant