ngnrsaa / qflex

Flexible Quantum Circuit Simulator (qFlex) implements an efficient tensor network, CPU-based simulator of large quantum circuits.
Apache License 2.0
97 stars 24 forks source link

Improve reordering tests #241

Closed alankao64 closed 4 years ago

alankao64 commented 4 years ago

Adding more tests cases for reordering of tensor indices.

alankao64 commented 4 years ago

Interesting...the visual representation of this contradicts my understanding of how left-reorder works. How is a left-reorder able to manipulate an index in the rightmost region?

From my understanding of what @benjaminvillalonga said, the left-reorder will check up to 8 indices from the left and if it can complete the reordering by doing a left move with those indices then it will do so.

95-martin-orion commented 4 years ago

...the left-reorder will check up to 8 indices from the left and if it can complete the reordering by doing a left move with those indices then it will do so.

Huh. In that case, I guess leave the test as-is, but update the comment with this explanation + updated section boundaries.