sf.tdm.random_bs

random_bs(length, low=0.45, high=0.55)[source]

Creates a list of random beamsplitter arguments for GBS jobs.

Parameters
  • length (int) – number of computational modes (squeezed-light pulses)

  • low (float) – lower bound for random beamsplitter transmission values

  • high (float) – upper bound for random beamsplitter transmission values

Returns

list of random BSgate arguments for a GBS job

Return type

list[float]