google / qhbm-library

Quantum Hamiltonian-Based Models built on TensorFlow Quantum
https://qhbm-library.readthedocs.io/en/latest/
Apache License 2.0
40 stars 15 forks source link

Derivative of EnergyInfer expectation method #146

Closed zaqqwerty closed 2 years ago

zaqqwerty commented 2 years ago

Consider an EBM defined by a differentiable energy function. Then consider the expectation value of some function against this EBM. Then there is a special formula for the derivative, see equation A3 in the QHBM paper appendix.