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
173 stars 40 forks source link

LPRSInterimPrep unitary test assumes an incorrect qubit ordering #1068

Closed mpharrigan closed 1 month ago

mpharrigan commented 3 months ago

get_interim_resource_state seems to order its elements so that anc is the first bit. In the signature of the bloq, anc is second. I think this works by accident with the existing tests because cirq orders qubits alphabetically