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

Allocate reading scratch space based on contraction, not on depth. #162

Closed benjaminvillalonga closed 4 years ago

benjaminvillalonga commented 4 years ago

Right now scratch space used in reading-from-file functions is allocated based on the depth of the circuit. It should be allocated based on the max rank of each qubit before contraction with neighbors.