ReCirq icon indicating copy to clipboard operation
ReCirq copied to clipboard

Change type comparisons to use numbers package.

Open mhucka opened this issue 3 months ago • 3 comments

Is your feature request related to a use case or problem?

In a comment on PR #430, @pavoljuhas suggested changing a certain type comparison to use numbers.Real. This seems like a good idea, and I would extend it further to say we should check other places in the code where similar changes should be made. This issue is to track the work on this goal.

What solution or approach do you envision?

No response

How urgent is this for you?

None

mhucka avatar Sep 18 '25 22:09 mhucka

Hi @mhucka

Can I pick this issue?

I see that we need to change to number.Real for np.float32 values based on comment i PR #430 by Pavol. Should it be changed only for recirq/fermi_hubbard/parameters.py?

RahilJain1366 avatar Nov 20 '25 00:11 RahilJain1366

I see that we need to change to number.Real for np.float32 values based on comment i PR #430 by Pavol. Should it be changed only for recirq/fermi_hubbard/parameters.py?

We haven't looked at it closely, but I think it's unlikely to be required only in parameters.py. It would require going through the code more broadly.

mhucka avatar Nov 22 '25 21:11 mhucka

Hi @mhucka

Rasied a PR with details about the changes. Could you please review and let me know.

https://github.com/quantumlib/ReCirq/pull/445

RahilJain1366 avatar Nov 23 '25 17:11 RahilJain1366