Skip to content

Enable CommutativeOptimization in the default transpiler pipeline #15452

@Cryoris

Description

@Cryoris

We recently added the CommutativeOptimization pass to supersede both CommutativeCancellation and CommutativeInverseCancellation. From @alexanderivrii's benchmarks it seems to provide better results at similar runtime (and we might be able to boost runtime further), so we should replace CommutativeCancellation in optimization levels 1-3 with the new CommutativeOptimization pass.

Given that this is a central change, we should do this early in the 2.4 dev cycle to have sufficient time to test the impact.

Metadata

Metadata

Projects

Status

Ready

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions