Skip to content

Commit

Permalink
fix: updated err string for check_control_target_overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Mar 19, 2024
1 parent ac3e6f4 commit 5552d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qibo/gates/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _check_control_target_overlap(self):
if common:
raise_error(
ValueError,
f"{common} qubits are both targets and controls "
f"{set(self._target_qubits) & set(self._control_qubits)} qubits are both targets and controls "
+ f"for gate {self.__class__.__name__}.",
)

Expand Down

0 comments on commit 5552d06

Please sign in to comment.