Qualtran icon indicating copy to clipboard operation
Qualtran copied to clipboard

Incompatible dtypes in `QFTPhaseGradient`

Open anurudhp opened this issue 6 months ago • 0 comments

QFTPhaseGradient passes QFxp to register result of PlusEqualsProduct, whose type is QUInt. This isn't caught by the dtype checker for the bloq example.

https://github.com/quantumlib/Qualtran/blob/174b5493b36a14af3bf0b2c004411386ef972a61/qualtran/bloqs/qft/qft_phase_gradient.py#L82-L97

More discussion: https://github.com/quantumlib/Qualtran/pull/1197#pullrequestreview-2203127729

Related: #1069

anurudhp avatar Jul 27 '24 08:07 anurudhp