From b4a112df4900d7c83488b0f7c108e2e1d63dceca Mon Sep 17 00:00:00 2001 From: CalMacCQ <93673602+CalMacCQ@users.noreply.github.com> Date: Thu, 7 Nov 2024 14:28:23 +0000 Subject: [PATCH] fix a typo --- pytket/extensions/qiskit/qiskit_convert.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytket/extensions/qiskit/qiskit_convert.py b/pytket/extensions/qiskit/qiskit_convert.py index 27095c50..eb3c5078 100644 --- a/pytket/extensions/qiskit/qiskit_convert.py +++ b/pytket/extensions/qiskit/qiskit_convert.py @@ -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()) @@ -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."