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

`test_square_phasing_via_phase_gradient` data type mismatch #1069

Open mpharrigan opened 3 weeks ago

mpharrigan commented 3 weeks ago

I'm trying to find a minimal example of this, but flattening the bloq used in phasing_via_cost_function_test.test_square_phasing_via_phase_gradient causes a data type error:

E                   qualtran._infra.composite_bloq.BloqError: AddIntoPhaseGrad register dtypes are not consistent x: QFxp(4, 0) vs x: QFxp(4, 4).