QuantumBFS / YaoBlocksQASM.jl

YaoBlocks interface for OpenQASM
MIT License
2 stars 3 forks source link

QASM is not IBM Q specific #7

Open Roger-luo opened 3 years ago

Roger-luo commented 3 years ago

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).

Sov-trotter commented 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.

Roger-luo commented 3 years ago

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.