forked from Qiskit/rustworkx
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add random_layout function and Pos2DMapping
This commit adds a new function random_layout() which is used to generate a random layout for a graph that can be used in visualization. This is necessary for building a matplotlib drawer (issue Qiskit#298 and a first draft of the implementation Qiskit#304). To make the function more efficient it also adds a new custom return type Pos2DMapping which is used to build an imutable readonly dict compatible result container for the output type from this function. Related to Qiskit#280
- Loading branch information
Showing
7 changed files
with
578 additions
and
3 deletions.
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
Oops, something went wrong.