Use rust-native error for DisjointLayout#16305
Open
raynelfss wants to merge 3 commits into
Open
Conversation
The following commits modify `DisjointLayout` to use rust-native errors throughout its pipeline, specifically on its `distribute_components` method. We implement the `DisjointLayoutError` enumeration which derives from `DAGError`; and implements two variants: `MultiQEncountered` for when the interaction graph finds a multiqubit operation; `MismatchedComponentSize` for when the circuit and the coupling map have components of differing sizes.
Collaborator
|
One or more of the following people are relevant to this code:
|
3 tasks
Cryoris
reviewed
May 28, 2026
Coverage Report for CI Build 26653406134Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage decreased (-0.1%) to 87.523%Details
Uncovered Changes
Coverage Regressions387 previously-covered lines in 11 files lost coverage.
Coverage Stats
💛 - Coveralls |
Co-authored-by: Julien Gacon <gaconju@gmail.com>
Cryoris
previously approved these changes
May 29, 2026
Cryoris
reviewed
May 29, 2026
Forgot to adjust the Py-conversion of the added text
12 tasks
Co-authored-by: Julien Gacon <gaconju@gmail.com>
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.
The following commits modify
DisjointLayoutto use rust-native errors throughout its pipeline, specifically on itsdistribute_componentsmethod.We implement the
DisjointLayoutErrorenumeration which derives fromDAGErrorand implements two variants:MultiQEncounteredfor when the interaction graph finds a multiqubit operation;MismatchedComponentSizefor when the circuit and the coupling map have components of differing sizes.AI/LLM disclosure