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

Add new style QHBMs #125

Closed zaqqwerty closed 2 years ago

zaqqwerty commented 2 years ago

Add initial model and inference features for Modular Hamiltonians.

The theme of library version 0.3 is separating models and inference engines. For QHBMs, the actual model is just a Hamiltonian in a diagonalized representation. Density matrices are obtained via inference on this model. Part of #110

zaqqwerty commented 2 years ago

general question: do any of these need graph mode tests here, or will they have coverage elsewhere?

Added a tf.function test to the circuits method.