polynomial_selector#

sionna.phy.fec.turbo.utils.polynomial_selector(constraint_length: int) tuple[str, str][source]#

Returns the generator polynomials for rate-1/2 convolutional codes for a given constraint_length.

Parameters:

constraint_length (int) – An integer defining the desired constraint length of the encoder. The memory of the encoder is constraint_length - 1.

Outputs:

gen_poly – Tuple of strings with each string being a 0,1 sequence where each polynomial is represented in binary form.

Notes

Please note that the polynomials are optimized for RSC codes and are not necessarily the same as used in the polynomial selector polynomial_selector() of the convolutional codes.

Examples

from sionna.phy.fec.turbo import polynomial_selector

gen_poly = polynomial_selector(4)
print(gen_poly)
# ('1011', '1101')