Skip to content

qiskit-aer: Add version 0.17.2 - #2262

Merged
luhenry merged 3 commits into
mainfrom
qiskit-aer
Sep 24, 2026
Merged

luhenry merged 3 commits into
mainfrom
qiskit-aer

Conversation

@luhenry

@luhenry luhenry commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Compiles Qiskit's C++ statevector/density-matrix simulators (pybind11 bindings) linked against OpenBLAS. Upstream publishes no riscv64 wheel.

Mirrors upstream's deploy.yml wheel-build job and pyproject.toml's [tool.cibuildwheel] table.

Differs from upstream

  • dnf install openblas-devel replaces the manylinux2014 yum before-all - Rocky 10 image, no EPEL needed
  • CIBW_MANYLINUX_RISCV64_IMAGE override - riscv64 has no manylinux2014 image

Matrix: cp312/cp313/cp314 only - qiskit, a hard runtime and test dependency, has no free-threaded wheel on the registry

Testing

  • same as upstream

License: Wheel bundles libopenblas (BSD-3-Clause) and, via auditwheel, the image's libgfortran (GPL-2.0-or-later); neither licence ships upstream, so both are added.

CPU-only default build: CUDA/ROCm/MPI are all opt-in in upstream's own
CMakeLists/setup.py, and the only x86 SIMD (AVX2) is compiled out entirely
on non-x86_64 hosts rather than emulated. Mirrors the cvxopt/scs
openblas-devel pattern for BLAS. cp314t is dropped: qiskit, a hard runtime
and test dependency, only has a cp310-abi3 wheel on the registry, which a
free-threaded interpreter cannot install.
luhenry added a commit that referenced this pull request Sep 24, 2026
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-09-24 06:33 UTC

Conan 1.x (pinned by pyproject.toml's conan<2.0.0) has no riscv64 in its
settings.yml, and its arch autodetection matches "riscv64" against the
generic "64 in machine" fallback and misreports arch=x86_64. That makes
its CMakeToolchain generator inject an x86-only -m64 flag when it builds
fmt/8.0.1 from source, which the riscv64 GCC toolchain rejects. Pre-seed
Conan's settings.yml and default profile with the real arch before CMake
invokes it, so it never runs autodetection.
…'s settings.yml

The first fix only added riscv64 to settings.yml's arch: enum, but Conan
1.x validates arch_build/arch_target against two SEPARATE enum lists in
the same file - the default profile sets arch_build=riscv64, which still
failed validation ('Invalid setting riscv64 is not a valid arch_build
value') even after the arch fix let the build get further than before.
Verified locally against the real Conan 1.66.0 settings.yml that patching
all three resolves it.
@luhenry
luhenry merged commit 1fa1a25 into main Sep 24, 2026
12 checks passed
@luhenry
luhenry deleted the qiskit-aer branch September 24, 2026 06:01
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