Skip to content

Commit

Permalink
add addtional optimisations to OL=2
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Dec 6, 2023
1 parent ff484f2 commit 35e6522
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pytket/extensions/iqm/backends/iqm.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
DefaultMappingPass,
DelayMeasures,
SimplifyInitial,
KAKDecomposition,
CliffordSimp,
)
from pytket.predicates import (
ConnectivityPredicate,
Expand Down Expand Up @@ -180,6 +182,10 @@ def default_compilation_pass(self, optimisation_level: int = 1) -> BasePass:
passes.append(FullPeepholeOptimise())
passes.append(DefaultMappingPass(self._arch))
passes.append(DelayMeasures())
if optimisation_level == 2:
passes.append(KAKDecomposition(allow_swaps=False))
passes.append(CliffordSimp(allow_swaps=False))
passes.append(SynthesiseTket())
passes.append(self.rebase_pass())
passes.append(RemoveRedundancies())
return SequencePass(passes)
Expand Down

0 comments on commit 35e6522

Please sign in to comment.