Skip to content

Commit

Permalink
fix threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacfomg committed Dec 13, 2023
1 parent 2f29f45 commit e9b74f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/qibolab/instruments/zhinst.py
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,10 @@ def sweep_recursion(self, qubits, couplers, exp, exp_calib, exp_options):
HARDWARE: Allows big scans for one qubit at a time
SOFTWARE: Allows to scan several qubits at the same by uploading the waveforms, limited memory
"""
threshold = pulse_duration * n_qubits * len(sweeper.values)
threshold = 1000

# Hardcoded value, it needs to be benchmarked to get a fancier estimate
# I assume a dependance on threshold = pulse_duration * n_qubits * len(sweeper.values)
threshold = 50
if len(zhsweeper.values) > threshold:
mod_type = lo.ModulationType.HARDWARE
else:
Expand Down

0 comments on commit e9b74f0

Please sign in to comment.