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
optimize
mutates guess pulses
#28
Comments
goerz
added a commit
to JuliaQuantumControl/QuantumControlTestUtils.jl
that referenced
this issue
Mar 17, 2023
This is useful for testing the resolution of JuliaQuantumControl/Krotov.jl#28
goerz
added a commit
to JuliaQuantumControl/QuantumControlTestUtils.jl
that referenced
this issue
Mar 17, 2023
This is useful for testing the resolution of JuliaQuantumControl/Krotov.jl#28
goerz
added a commit
to JuliaQuantumControl/QuantumPropagators.jl
that referenced
this issue
Mar 17, 2023
The `discretize` and `discretize_on_midpoints` routines should not return the exact input array if the input is already correctly discretized. At least, they should make a copy. Doing so avoid the problem described in JuliaQuantumControl/Krotov.jl#28
goerz
added a commit
to JuliaQuantumControl/QuantumPropagators.jl
that referenced
this issue
Mar 17, 2023
The `discretize` and `discretize_on_midpoints` routines should not return the exact input array if the input is already correctly discretized. At least, they should make a copy. Doing so avoid the problem described in JuliaQuantumControl/Krotov.jl#28
goerz
added a commit
to JuliaQuantumControl/GRAPE.jl
that referenced
this issue
Mar 18, 2023
Specifically, test that the optimization does not mutate guess pulses. See JuliaQuantumControl/Krotov.jl#28
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When the guess controls are actually pulses (vectors defined on the midpoint of the time grid), the optimization will mutate the original
objective.generator
. This happens because currently,disretize_on_midpoints
simply returns the input vector instead of a copy of the input vector.The text was updated successfully, but these errors were encountered: