kaira.modulations.OQPSKDemodulator

Inheritance diagram of OQPSKDemodulator

Inheritance diagram for OQPSKDemodulator

class kaira.modulations.OQPSKDemodulator(normalize: bool = True, *args, **kwargs)[source]

Bases: BaseDemodulator

Offset Quadrature Phase-Shift Keying (OQPSK) demodulator.

Methods

__init__

Initialize the OQPSK demodulator.

forward

Demodulate OQPSK symbols.

reset_state

Reset any stateful components.

Attributes

bits_per_symbol

Number of bits per symbol.

__init__(normalize: bool = True, *args, **kwargs) None[source]

Initialize the OQPSK demodulator.

Parameters:
  • normalize – If True, assume normalized constellation with unit energy

  • *args – Variable length argument list.

  • **kwargs – Arbitrary keyword arguments.

forward(y: Tensor, noise_var: float | Tensor | None = None, *args, **kwargs) Tensor[source]

Demodulate OQPSK symbols.

Parameters:
  • y – Received tensor of OQPSK symbols

  • noise_var – Noise variance for soft demodulation (optional)

  • *args – Variable length argument list.

  • **kwargs – Arbitrary keyword arguments.

Returns:

If noise_var is provided, returns LLRs; otherwise, returns hard bit decisions

property bits_per_symbol: int

Number of bits per symbol.

reset_state() None

Reset any stateful components.

For demodulators with memory.