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
147 stars 39 forks source link

List of Arithmetic Bloqs which need decompositions #485

Open fdmalone opened 10 months ago

fdmalone commented 10 months ago

Square integers

Sum of Squares (integers)

Product (integers)

Scale integer by real number

Multiply two real numbers

Square real number

AddConstantMod

Greater Than

Greater Than Constant

Equals A constant

ToContiguousIndex

SignedIntegerToTwosComplement

fdmalone commented 10 months ago

Other relevant things:

390 #235 (inequality tests can be inverted with zero Toffoli cost using out of place adders)

tanujkhattar commented 7 months ago

SimpleAddConstant can be replaced with Figure 18 of https://arxiv.org/pdf/2007.07391.pdf