ngnrsaa / qflex

Flexible Quantum Circuit Simulator (qFlex) implements an efficient tensor network, CPU-based simulator of large quantum circuits.
Apache License 2.0
96 stars 24 forks source link

Read inhomogeneous circuits #115

Closed benjaminvillalonga closed 4 years ago

benjaminvillalonga commented 4 years ago

Define functions to read circuit from file without assuming any structure in the circuits, apart from qubits only coupling to their neighbors. First, the full tensor network of the circuit is formed. Later, it can be flattenned and give the right bond dimensions between all neighbors.

benjaminvillalonga commented 4 years ago

This will fix #97.

benjaminvillalonga commented 4 years ago

Still working on it.

alexandrupaler commented 4 years ago

Do you need help. Can I help?

benjaminvillalonga commented 4 years ago

Sure. Just sent you an invite on hangouts to chat.

benjaminvillalonga commented 4 years ago

I will leave the depth specification as it is right now. It is useful for figuring out the scratch space allocated for reading the circuit. Changing the behavior with depth will take more time. For the moment, circuits are read fully, without stopping at a particular depth cycle.

s-mandra commented 4 years ago

Allow me few checks before merging. Thanks! :)

95-martin-orion commented 4 years ago

Allow me few checks before merging. Thanks! :)

Sorry about that! I read too quickly and thought Ben posted this. Let me know if an undo is needed.