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 sample method #165

Open zaqqwerty opened 2 years ago

zaqqwerty commented 2 years ago

Currently the sample method of QHBM will only accept None or the Hamiltonian class. Generalize to tensors of PauliSums once the issue is resolved in TFQ: https://github.com/tensorflow/quantum/issues/665