Repository navigation
Remove each bad edge once in _make_backend_cmap_pygraph - #757
Open
Abdur Rahman Hatim (hat-im) wants to merge 1 commit into
Open
Abdur Rahman Hatim (hat-im) wants to merge 1 commit into
Abdur Rahman Hatim (hat-im) wants to merge 1 commit into
Conversation
Abdur Rahman Hatim (hat-im)
marked this pull request as ready for review
November 19, 2026 10:19
This branch has not been deployed
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.
Fixes #756
On
ibm_fez, which has bothczandrzz, coupler (32, 33) is over the error threshold for both gates, so the old loop removed it twice, causinggenerate_lucj_pass_managerto crash withNoEdgeBetweenNodes._make_backend_cmap_pygraphnow removes a bad edge only once. For each edge it checks the gates in turn and removes the edge at the first one over the threshold.The new test,
test_edge_bad_for_every_two_qubit_gate, gives one edge of a heavy-hexGenericBackendV2an error of 1.0 for bothczandrzz. It fails before this change and passes after; the rest oftests/python/qiskitpasses too.