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
132 stars 35 forks source link

Bitlength of "keep" and "alt" probabilities in coherent alias sampling #1071

Open christoph-riverlane opened 3 weeks ago

christoph-riverlane commented 3 weeks ago

Qualtran computes this as log_2(ε/n): https://github.com/quantumlib/Qualtran/blob/0d8793e8a7f415d6ec1e003756422d72ac81a3a1/qualtran/linalg/lcu_util.py#L161 and does not make any reference to λ (the 1-norm / subnormalisation).

However, this doesn't match the papers:

Tagging @tanujkhattar whom I briefly discussed this inconsistency with at the Qualtran workshop last Friday

tanujkhattar commented 3 weeks ago

@anurudhp Since you are working on extending state preparation alias sampling, can you take this one as well?

anurudhp commented 3 weeks ago

Let me take a look