Skip to content

Commit 21c197a

Browse files
authored
misc: Minor tweak of private function (#166)
1 parent 1221328 commit 21c197a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

qctrlopencontrols/dynamic_decoupling_sequences/dynamic_decoupling_sequence.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -531,9 +531,4 @@ def _check_valid_operation(
531531
rabi_rotation_index = set(np.where(rabi_rotations > 0.0)[0])
532532
detuning_rotation_index = set(np.where(detuning_rotations > 0.0)[0])
533533

534-
check_common_index = rabi_rotation_index.intersection(detuning_rotation_index)
535-
536-
if check_common_index:
537-
return False
538-
539-
return True
534+
return not rabi_rotation_index.intersection(detuning_rotation_index)

0 commit comments

Comments
 (0)