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

Let density matrix and fidelity utils accept QHBMs directly #194

Open zaqqwerty opened 2 years ago

zaqqwerty commented 2 years ago

Consider qhbmlib/inference/qhbm_utils.py. Currently, density_matrix and fidelity only accept Hamiltonian in their first argument. However, QHBM should be accepted too. This functionality can be added by accessing the input QHBM's hamiltonian attribute.

We have a developer workflow written to help users get started.