Conversation
|
Nice! I think it might make a very popular application of the |
Cool O.o |
b44214c to
b4e2548
Compare
d07f20a to
7b89146
Compare
|
Often, it is needed to give not just diagonal terms, i.e. coefficients in front of |X|^2, but also interference terms, X_i X_j* It matches the Hessian with a factor 1/2. So, autodiff gives a general approach to obtain the matrix. https://github.com/mmikhasenko/PhotoAmbiguities.jl/blob/master/src/experiments.jl#L10-L19 |
Hi @mmikhasenko, here's an example of how to 'hack' the dynamics builder so that it produces a symbol instead of an expression for the dynamics. As you said, this can then be done to collect the angular functions or one can use the same expression to insert dynamics lineshapes later on.
It's just a sketch, but you can see what it looks like in the
collect-wigners.ipynbnotebook.