qampy.impairments#

Functions for the simulation of transmission and transceiver impairments.

Functions

add_awgn(sig, strgth)

Add additive white Gaussian noise to a signal.

add_carrier_offset(sig, fo)

Add frequency offset to signal

add_dispersion(sig, D, L[, wl0])

Add dispersion to a signal

add_modal_delay(sig, delay)

Add a modal delay of n-symbols to modes of signal, e.g.

apply_PMD(field, theta, t_dgd)

Apply PMD to a given input field

apply_phase_noise(signal, df)

Add phase noise from local oscillators, based on a Wiener noise process.

change_snr(sig, snr)

Change the SNR of a signal assuming that the input signal is noiseless

rotate_field(field, theta)

Rotate a dual polarisation field by the given angle

sim_DAC_response(sig[, enob, clip_rat, ...])

Function to simulate DAC response, including quantization noise (ENOB) and frequency response.

sim_mod_response(sig[, dcbias, gfactr, ...])

Simulate IQ modulator response.

sim_tx_response(sig[, enob, tgt_v, ...])

Simulate a realistic transmitter possibly including quantization, noise due to limited ENOB, and DAC frequency response

simulate_transmission(sig[, snr, freq_off, ...])

Convenience function to simulate impairments on signal at once