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

Generalize EnergyInfer expectation #169

Closed zaqqwerty closed 2 years ago

zaqqwerty commented 2 years ago

Enables expectation on functions with beyond-scalar outputs.

Resolves #161. See the new appendix A2 for details. This is to enable log partition function derivatives in #167