@@ -174,9 +174,7 @@ def new_ramsey_sequence(
174174 <https://link.aps.org/doi/10.1103/PhysRev.78.695>`_
175175 """
176176 check_arguments (
177- duration > 0 ,
178- "Sequence duration must be positive." ,
179- {"duration" : duration },
177+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
180178 )
181179
182180 if pre_post_rotation :
@@ -233,9 +231,7 @@ def new_spin_echo_sequence(
233231 """
234232
235233 check_arguments (
236- duration > 0 ,
237- "Sequence duration must be positive." ,
238- {"duration" : duration },
234+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
239235 )
240236
241237 offsets = np .array ([duration / 2.0 ])
@@ -308,9 +304,7 @@ def new_carr_purcell_sequence(
308304 """
309305
310306 check_arguments (
311- duration > 0 ,
312- "Sequence duration must be positive." ,
313- {"duration" : duration },
307+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
314308 )
315309 check_arguments (
316310 offset_count >= 1 ,
@@ -393,9 +387,7 @@ def new_cpmg_sequence(
393387 """
394388
395389 check_arguments (
396- duration > 0 ,
397- "Sequence duration must be positive." ,
398- {"duration" : duration },
390+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
399391 )
400392 check_arguments (
401393 offset_count >= 1 ,
@@ -474,9 +466,7 @@ def new_uhrig_sequence(
474466 """
475467
476468 check_arguments (
477- duration > 0 ,
478- "Sequence duration must be positive." ,
479- {"duration" : duration },
469+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
480470 )
481471 check_arguments (
482472 offset_count >= 1 ,
@@ -555,9 +545,7 @@ def new_periodic_sequence(
555545 """
556546
557547 check_arguments (
558- duration > 0 ,
559- "Sequence duration must be positve." ,
560- {"duration" : duration },
548+ duration > 0 , "Sequence duration must be positve." , {"duration" : duration }
561549 )
562550 check_arguments (
563551 offset_count >= 1 ,
@@ -660,9 +648,7 @@ def new_walsh_sequence(
660648 """
661649
662650 check_arguments (
663- duration > 0 ,
664- "Sequence duration must be positive." ,
665- {"duration" : duration },
651+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
666652 )
667653 check_arguments (
668654 1 <= paley_order <= 2000 ,
@@ -782,9 +768,7 @@ def new_quadratic_sequence(
782768 """
783769
784770 check_arguments (
785- duration > 0 ,
786- "Sequence duration must be positive." ,
787- {"duration" : duration },
771+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
788772 )
789773 check_arguments (
790774 inner_offset_count >= 1 ,
@@ -904,9 +888,7 @@ def new_x_concatenated_sequence(
904888 """
905889
906890 check_arguments (
907- duration > 0 ,
908- "Sequence duration must be positive." ,
909- {"duration" : duration },
891+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
910892 )
911893 check_arguments (
912894 concatenation_order >= 1 ,
@@ -1009,9 +991,7 @@ def new_xy_concatenated_sequence(
1009991 """
1010992
1011993 check_arguments (
1012- duration > 0 ,
1013- "Sequence duration must be positive." ,
1014- {"duration" : duration },
994+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
1015995 )
1016996 check_arguments (
1017997 concatenation_order >= 1 ,
@@ -1072,7 +1052,6 @@ def new_xy_concatenated_sequence(
10721052
10731053 carr_idx = 0
10741054 while rabi_idx < len (rabi_offsets ) and azimuthal_idx < len (azimuthal_offsets ):
1075-
10761055 if rabi_offsets [rabi_idx ] < azimuthal_offsets [azimuthal_idx ]:
10771056 rabi_rotations [carr_idx ] = np .pi
10781057 offsets [carr_idx ] = rabi_offsets [rabi_idx ]
@@ -1085,7 +1064,6 @@ def new_xy_concatenated_sequence(
10851064 carr_idx += 1
10861065
10871066 if rabi_idx < len (rabi_offsets ):
1088-
10891067 while rabi_idx < len (rabi_offsets ):
10901068 rabi_rotations [carr_idx ] = np .pi
10911069 offsets [carr_idx ] = rabi_offsets [rabi_idx ]
0 commit comments