Fixed a bug with phase cycles with different lengths.

This commit is contained in:
jupfi 2024-06-06 19:49:19 +02:00
parent 1a1a2150f6
commit 50ae13f89a

View file

@ -96,7 +96,7 @@ class PhaseTable:
for parameter, phase_values in parameters.items(): for parameter, phase_values in parameters.items():
if len(phase_values) < max_phase_values: if len(phase_values) < max_phase_values:
phase_values = np.tile( phase_values = np.tile(
phase_values, max_phase_values // len(phase_values) phase_values, int(np.ceil(max_phase_values / len(phase_values)))
) )
pulse_phases[parameter] = phase_values pulse_phases[parameter] = phase_values
logger.info( logger.info(