QuantumBFS / YaoQASM.jl

Bidirectional transformation between Yao IR and QASM.
Apache License 2.0
11 stars 4 forks source link

QASM -> Yao IR #1

Open Roger-luo opened 5 years ago

Roger-luo commented 5 years ago

GiggleLiu commented 5 years ago

About Yao IR, we should probably first define basic blocks to remove "redundant" information in representation, then any circuit can be flatten to these basic blocks. e.g. we can first flatten a block to basic blocks like

Basic block types should include

This will make it much easier for compiling, any comments?

Roger-luo commented 5 years ago

yes, that's what I think as well. And I think in most cases we only need PutBlock since Kron can be composition of PutBlock, since QASM is mainly just putting gates at given position, this would be straight forward.

thautwarm commented 5 years ago

Done except for barrier, reset and measure. Waiting for Liu to provide correspoinding Yao APIs.