Skip to content

Commit

Permalink
Set batch size for unrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
stavros11 committed Feb 15, 2024
1 parent d1c8c8a commit 7af1dee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qibolab/instruments/qm/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

from qibolab import AveragingMode
from qibolab.instruments.abstract import Controller
from qibolab.instruments.unrolling import batch_max_sequences
from qibolab.pulses import PulseType
from qibolab.sweeper import Parameter

Expand All @@ -22,6 +23,7 @@
OCTAVE_ADDRESS_OFFSET = 11000
"""Offset to be added to Octave addresses, because they must be 11xxx, where
xxx are the last three digits of the Octave IP address."""
MAX_BATCH_SIZE = 30


def declare_octaves(octaves, host, calibration_path=None):
Expand Down Expand Up @@ -363,4 +365,4 @@ def sweep(self, qubits, couplers, sequence, options, *sweepers):
return fetch_results(result, acquisitions)

def split_batches(self, sequences):
return [sequences]
return batch_max_sequences(sequences, MAX_BATCH_SIZE)

0 comments on commit 7af1dee

Please sign in to comment.