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

Improve tensor class (depends on: #268) #269

Closed s-mandra closed 4 years ago

s-mandra commented 4 years ago

Copy/Move constructors and copy/move assignment operators are now consistent with their function. Now, the following code:

std::vector<std::vector<Tensor>> tensors(...);
[...]
auto copy_tensors = tensors;

works without segmentation fault.