This PR lets YaoIR sink the quantum statements in each SSA block if the quantum statement is permutable with the following classical statements. This groups quantum statements into a larger contiguous statement which can be found in the new field quantum_blocks. The quantum blocks can then be further transformed as a whole pure quantum circuit component in the hybrid program (e.g circuit simplification pass)
This PR lets YaoIR sink the quantum statements in each SSA block if the quantum statement is permutable with the following classical statements. This groups quantum statements into a larger contiguous statement which can be found in the new field
quantum_blocks
. The quantum blocks can then be further transformed as a whole pure quantum circuit component in the hybrid program (e.g circuit simplification pass)