-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use retworkx for CouplingMap #5183
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
39ec74c
WIP: Use retworkx for CouplingMap
mtreinish 3540355
DNM: Install retworkx from source
mtreinish 665bb84
DNM: Add retworkx custom branch to travis
mtreinish be14661
Fix draw() copy paste error
mtreinish ffd500e
Fix typo
mtreinish 7086c0a
DNK: Add source retworkx to docs build
mtreinish 64ebd2b
Fix lint
mtreinish f995dc3
Use graph_distance_matrix instead of floyd warshall
mtreinish a7ad519
Merge branch 'master' into test-rx
mtreinish fcdd03d
DNM also add retworkx from source for image test job
mtreinish a8d10e1
Merge branch 'master' into test-rx
mtreinish 569b1fa
Merge branch 'master' into test-rx
mtreinish 1d28041
Use Gnm random function from retworkx in token swapper tests
mtreinish f64315f
Merge branch 'master' into test-rx
mtreinish a5e8ca8
Remove nx import from token swapper tests
mtreinish 8499ffd
Fix lint
mtreinish 31ae819
Merge branch 'master' into test-rx
mtreinish da99fa5
Merge branch 'master' into test-rx
mtreinish 22f565c
Remove install from git from CI config since retworkx 0.6.0 is released
mtreinish 77e2a90
Fix api call
mtreinish 5d29b57
Use retworkx generators where possible for constructors
mtreinish 2393949
Remvoe source install from travis config
mtreinish e4ca28c
Bump version in setup.py too
mtreinish ae916bc
Merge branch 'master' into test-rx
mtreinish 042d2f2
Use extend_from_edge_list for from_full
mtreinish 37d9fe0
Merge branch 'master' into test-rx
mtreinish 1ce4f8f
Merge branch 'master' into test-rx
mtreinish 7a2ab3a
Update qiskit/transpiler/coupling.py
mtreinish 8538497
Merge branch 'master' into test-rx
mtreinish 3c5557b
Merge branch 'master' into test-rx
mtreinish bd0297e
Merge branch 'master' into test-rx
mtreinish 67c9b46
Use edge_list() return and has_edge() in sabre
mtreinish e03b56b
Merge branch 'master' into test-rx
mtreinish 7b9f704
Merge branch 'master' into test-rx
mtreinish 79eec8d
Merge branch 'master' into test-rx
mtreinish 1b5857e
Merge branch 'master' into test-rx
mtreinish 53c739e
Fix issue in layout_transformation pass
mtreinish b3a4cdc
Merge branch 'master' into test-rx
mtreinish b722db7
Merge branch 'master' into test-rx
Cryoris 808c647
Update qiskit/transpiler/passes/routing/algorithms/token_swapper.py
mtreinish 3265ba3
Merge branch 'master' into test-rx
mtreinish b6304ea
Fix Lint
mtreinish 6c38480
Merge branch 'master' into test-rx
Cryoris 7af8f86
Merge branch 'master' into test-rx
kdk 4da7ae6
Merge branch 'master' into test-rx
mtreinish 3643a49
Merge branch 'master' into test-rx
mergify[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the difference to
extend_from_edge_list
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extend_from_edge_list()
will add nodes to the graph if there is a node index in the edge tuple that doesn't exist. Whileadd_edges_from_no_data()
will error if there is an index in the edge tuple that doesn't exist.https://retworkx.readthedocs.io/en/stable/stubs/retworkx.PyGraph.extend_from_edge_list.html#retworkx.PyGraph.extend_from_edge_list