prbs#

Functions for fast creation of pseudo random bit sequences (PRBS) patterns

qampy.core.prbs.make_prbs_extXOR(order, nbits, seed=None)#

Create Pseudo Random Bit Sequence using Linear Feedback Shift Register with a Fibonacci or external XOR implementation.

Parameters:
  • order (int) – Order of the bit sequence (must be one of 7, 15, 23, 31)

  • nbits (int) – The length or number of bits in the sequence

  • seed (int, optional) – Seed for the LFSR, None corresponds to all bits one (default is None)

Returns:

prbs – Array of nbits, dtype=bool, len=nbits

Return type:

array_like

qampy.core.prbs.make_prbs_intXOR(order, nbits, seed=None)#

Create Pseudo Random Bit Sequence using a Linear Feedback Shift Register with Galois internal XOR implementation.

Parameters:
  • order (int) – Order of the bit sequence (must be one of 7, 15, 23, 31)

  • nbits (int) – The length or number of bits in the sequence

  • seed (int, optional) – Seed for the LFSR, None corresponds to all bits one (default is None)

Returns:

prbs – Array of nbits, dtype=bool, len=nbits

Return type:

array_like