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

Added simple simulator (based on Cirq). #104

Closed s-mandra closed 4 years ago

s-mandra commented 4 years ago

Useful to have few more automated tests.

alexandrupaler commented 4 years ago

my PR includes also a simulator and methods for reading circuits and validating them.

I am using an amplitudes simulator. I generate circuits qflex circuits, translate them into qflex instructions (using a cirq device), and validate circuits.

for layouts i also have a class, and orderings will be based on Orion's heuristic.

alexandrupaler commented 4 years ago

@dagart @s-mandra a merge into master for python+cirq is planned for these days. i will use the code you wrote. i will also add tests.

s-mandra commented 4 years ago

@dagart @s-mandra a merge into master for python+cirq is planned for these days. i will use the code you wrote. i will also add tests.

Thanks, that would be great! Since we are making many changes to the core of qFlex, I wanted a simple simulator to just check that nothing broke up. I won't push this PR to master (feel free to use anything I pushed to this branch).

s-mandra commented 4 years ago

Integrated in #120 as test.