Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The topological sort key being used previously was not producing a consistent ordering based on the structure of the DAG. It was using the interner index as the tie-breaking sort key which is roughly insertion order based. This would lead to differing sort orders between isomorphic DAGs that were constructed differently. The sort order returned previously was also a bit odd, while still valid it just would traverse the DAG in an unexpected order. This commit fixes this by using the qubit indices as the keys instead of the interner index.
- Loading branch information