Skip to content

Types of functionals J_T #112

Answered by goerz
kayelderson asked this question in Q&A
Jan 11, 2023 · 1 comments · 10 replies
Discussion options

You must be logged in to vote

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…

Replies: 1 comment 10 replies

Comment options

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

@Basilewitsch
Comment options

@kayelderson
Comment options

@goerz
Comment options

@kayelderson
Comment options

Answer selected by kayelderson
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