Open Roger-luo opened 3 years ago
I think I might have fixed this(just forgot to remove the comments). I used the IBMQ Circuit Composer(and the generated qasm code) to verify that. But just in case there are more, we can surely have them as well.
OK, as a note here, the other case is we will need to provide a qelib1.inc
free version of the target, which means you will only generate U
and CNOT
, but since YaoBlocks can't inline user defined gates, we prob just don't this for this case.
https://github.com/QuantumBFS/YaoBlocksQASM.jl/blob/259839abe3faeb1cf7039e1f6a884ec1ac53b1f3/src/qasm.jl#L72
QASM itself is not IBM Q specific, it supports more operations, let's also support conversion from some other gates in YaoBlocks (open a PR, and I can help you on this).