sf.tdm.get_mode_indices
-
get_mode_indices
(delays)[source]
Calculates the mode indices for use in a TDMProgram
.
- Parameters
delays (list[int]) – List of loop delays. E.g. delays = [1, 6, 36]
for Borealis.
- Returns
the mode indices and number of concurrent (or ‘alive’)
modes for the program
- Return type
tuple(ndarray, int)
code/api/strawberryfields.tdm.get_mode_indices