Types of functionals J_T #112
-
I'm wondering why fidelity for density matrices is not included in the objective functional listed in the package. It seems to me at the moment the reason is because |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
This package is definitely "bring your own functional". You can use matrix calculus to obtain an analytic derivative and implement that; or you can try to use automatic differentiation (AD) to have the computer calculate it for you, see Quantum 6, 871 (2022). In Python, Jax might be appropriate for AD. I haven't tried Jax myself, but I hear good things. The Julia version of this package has support for automatic differentiation built in, so there, it should be sufficient to implement just |
Beta Was this translation helpful? Give feedback.
This package is definitely "bring your own functional".
You can use matrix calculus to obtain an analytic derivative and implement that; or you can try to use automatic differentiation (AD) to have the computer calculate it for you, see Quantum 6, 871 (2022). In Python, Jax might be appropriate for AD. I haven't tried Jax myself, but I hear good things.
The Julia version of this package has support for automatic differentiation built in, so there, it should be sufficient to implement just
J_T
, and the optimization will calculate the gradient automatically. The Zygote library that does the AD for Julia isn't always completely reliable though, so I strongly recommend testing the AD-gradient…