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

Fix for projection bug #25

Closed 95-martin-orion closed 5 years ago

95-martin-orion commented 5 years ago

Previously, projecting to a tensor with a different size than the expected result pulled data from an incorrect location when populating the output. This PR fixes that issue and adds a test to verify it.