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 25 forks source link

Clarify usage of order_func(). #41

Closed 95-martin-orion closed 5 years ago

95-martin-orion commented 5 years ago

It isn't immediately clear from context what this function does or how to use it, so I've made the function comment more verbose.

On a related note, the error messages for this function could use clarification as well - "Pair not found" isn't a particularly meaningful error without additional context.