Skip to content

Commit

Permalink
fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
CalMacCQ committed Nov 7, 2024
1 parent 07c307e commit b4a112d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytket/extensions/qiskit/qiskit_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def append_tk_command_to_qiskit(
supported_gate_rebase = AutoRebase(_protected_tket_gates)


def _has_implicit_perumtation(circ: Circuit) -> bool:
def _has_implicit_permutation(circ: Circuit) -> bool:
impl_dict: dict[Qubit, Qubit] = circ.implicit_qubit_permutation()
return tuple(impl_dict.keys()) != tuple(impl_dict.values())

Expand All @@ -880,7 +880,7 @@ def tk_to_qiskit(
if replace_implicit_swaps:
tkc.replace_implicit_wire_swaps()

if _has_implicit_perumtation(tkcirc) and not replace_implicit_swaps:
if _has_implicit_permutation(tkcirc) and not replace_implicit_swaps:
warnings.warn(
"The pytket Circuit contains implicit qubit permutations"
+ " which aren't handled by default."
Expand Down

0 comments on commit b4a112d

Please sign in to comment.