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

generalize contraction code #19

Closed 95-martin-orion closed 5 years ago

95-martin-orion commented 5 years ago

In order for qflex to support arbitrary circuit layouts, we need to write a generic version of the contraction code which can take contraction details (i.e., ordering and cuts) as input.

95-martin-orion commented 5 years ago

On a similar note, we should be able to take the "qubits_off" grid as input as well - either as a bitstring or a boolean array.

95-martin-orion commented 5 years ago

PR #27 will resolve this, more or less. There's still room for changes to how users provide input, but that can be tracked in a separate issue.

95-martin-orion commented 5 years ago

As of #30 this is complete - all circuit details can be provided through config files, and the main binary is completely generic.