From ac3e6f40c83f9509583197b0840eb47ecbb1776f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 07:38:10 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/qibo/gates/abstract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qibo/gates/abstract.py b/src/qibo/gates/abstract.py index 6405b10dc3..6a59ade86c 100644 --- a/src/qibo/gates/abstract.py +++ b/src/qibo/gates/abstract.py @@ -204,7 +204,7 @@ def _find_repeated(qubits: Sequence[int]) -> int: def _check_control_target_overlap(self): """Checks that there are no qubits that are both target and controls.""" - control_and_target = self._control_qubits + self._target_qubits + control_and_target = self._control_qubits + self._target_qubits common = len(set(control_and_target)) != len(control_and_target) if common: raise_error(