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

Encapsulate cirq.PauliSum in Hamiltonian #164

Open zaqqwerty opened 2 years ago

zaqqwerty commented 2 years ago

Currently consumers of hamiltonians have to keep track of whether they are handed a tensor of cirq.PauliSum or a Hamiltonian class. Instead, the Hamiltonian class should abstract this away.