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

Add functionality to get several amplitudes for a single tensor network build. #263

Open benjaminvillalonga opened 4 years ago

benjaminvillalonga commented 4 years ago

In some cases the tensor network might take long compared to contracting it. In those cases, it makes sense to compute several amplitudes for a single build.

95-martin-orion commented 4 years ago

The only major blocker I see for this is that initial ordering of tensor indices (which uses the contraction ordering) is currently part of the flatten_grid_of_tensors operation. If we can separate those steps, it should be possible to reuse the grid for multiple contraction orderings.

s-mandra commented 4 years ago

See #267.