kaira.modulations.DQPSKModulator

Inheritance diagram for DQPSKModulator
- class kaira.modulations.DQPSKModulator(*args: Any, **kwargs: Any)[source]
Bases:
DPSKModulatorDifferential Quadrature Phase-Shift Keying (DQPSK) modulator.
Methods
Initialize DQPSK Modulator.
Modulate bit groups to DPSK symbols.
Plot the DPSK constellation diagram.
Reset the internal phase memory to the default state.
Attributes
Number of bits per symbol.
- forward(x: Tensor, *args, **kwargs) Tensor
Modulate bit groups to DPSK symbols.
- Parameters:
x – Input tensor of bits with shape (…, K*N), where K is bits_per_symbol, or direct symbol indices with shape (…, N) where each value is < order
*args – Variable length argument list.
**kwargs – Arbitrary keyword arguments.
- Returns:
Complex tensor of DPSK symbols with shape (…, N)
- plot_constellation(**kwargs) Figure
Plot the DPSK constellation diagram.
- Parameters:
**kwargs – Additional arguments passed to plot_constellation
- Returns:
Matplotlib figure object
- constellation: torch.Tensor
- bit_patterns: torch.Tensor