Skip to content

Is there a modify_params_after_update? #91

Answered by goerz
guruvamsi-policharla asked this question in Q&A
Discussion options

You must be logged in to vote

There is not, but you can "inject code" for most use cases due to the fact that the propagate routine that you pass to optimize_pulses is under your control. Specifically, you have direct read/write access to both the propagated state and the Hamiltonian/Liouvillian.

The two specific use cases that I've come across are:

Both of these are very straightforward to do inside a custom propagate routine.

You could conceivably extend the scope of what propagate has access to with some Python trickery (closures), e.g. to give it access to the …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by guruvamsi-policharla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #89 on February 09, 2021 17:16.