quantumlib / Qualtran

Qᴜᴀʟᴛʀᴀɴ is a Python library for expressing and analyzing Fault Tolerant Quantum algorithms.
https://qualtran.readthedocs.io/en/latest/
Apache License 2.0
176 stars 44 forks source link

0.5.0 backwards compatibility #1435

Closed rroodll closed 3 weeks ago

rroodll commented 3 weeks ago

I'm trying to update my application to use 0.5.0, but seem to be missing a number of methods. Most of which I found moved, but the following, can you point my to where they were moved and how they were replaced? Thanks

qualtran.cirq_interop.bit_tools qualtran.linalg.lcu_util.preprocess_lcu_coefficients_for_reversible_sampling

preprocess_lcu_coefficients_for_reversible_sampling is actually mentioned as a reference in a comment in image

tanujkhattar commented 3 weeks ago

qualtran.linalg.lcu_util.preprocess_lcu_coefficients_for_reversible_sampling is renamed to qualtran.linalg.lcu_util.preprocess_probabilities_for_reversible_sampling

rroodll commented 3 weeks ago

I was hoping you'd say that! Thanks.

were qualtran.cirq_interop.bit_tools removed?

tanujkhattar commented 3 weeks ago

Yes, but the bit tools functionality is now moved to the data types. So each quantum data type knows how to convert itself to / from bits. See the QDType.to_bits and QDType.from_bits methods

rroodll commented 3 weeks ago

Thanks