Agony5757 / QPanda-lite

A python-native version for pyqpanda. Simple, easy, and transparent.
Apache License 2.0
17 stars 12 forks source link

OpenQASM to OriginIR & analyze_circuit #15

Closed YunJ1e closed 11 months ago

YunJ1e commented 11 months ago

Beta version for support the translation from OpenQASM to OriginIR and its reverse(OPEN TO TEST), NOTE: now OriginIR <-> OpenQASM supposed to work in {H, X, Y, Z, RX, RY, RZ, CX, CZ} as test_barrier.py, but dagger not supported yet.

  1. Functions dealing with QASM to OriginIR are now in qasm_line_parser.py

  2. Now we support the h, x, y, z, rx, ry, rz, cx, cz, barrier.

  3. Rewrote the analyze_circuit in OriginIR_base_parser.

  4. Fixed Several bugs in control and dagger - with statements.

  5. Created a folder for testing in case we have errors like 4 again.