Skip to content

using different form of cost function instead of fidelity #99

Answered by goerz
Leeseok-628 asked this question in Q&A
Discussion options

You must be logged in to vote

From a technical perspective, the only thing required for a new functional is to define a function that evaluates ∂J/∂⟨ϕₖ| and that you can pass as chi_constructor to the optimize_pulses routine, as outlined in the documentation of krotov.functionals.

I would also point out that J_T_hs / chis_hs is already defined and should cover your first case. For the second case of the expectation value, you'll have to write your own function, but it should be fairly straightforward to calculate the χ-states exactly analogous to the calculation shown in the chis_hs docstring.

If you find the matrix calculus notation unsettling, ∂J/∂⟨ϕₖ| is just shorthand for a Wirtinger derivative, but calculating it…

Replies: 4 comments 19 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
19 replies
@goerz
Comment options

@Leeseok-628
Comment options

@goerz
Comment options

@Leeseok-628
Comment options

@goerz
Comment options

Answer selected by Leeseok-628
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #98 on November 16, 2021 02:50.