Skip to content

cast numpy.bool to bool in emu-base#247

Merged
a-quelle-pasqal merged 2 commits into
mainfrom
aq/bool_issue
Jun 19, 2026
Merged

cast numpy.bool to bool in emu-base#247
a-quelle-pasqal merged 2 commits into
mainfrom
aq/bool_issue

Conversation

@a-quelle-pasqal

Copy link
Copy Markdown
Contributor

older versions of torch dont handle numpy.bool correctly. Bad atoms are currently specified as a numpy.bool. In this MR, I cast them to normal bool in PulserAdapter so we don't have to worry about the types in the emulators.

@murogrande murogrande left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small improvement

Comment thread emu_base/pulser_adapter.py Outdated
Comment thread CITATION.cff Outdated

@elmerhej elmerhej left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@a-quelle-pasqal a-quelle-pasqal merged commit 560676e into main Jun 19, 2026
12 checks passed
@a-quelle-pasqal a-quelle-pasqal deleted the aq/bool_issue branch June 19, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants