qampy.core.impairments#
Functions for the simulation of transmission and transceiver impairments.
Functions
|
Calculate the response for PMD applied to the signal (see e.g. |
|
Add additive white Gaussian noise to a signal. |
|
Add frequency offset to signal |
|
Add dispersion to signal. |
|
Add a modal delay of n-symbols to modes of signal, e.g. |
|
Apply the frequency response filter of the DAC. |
|
Apply PMD to a given input field |
|
Add noise from limited ENOB as modelled as AWGN to signal. |
|
Add phase noise from local oscillators, based on a Wiener noise process. |
|
Change the SNR of a signal assuming that the input signal is noiseless |
|
Clip signal to the range (-clipping_level, clipping_level). |
|
|
|
Apply an analog filter to a signal for simulating e.g. |
|
Simulate a ideal amplifier, which just scale RF signal to out_volt. |
|
Load the measured dac response and adjust it to target sampling frequency. |
|
Function so simulate IQ modulator response. |
|
Normalise and center the input field, by calculating the mean power for each polarisation separate and dividing by its square-root |
|
Calculate phase noise from local oscillators, based on a Wiener noise process with a variance given by \(\sigma^2=2\pi df/fs\) |
|
Function so simulate limited resultion using DACs and ADCs |
|
Function so simulate limited resultion using DACs and ADCs, limit quantization error to (-delta/2,delta/2) and set |
|
Rescale the (1-pol) signal to (-swing, swing). |
|
Rotate a dual polarisation field by the given angle |
|
Function to simulate DAC response, including quantization noise (ENOB) and frequency response. |
|
Simulate a realistic transmitter possibly including quantization, noise due to limited ENOB, and DAC frequency response |
|
Convenience function to simulate impairments on signal at once |