# sf.tdm.move_vac_modes¶

move_vac_modes(samples, N, crop=False)[source]

Moves all measured vacuum modes from the first shot of the returned TDM samples array to the end of the last shot.

Parameters
• samples (array[float]) – samples as received from TDMProgram, with the measured vacuum modes in the first shot

• N (int or List[int]) – If an integer, the number of concurrent (or ‘alive’) modes in each time bin. Alternatively, a sequence of integers may be provided, corresponding to the number of concurrent modes in the possibly multiple bands in the circuit.

Keyword Arguments

crop (bool) – whether to remove all the shots containing measured vacuum modes at the end

Returns

the post-processed samples

Return type

array[float]