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

Remove scratch #187

Open benjaminvillalonga opened 4 years ago

benjaminvillalonga commented 4 years ago

Scratch is only using when reordering a tensor. Investigate fast allocation/deallocation of scratch by each tensor whenever needed. This will eliminate the awkwardness of passing scratch around and make it easier to write wrappers for other tensor libraries and use them with qFlex.