qiskit/crates/pyext
Matthew Treinish bc10f8e41b
Cleanup python submodules in rust code (#14063)
This commit cleans up the submodule usage in our rust extension. We
shouldn't be using the pymodule attribute for submodules. This also
cleans up the submodule in the basis translator which was unnecessarily
two layers deep and also duplicated in the init file.
2025-03-20 23:29:26 +00:00
..
src Cleanup python submodules in rust code (#14063) 2025-03-20 23:29:26 +00:00
Cargo.toml Embed C API into Python extension (#13934) 2025-03-06 10:22:47 +00:00
README.md Refactor Rust crates to build a single extension module (#12134) 2024-04-17 19:52:07 +00:00

README.md

qiskit-pyext

This is the Rust crate that actually builds the qiskit._accelerate Python extension module.

See the README at the crates top level for more information on the structure. Any self-contained submodule crates (e.g. qasm2) can define their own pymodule, but they should compile only as an rlib, and this crate should then build them into the top-level qiskit._accelerate. This module is also responsible for rewrapping all of the bits-and-pieces parts of crates/accerelate into the qiskit._accelerate extension module.