Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid iterating over nodes in Split2QUnitaries if there are no unitar…
…ies (#13384) This commit adds a check to the start of the split_2q_unitaries rust function that is the core of the Split2QUnitaries transpiler pass to do a lookup if there are any `UnitaryGate` objects in the dag without iterating over the dag. The pass only will split unitary gates so we can avoid checking the name of each gate individually if we know there aren't any up front.
- Loading branch information