Skip to content

Commit

Permalink
Update src/qibo/gates/abstract.py
Browse files Browse the repository at this point in the history
Co-authored-by: Renato Mello <[email protected]>
  • Loading branch information
BrunoLiegiBastonLiegi and renatomello authored Mar 19, 2024
1 parent f8e9bfe commit 51a2f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qibo/gates/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ 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_target = self._target_qubits + self._control_qubits
common = len(set(control_target)) != len(control_target)
control_and_target = self._control_qubits + self._target_qubits
common = len(set(control_and_target)) != len(control_and_target)
if common:
raise_error(
ValueError,
Expand Down

0 comments on commit 51a2f95

Please sign in to comment.