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

Create `ApplyLthBloq` as a simple SELECT oracle #1107

Open charlesyuan314 opened 2 days ago

charlesyuan314 commented 2 days ago

This bloq provides a simple way to coherently index into a list of bloqs that have identical signature and all THRU registers. Unlike the more specialized Select oracles that are currently available, it makes no additional assumptions on the behavior of these bloqs and deduces necessary register sizes automatically.

This bloq essentially implements ApplyL from #721. It will be used to implement linear combinations of block encodings.