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

Use composition instead of inheritance for ContractionOperations #31

Closed 95-martin-orion closed 5 years ago

95-martin-orion commented 5 years ago

Using inheritance for ContractionOperations resulted in lots of clunky dynamic_cast calls. Having different operation types as members of ContractionOperation should be much cleaner.