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

Revisit usage of relative imports in python tests #167

Open 95-martin-orion opened 5 years ago

95-martin-orion commented 5 years ago

Relative imports in Python can result in a number of non-obvious issues - most notably, the inability to run certain binaries except from a specific directory. If possible, we should convert the relative imports used in tests into absolute imports.

95-martin-orion commented 4 years ago

This appears to be the root cause of #219, and also causes unexpected behavior when manually running tests (i.e. with python3 -m pytest) as noted in #221. We should resolve this before the next release.