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

Make CSWAP a bloq of its own in BiQubitsMixer #1121

Open ncrubin opened 1 month ago

ncrubin commented 1 month ago

The cswap implementation

https://github.com/quantumlib/Qualtran/blob/3f325ce16ab44890a9e2150338e11cee0a4a8225/qualtran/bloqs/arithmetic/comparison.py#L258

should be a block of its own

mpharrigan commented 1 month ago

we of course already have https://github.com/quantumlib/Qualtran/blob/95141395bdb1384a08b87874bba1977ddc28568a/qualtran/bloqs/basic_gates/swap.py#L107