Skip to content

Commit

Permalink
Fix typos, add **
Browse files Browse the repository at this point in the history
  • Loading branch information
sjdilkes committed Aug 10, 2023
1 parent cda7058 commit d80c65f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pytket/pytket/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def rebase_pass(self) -> BasePass:

@abstractmethod
def default_compilation_pass(
self, optimisation_level: int = 2, **kwarfs
self, optimisation_level: int = 2, **kwargs
) -> BasePass:
"""
A suggested compilation pass that will will, if possible, produce an equivalent
Expand Down Expand Up @@ -181,7 +181,9 @@ def get_compiled_circuit(
"""
return_circuit = circuit.copy()
self.default_compilation_pass(optimisation_level, kwargs).apply(return_circuit)
self.default_compilation_pass(optimisation_level, **kwargs).apply(
return_circuit
)
return return_circuit

def get_compiled_circuits(
Expand Down Expand Up @@ -218,7 +220,7 @@ def get_compiled_circuits(
:rtype: List[Circuit]
"""
return [
self.get_compiled_circuit(c, optimisation_level, kwargs) for c in circuits
self.get_compiled_circuit(c, optimisation_level, **kwargs) for c in circuits
]

@property
Expand Down

0 comments on commit d80c65f

Please sign in to comment.