google / qhbm-library

Quantum Hamiltonian-Based Models built on TensorFlow Quantum
https://qhbm-library.readthedocs.io/en/latest/
Apache License 2.0
41 stars 15 forks source link

Investigate tfq.from_tensor usage of .numpy() #129

Open zaqqwerty opened 2 years ago

zaqqwerty commented 2 years ago

The immediate cause of error in #128 is that tfq.from_tensor() tries to call .numpy() internally. Can TFQ be patched to not attempt to call .numpy()?