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

Only allocate as much space as needed for 2D grid. #238

Closed 95-martin-orion closed 4 years ago

95-martin-orion commented 4 years ago

Fixes #162. scratch_2D and scratch_3D are now destroyed when they go out of scope; no explicit delete is required.