qiskit/crates/transpiler
Phalak 088570a63b
Port QubitProperties to Rust and integrate with Target module (#14306) (#14563)
* Implement QubitProperties struct and integrate with Target module

- Add QubitProperties struct with __repr__, __getstate__, and __setstate__ methods for Python interoperability.
- Export QubitProperties in target/mod.rs and update Target struct to support qubit_properties.
- Add tests for QubitProperties creation and integration with Target.

* Update imports and expose QubitProperties

* Remove failing QubitProperties test case from mod.rs

* Format Rust code in qubit_properties.rs and mod.rs

* Add test for QubitProperties creation with None fields

* Remove name="QubitProperties" from the macro call in qubit_properties.rs

Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>

* Move QubitProperties specific test cases to qubit_properties.rs, minor formatting fixes

* Replace PyObject with QubitProperties for qubit_properties field in Target

* Add tests for setting, getting, and validating qubit_properties in Target

* Remove Python implementation of QubitProperties from backend.py, update target.py to import from _accelerate.target, add signature to Rust implementation

* Fix imports and linting issues

* Revert changes made to QubitProperties imports in target.py and __init__.py, update import in generic_backend_v2.py

* Remove the PyResult wrapper from __getstate__ and __setstate__ in qubit_properties.rs

* Revert changes made to imports in generic_backend_v2.py and transpiler/__init__.py

* Fix: Revert changes in `__init__` file.

---------

Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com>
Co-authored-by: Raynel Sanchez <raynelfss@hotmail.com>
2025-06-17 15:51:25 +00:00
..
src Port QubitProperties to Rust and integrate with Target module (#14306) (#14563) 2025-06-17 15:51:25 +00:00
Cargo.toml Split out quantum-info and synthesis crates from accelerate (#14342) 2025-05-22 13:06:03 +00:00
README.md Split out separate qiskit-transpiler crate (#14286) 2025-05-09 13:49:46 +00:00

README.md

`qiskit-transpiler

The Rust-based transpiler functionality. It contains transpilation specific data models and transpiler functions for individual transpiler passes.

src/target module

This module defines the target model in Qiskit used for representing a compilation Target.

src/passes module

This module contains the transpiler pass implementations.