Closed bcdonovan closed 7 months ago
Could some or all of this be eliminated by doing QUIRGen more intelligently instead of having to search through and merge later?
Yes and I have started to experiment with updating QUIRGen but it will be more work and take more effort than adding this pattern. My suggestion would be to add this pattern and the update QUIRGen in the future.
Adds a CircuitBarrierCircuitPattern to the MergeCircuits Pass to allow:
To be merged into a circuit
quir.call_circuit
with the merge circuit containing the barrier(s). Adding this pass enables more efficient pulse scheduling.The overall pass has been refactored to factor out a number of helper functions.