File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
src/qibolab/_core/instruments/keysight Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 9
9
from qibolab ._core .sweeper import ParallelSweepers , Parameter
10
10
11
11
NS_TO_S = 1e-9
12
+ SUPPORTED_CHANNEL_SWEEPERS = [Parameter .frequency ]
13
+ SUPPORTED_PULSE_SWEEPERS = [
14
+ Parameter .amplitude ,
15
+ Parameter .duration ,
16
+ Parameter .relative_phase ,
17
+ ]
12
18
13
19
14
20
def process_sweepers (
@@ -50,18 +56,14 @@ def process_sweepers(
50
56
name = f"V{ idx } _{ idx2 } " , value = sweeper .values [0 ], dtype = float
51
57
)
52
58
53
- if sweeper .parameter is Parameter . frequency :
59
+ if sweeper .parameter in SUPPORTED_CHANNEL_SWEEPERS :
54
60
sweeper_channel_map .update (
55
61
{channel_id : qcs_variable for channel_id in sweeper .channels }
56
62
)
57
63
# Readout frequency is not supported with hardware sweeping
58
64
if not probe_channel_ids .isdisjoint (sweeper .channels ):
59
65
hardware_sweeping = False
60
- elif sweeper .parameter in [
61
- Parameter .amplitude ,
62
- Parameter .duration ,
63
- Parameter .relative_phase ,
64
- ]:
66
+ elif sweeper .parameter in SUPPORTED_PULSE_SWEEPERS :
65
67
# Duration is not supported with hardware sweeping
66
68
if sweeper .parameter is Parameter .duration :
67
69
hardware_sweeping = False
You can’t perform that action at this time.
0 commit comments