Split Target / PyTarget - #15857
Draft
raynelfss wants to merge 17 commits into
Draft
Conversation
raynelfss
force-pushed
the
target-split-new
branch
from
April 16, 2026 17:15
250593d to
a6442e1
Compare
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`.
3 tasks
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`.
- Add detailed docstrings with warnings about where not to use them.
…`qubit_properties` initializers.
Co-authored-by: Matthew Treinish <mtreinish@kortar.org>
The following commit removed `with_num_qubits()`, `with_qubit_properties()`. in favor of the fallible methods. Methods have been updated to use these additions.
- Remove duplicate methods in Python. - Revert changes to `Target` python class subclassing.
- Reduce import in `check_map`.
raynelfss
force-pushed
the
target-split-new
branch
from
June 11, 2026 13:59
d90798e to
ec3e5aa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pre-Requisites
Target#14308Targetmappings #15349Summary
This PR splits the rust-native
Targetstruct from thePyO3classPyTarget.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) andTarget(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: