Beta version for support the translation from OpenQASM to OriginIR,
This translation is not direct currently. It is done via parsing the OpenQASM and then creating the quantum circuit using our own circuit_builder. As long as we can build the correct circuit, the Origin_IR string will be generated automatically.
The current version only supports H and CNOT. Apparently, in order to support a more general set of quantum operations, we need a new class 'qasm_line_parser', like OriginIR_Parser to do the same job as 'transform_line' currently in the qcircuit.py.
Beta version for support the translation from OpenQASM to OriginIR,
This translation is not direct currently. It is done via parsing the OpenQASM and then creating the quantum circuit using our own
circuit_builder
. As long as we can build the correct circuit, the Origin_IR string will be generated automatically.The current version only supports H and CNOT. Apparently, in order to support a more general set of quantum operations, we need a new class
'qasm_line_parser'
, like OriginIR_Parser to do the same job as'transform_line'
currently in theqcircuit.py
.