@@ -174,9 +174,7 @@ def new_ramsey_sequence(
174
174
<https://link.aps.org/doi/10.1103/PhysRev.78.695>`_
175
175
"""
176
176
check_arguments (
177
- duration > 0 ,
178
- "Sequence duration must be positive." ,
179
- {"duration" : duration },
177
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
180
178
)
181
179
182
180
if pre_post_rotation :
@@ -233,9 +231,7 @@ def new_spin_echo_sequence(
233
231
"""
234
232
235
233
check_arguments (
236
- duration > 0 ,
237
- "Sequence duration must be positive." ,
238
- {"duration" : duration },
234
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
239
235
)
240
236
241
237
offsets = np .array ([duration / 2.0 ])
@@ -308,9 +304,7 @@ def new_carr_purcell_sequence(
308
304
"""
309
305
310
306
check_arguments (
311
- duration > 0 ,
312
- "Sequence duration must be positive." ,
313
- {"duration" : duration },
307
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
314
308
)
315
309
check_arguments (
316
310
offset_count >= 1 ,
@@ -393,9 +387,7 @@ def new_cpmg_sequence(
393
387
"""
394
388
395
389
check_arguments (
396
- duration > 0 ,
397
- "Sequence duration must be positive." ,
398
- {"duration" : duration },
390
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
399
391
)
400
392
check_arguments (
401
393
offset_count >= 1 ,
@@ -474,9 +466,7 @@ def new_uhrig_sequence(
474
466
"""
475
467
476
468
check_arguments (
477
- duration > 0 ,
478
- "Sequence duration must be positive." ,
479
- {"duration" : duration },
469
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
480
470
)
481
471
check_arguments (
482
472
offset_count >= 1 ,
@@ -555,9 +545,7 @@ def new_periodic_sequence(
555
545
"""
556
546
557
547
check_arguments (
558
- duration > 0 ,
559
- "Sequence duration must be positve." ,
560
- {"duration" : duration },
548
+ duration > 0 , "Sequence duration must be positve." , {"duration" : duration }
561
549
)
562
550
check_arguments (
563
551
offset_count >= 1 ,
@@ -660,9 +648,7 @@ def new_walsh_sequence(
660
648
"""
661
649
662
650
check_arguments (
663
- duration > 0 ,
664
- "Sequence duration must be positive." ,
665
- {"duration" : duration },
651
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
666
652
)
667
653
check_arguments (
668
654
1 <= paley_order <= 2000 ,
@@ -782,9 +768,7 @@ def new_quadratic_sequence(
782
768
"""
783
769
784
770
check_arguments (
785
- duration > 0 ,
786
- "Sequence duration must be positive." ,
787
- {"duration" : duration },
771
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
788
772
)
789
773
check_arguments (
790
774
inner_offset_count >= 1 ,
@@ -904,9 +888,7 @@ def new_x_concatenated_sequence(
904
888
"""
905
889
906
890
check_arguments (
907
- duration > 0 ,
908
- "Sequence duration must be positive." ,
909
- {"duration" : duration },
891
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
910
892
)
911
893
check_arguments (
912
894
concatenation_order >= 1 ,
@@ -1009,9 +991,7 @@ def new_xy_concatenated_sequence(
1009
991
"""
1010
992
1011
993
check_arguments (
1012
- duration > 0 ,
1013
- "Sequence duration must be positive." ,
1014
- {"duration" : duration },
994
+ duration > 0 , "Sequence duration must be positive." , {"duration" : duration }
1015
995
)
1016
996
check_arguments (
1017
997
concatenation_order >= 1 ,
@@ -1072,7 +1052,6 @@ def new_xy_concatenated_sequence(
1072
1052
1073
1053
carr_idx = 0
1074
1054
while rabi_idx < len (rabi_offsets ) and azimuthal_idx < len (azimuthal_offsets ):
1075
-
1076
1055
if rabi_offsets [rabi_idx ] < azimuthal_offsets [azimuthal_idx ]:
1077
1056
rabi_rotations [carr_idx ] = np .pi
1078
1057
offsets [carr_idx ] = rabi_offsets [rabi_idx ]
@@ -1085,7 +1064,6 @@ def new_xy_concatenated_sequence(
1085
1064
carr_idx += 1
1086
1065
1087
1066
if rabi_idx < len (rabi_offsets ):
1088
-
1089
1067
while rabi_idx < len (rabi_offsets ):
1090
1068
rabi_rotations [carr_idx ] = np .pi
1091
1069
offsets [carr_idx ] = rabi_offsets [rabi_idx ]
0 commit comments