Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add rust representation of control flow op #13271

Open
Tracked by #13264
mtreinish opened this issue Oct 3, 2024 · 0 comments
Open
Tracked by #13264

Add rust representation of control flow op #13271

mtreinish opened this issue Oct 3, 2024 · 0 comments
Labels
performance Rust This PR or issue is related to Rust code in the repository
Milestone

Comments

@mtreinish
Copy link
Member

Right now the ControlFlowOp class and it's subclasses for each type of control flow Qiskit supports (for, while, if/else, switch) are defined solely in Python. We should move the definition of these to rust so the python side is creating and interacting with a rust owned structure. This will enable us to deal with control flow, including to recurse into the operations in rust without needing python.

This weakly depends on #12966 as we'll need to figure out the best way to expand PackedOperation to support this and the pattern we establish in #12966 will inform this.

@mtreinish mtreinish added performance Rust This PR or issue is related to Rust code in the repository labels Oct 3, 2024
@mtreinish mtreinish added this to the 2.0.0 milestone Oct 3, 2024
@1ucian0 1ucian0 modified the milestones: 2.0.0, 2.1.0 Feb 6, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
performance Rust This PR or issue is related to Rust code in the repository
Projects
None yet
Development

No branches or pull requests

2 participants