We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1221328 commit 21c197aCopy full SHA for 21c197a
qctrlopencontrols/dynamic_decoupling_sequences/dynamic_decoupling_sequence.py
@@ -531,9 +531,4 @@ def _check_valid_operation(
531
rabi_rotation_index = set(np.where(rabi_rotations > 0.0)[0])
532
detuning_rotation_index = set(np.where(detuning_rotations > 0.0)[0])
533
534
- check_common_index = rabi_rotation_index.intersection(detuning_rotation_index)
535
-
536
- if check_common_index:
537
- return False
538
539
- return True
+ return not rabi_rotation_index.intersection(detuning_rotation_index)
0 commit comments