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 inverse to unique_bitstrings_with_counts #177

Closed zaqqwerty closed 2 years ago

zaqqwerty commented 2 years ago

Add inverse function to match unique_bitstrings_with_counts.

Part of #158. Allows bitstrings to be made unique, functions evaluated on the unique bitstrings, then the results expanded back to match inputs.

zaqqwerty commented 2 years ago

Maybe I could also shorten the names - unique and undo_unique?