Skip to content

Split Target / PyTarget - #15857

Draft
raynelfss wants to merge 17 commits into
Qiskit:mainfrom
raynelfss:target-split-new
Draft

Split Target / PyTarget#15857
raynelfss wants to merge 17 commits into
Qiskit:mainfrom
raynelfss:target-split-new

Conversation

@raynelfss

@raynelfss raynelfss commented Mar 23, 2026

Copy link
Copy Markdown
Contributor

Pre-Requisites

Summary

This PR splits the rust-native Target struct from the PyO3 class PyTarget.

Details and comments

This is the first part of the effort to split the Python version of Target from the Rust version, this PR does the internal split between PyTarget (PyO3) and Target (Rust).

The next step is to prevent the Python target from subclassing the Rust version of it. A better approach might end up just moving all of the functionality to the PyO3 struct since they are so intertwined.

To-do list:

  • Clean up code
  • Decide on whether to move the rest of functionality to PyO3.
  • Update PR message.

@raynelfss raynelfss added this to the 2.5.0 milestone Mar 23, 2026
@raynelfss raynelfss added on hold Can not fix yet Changelog: None Do not include in the GitHub Release changelog. mod: transpiler Issues and PRs related to Transpiler labels Mar 24, 2026
raynelfss added a commit to raynelfss/qiskit that referenced this pull request Apr 27, 2026
Based on top of Qiskit#15857
The folllowing commits are an exploratory implementation of `RWLock` and `Arc` for `Target`.
raynelfss added a commit to raynelfss/qiskit that referenced this pull request Apr 28, 2026
Based on top of Qiskit#15857
The folllowing commits are an exploratory implementation of `RWLock` and `Arc` for `Target`.
raynelfss added a commit to raynelfss/qiskit that referenced this pull request Apr 28, 2026
Based on top of Qiskit#15857
The folllowing commits are an exploratory implementation of `RWLock` and `Arc` for `Target`.
raynelfss added a commit to raynelfss/qiskit that referenced this pull request Apr 28, 2026
Based on top of Qiskit#15857
The folllowing commits are an exploratory implementation of `RWLock` and `Arc` for `Target`.
@jakelishman jakelishman moved this from Ready to At risk in Qiskit 2.5 May 21, 2026
@raynelfss raynelfss modified the milestones: 2.5.0, 2.6.0 Jun 12, 2026
@raynelfss raynelfss moved this from Ready to In development in Qiskit 2.6 Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changelog: None Do not include in the GitHub Release changelog. mod: transpiler Issues and PRs related to Transpiler on hold Can not fix yet

Projects

Status: In development

Development

Successfully merging this pull request may close these issues.

3 participants