comnum.phase_noise#

comnum.phase_noise(linewidth_hz, n, fs, rng)#

Wiener phase noise of a laser: a random walk starting at 0 whose increments have the variance 2π Δν / fs.

Parameters:
  • linewidth_hz (float) – the linewidth Δν (Hz).

  • n (int) – number of samples.

  • fs (float) – sampling rate (Hz).

  • rng (Rng) – the generator.

Returns:

the phase of every sample (rad).

Return type:

numpy.ndarray

Raises:

ValueError – for an invalid parameter (the message names it).