Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Perform BarrierBeforeFinalMeasurements analysis in paralle
With #13410 removing the non-threadsafe structure from our circuit representation we're now able to read and iterate over a DAGCircuit from multiple threads. This commit is the first small piece doing this, it moves the analysis portion of the BarrierBeforeFinalMeasurements pass to execure in parallel. The pass checks every node to ensure all it's decendents are either a measure or a barrier before reaching the end of the circuit. This commit iterates over all the nodes and does the check in parallel.
- Loading branch information