sf.tdm.random_r

random_r(length, low=0, high=6.283185307179586)[source]

Creates a list of random rotation-gate arguments for GBS jobs.

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

  • low (float) – lower bound for random phase-gate arguments

  • high (float) – upper bound for random phase-gate arguments

Returns

list of random Rgate arguments for a GBS job

Return type

list[float]