Skip to content

stim: Add version 1.16.0 - #2351

Open
luhenry wants to merge 1 commit into
mainfrom
stim
Open

luhenry wants to merge 1 commit into
mainfrom
stim

Conversation

@luhenry

@luhenry luhenry commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

Compiles stim's C++ stabilizer simulator into pybind11 extensions (the portable 64-bit polyfill build, as on arm64). Upstream publishes no riscv64 wheel.

Mirrors upstream's ci.yml build_dist job.

Differs from upstream

  • Registry extra index and binary-only installs - cirq-core's test deps come from pypi.riseproject.dev.

Matrix: cp312/cp313/cp314 - upstream ships no free-threaded wheel.

Testing

  • same as upstream

License: OK

Patches

  • 0001-march-dummy-cpuid-on-riscv.patch - To upstream. march.pybind.cc includes x86-only <cpuid.h> on unrecognised targets, so the build fails; riscv64-only.

Build stim's riscv64 wheels from the v1.16.0 checkout with cibuildwheel,
mirroring upstream's ci.yml build_dist job (same test-requires and
test-command), narrowed to cp312/cp313/cp314 manylinux_riscv64.

stim's SIMD code is compile-time gated (__AVX2__/__SSE2__) with a portable
64-bit bitword polyfill, and setup.py already builds only _stim_polyfill on
non-x86. The one blocker is march.pybind.cc including x86-only <cpuid.h> on
any non-Windows target it doesn't recognise; the patch adds __riscv to the
existing dummied-out branch (aarch64/PPC) so detection returns "polyfill".
luhenry added a commit that referenced this pull request Sep 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://riseproject-dev.github.io/python-wheels/pr-preview/pr-2351/

Built to branch gh-pages at 2026-09-26 03:42 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

This branch has not been deployed

No deployments
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.

1 participant