Note that the unit test image that includes heralds is broken, since it will need the proposed refactoring to display correctly and serves as an extra test case to validate the fix.
Things to review:
Whether the proposed implementation of Barrier does not downgrade anything in the evaluation/simulation of a circuit.
The choice of @ as an extra operator to add circuit elements separated by barriers.
Here is my proposal implementation of barriers.
https://github.com/Quandela/Perceval/issues/275
Note that the unit test image that includes heralds is broken, since it will need the proposed refactoring to display correctly and serves as an extra test case to validate the fix.
Things to review:
Barrier
does not downgrade anything in the evaluation/simulation of a circuit.