Skip to content

Commit

Permalink
make suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Dec 6, 2023
1 parent 179dd21 commit ad36eab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pytket/extensions/pyquil/backends/forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,8 @@ def default_compilation_pass(self, optimisation_level: int = 2) -> BasePass:
passlist.append(SynthesiseTket())
passlist.append(self.rebase_pass())
if optimisation_level > 0:
passlist.extend(
[
EulerAngleReduction(OpType.Rx, OpType.Rz),
]
passlist.append(
EulerAngleReduction(OpType.Rx, OpType.Rz),
)
return SequencePass(passlist)

Expand All @@ -193,6 +191,7 @@ def process_circuits(
Supported kwargs:
* `seed`
* `postprocess`: apply end-of-circuit simplifications and classical
postprocessing to improve fidelity of results (bool, default False)
* `simplify_initial`: apply the pytket ``SimplifyInitial`` pass to improve
Expand Down

0 comments on commit ad36eab

Please sign in to comment.