Optical Channel Models

This module provides layers and functions that implement channel models for (fiber) optical communications. The currently only available model is the split-step Fourier method (SSFM, for dual- and single-polarization) that can be combined with an Erbium-doped amplifier (EDFA).

The following code snippets show how to setup and simulate the transmission over a single-mode fiber (SMF) by using the split-step Fourier method.

# init fiber
span = sionna.phy.channel.optical.SSFM(
                              alpha=0.046,
                              beta_2=-21.67,
                              f_c=193.55e12,
                              gamma=1.27,
                              length=80,
                              n_ssfm=200,
                              n_sp=1.0,
                              t_norm=1e-12,
                              with_amplification=False,
                              with_attenuation=True,
                              with_dispersion=True,
                              with_nonlinearity=True,
                              dtype=tf.complex64)
# init amplifier
amplifier = sionna.phy.channel.optical.EDFA(
                              g=4.0,
                              f=2.0,
                              f_c=193.55e12,
                              dt=1.0e-12)

@tf.function
def simulate_transmission(x, n_span):
      y = x
      # simulate n_span fiber spans
      for _ in range(n_span):
            # simulate single span
            y = span(y)
            # simulate amplifier
            y = amplifier(y)

      return y

Running the channel model is done as follows:

# x is the optical input signal, n_span the number of spans
y = simulate_transmission(x, n_span)

For further details, the tutorial “Optical Channel with Lumped Amplification” provides more sophisticated examples of how to use this module.

For the purpose of the present document, the following symbols apply:

Tnorm

Time normalization for the SSFM in (s)

Lnorm

Distance normalization the for SSFM in (m)

W

Bandwidth

α

Attenuation coefficient in (1/Lnorm)

β2

Group velocity dispersion coeff. in (Tnorm2/Lnorm)

fc

Carrier frequency in (Hz)

γ

Nonlinearity coefficient in (1/Lnorm/W)

Fiber length in (Lnorm)

h

Planck constant

NSSFM

Number of SSFM simulation steps

nsp

Spontaneous emission factor of Raman amplification

Δt

Normalized simulation time step in (Tnorm)

Δz

Normalized simulation step size in (Lnorm)

G

Amplifier gain

F

Amplifier’s noise figure

ρASE

Noise spectral density

P

Signal power

D^

Linear SSFM operator [A2012]

N^

Non-linear SSFM operator [A2012]

fsim

Simulation bandwidth

Remark: Depending on the exact simulation parameters, the SSFM algorithm may require dtype=tf.complex128 for accurate simulation results. However, this may increase the simulation complexity significantly.

class sionna.phy.channel.SSFM(alpha=0.046, beta_2=-21.67, f_c=193550000000000.0, gamma=1.27, half_window_length=0, length=80, n_ssfm=1, n_sp=1.0, sample_duration=1.0, t_norm=1e-12, with_amplification=False, with_attenuation=True, with_dispersion=True, with_manakov=False, with_nonlinearity=True, phase_inc=0.0001, swap_memory=True, precision=None, **kwargs)[source]

Block implementing the split-step Fourier method (SSFM)

The SSFM (first mentioned in [HT1973]) numerically solves the generalized nonlinear Schrödinger equation (NLSE)

E(t,z)z=α2E(t,z)+jβ222E(t,z)t2jγ|E(t,z)|2E(t,z)+n(nsp;t,z)

for an unpolarized (or single polarized) optical signal; or the Manakov equation (according to [WMC1991])

E(t,z)z=α2E(t,z)+jβ222E(t,z)t2jγ89||E(t,z)||22E(t,z)+n(nsp;t,z)

for dual polarization, with attenuation coefficient α, group velocity dispersion parameters β2, and nonlinearity coefficient γ. The noise terms n(nsp;t,z) and n(nsp;t,z), respectively, stem from an (optional) ideally distributed Raman amplification with spontaneous emission factor nsp. The optical signal E(t,z) has the unit W. For the dual polarized case, E(t,z)=(Ex(t,z),Ey(t,z)) is a vector consisting of the signal components of both polarizations.

The symmetrized SSFM is applied according to Eq. (7) of [FMF1976] that can be written as

E(z+Δz,t)exp(Δz2D^)exp(zz+ΔzN^(z)dz)exp(Δz2D^)E(z,t)

where only the single-polarized case is shown. The integral is approximated by ΔzN^ with D^ and N^ denoting the linear and nonlinear SSFM operator, respectively [A2012].

Additionally, ideally distributed Raman amplification may be applied, which is implemented as in [MFFP2009]. Please note that the implemented Raman amplification currently results in a transparent fiber link. Hence, the introduced gain cannot be parametrized.

The SSFM operates on normalized time Tnorm (e.g., Tnorm=1ps=11012s) and distance units Lnorm (e.g., Lnorm=1km=1103m). Hence, all parameters as well as the signal itself have to be given with the same unit prefix for the same unit (e.g., always pico for time, or kilo for distance). Despite the normalization, the SSFM is implemented with physical units, which is different from the normalization, e.g., used for the nonlinear Fourier transform. For simulations, only Tnorm has to be provided.

To avoid reflections at the signal boundaries during simulation, a Hamming window can be applied in each SSFM-step, whose length can be defined by half_window_length.

Example

Setting-up:

>>> ssfm = SSFM(
>>>     alpha=0.046,
>>>     beta_2=-21.67,
>>>     f_c=193.55e12,
>>>     gamma=1.27,
>>>     half_window_length=100,
>>>     length=80,
>>>     n_ssfm=200,
>>>     n_sp=1.0,
>>>     t_norm=1e-12,
>>>     with_amplification=False,
>>>     with_attenuation=True,
>>>     with_dispersion=True,
>>>     with_manakov=False,
>>>     with_nonlinearity=True)

Running:

>>> # x is the optical input signal
>>> y = ssfm(x)
Parameters:
  • alpha (float, (default 0.046)) – Attenuation coefficient α in (1/Lnorm)

  • beta_2 (float, (default -21.67)) – Group velocity dispersion coefficient β2 in (Tnorm2/Lnorm)

  • f_c (float, (default 193.55e12)) – Carrier frequency fc in (Hz)

  • gamma (float, (default 1.27)) – Nonlinearity coefficient γ in (1/Lnorm/W)

  • half_window_length (int, (default 0)) – Half of the Hamming window length

  • length (float, (default 80.0)) – Fiber length in (Lnorm)

  • n_ssfm (int, (default 1) | “adaptive”) – Number of steps NSSFM. Set to “adaptive” to use nonlinear-phase rotation to calculate the step widths adaptively (maxmimum rotation can be set in phase_inc).

  • n_sp (float, (default 1.0)) – Spontaneous emission factor nsp of Raman amplification

  • sample_duration (float, (default 1.0)) – Normalized time step Δt in (Tnorm)

  • t_norm (float, (default 1e-12)) – Time normalization Tnorm in (s)

  • with_amplification (bool, (default False)) – Enable ideal inline amplification and corresponding noise

  • with_attenuation (bool, (default True)) – Enable attenuation

  • with_dispersion (bool, (default True)) – Apply chromatic dispersion

  • with_manakov (bool, (default False)) – Considers axis [-2] as x- and y-polarization and calculates the nonlinear step as given by the Manakov equation

  • with_nonlinearity (bool, (default True)) – Apply Kerr nonlinearity

  • phase_inc (float, (default 1e-4)) – Maximum nonlinear-phase rotation in rad allowed during simulation. To be used with n_ssfm = “adaptive”.

  • swap_memory (bool, (default True)) – Use CPU memory for while loop

  • precision (None (default) | “single” | “double”) – Precision used for internal calculations and outputs. If set to None, precision is used.

Input:

x ([…,n] or […,2,n], tf.complex) – Input signal in (W). If with_manakov is True, the second last dimension is interpreted as x- and y-polarization, respectively.

Output:

y (Tensor (same shape as x), tf.complex) – Channel output

class sionna.phy.channel.EDFA(g=4.0, f=7.0, f_c=193550000000000.0, dt=1e-12, with_dual_polarization=False, precision=None, **kwargs)[source]

Block implementing a model of an Erbium-Doped Fiber Amplifier

Amplifies the optical input signal by a given gain and adds amplified spontaneous emission (ASE) noise.

The noise figure including the noise due to beating of signal and spontaneous emission is FASE,shot=SNRinSNRout, where ideally the detector is limited by shot noise only, and SNR is the signal-to-noise-ratio. Shot noise is neglected here but is required to derive the noise power of the amplifier, as otherwise the input SNR is infinitely large. Hence, for the input SNR, it follows [A2012] that SNRin=P2hfcW, where h denotes Planck’s constant, P is the signal power, and W the considered bandwidth. The output SNR is decreased by ASE noise induced by the amplification. Note that shot noise is applied after the amplifier and is hence not amplified. It results that SNRout=GP(4ρASE+2hfc)W, where G is the parametrized gain. Hence, one can write the former equation as FASE,shot=2nsp(1G1)+G1. Dropping shot noise again results in F=2nsp(1G1)=2nspG1G.

For a transparent link, e.g., the required gain per span is G=exp(α). The spontaneous emission factor is nsp=F2GG1. According to [A2012] and [EKWFG2010] combined with [BGT2000] and [GD1991], the noise power spectral density of the EDFA per state of polarization is obtained as ρASE(1)=nsp(G1)hfc=12GFhfc. At simulation frequency fsim, the noise has a power of PASE(1)=σn,ASE2=2ρASE(1)fsim, where the factor 2 accounts for the unpolarized noise (for dual polarization the factor is 1 per polarization). Here, the notation ()(1) means that this is the noise introduced by a single EDFA.

Example

Setting-up:

>>> edfa = EDFA(
>>>     g=4.0,
>>>     f=2.0,
>>>     f_c=193.55e12,
>>>     dt=1.0e-12,
>>>     with_dual_polarization=False)

Running:

>>> # x is the optical input signal
>>> y = EDFA(x)
Parameters:
  • g (float, (default 4.0)) – Amplifier gain (linear domain)

  • f (float, (default 7.0)) – Noise figure (linear domain)

  • f_c (float, (default 193.55e12)) – Carrier frequency fc in (Hz)

  • dt (float, (default 1e-12)) – Time step Δt in (s)

  • with_dual_polarization (bool, (default False)) – Considers axis [-2] as x- and y-polarization and applies the noise per polarization

  • precision (None (default) | “single” | “double”) – Precision used for internal calculations and outputs. If set to None, precision is used.

Input:

x (Tensor, tf.complex) – Optical input signal

Output:

y (Tensor (same shape as x), tf.complex) – Amplifier output

Utility functions

sionna.phy.channel.utils.time_frequency_vector(num_samples, sample_duration, precision=None)[source]

Compute the time and frequency vector for a given number of samples and duration per sample in normalized time unit.

>>> t = tf.cast(tf.linspace(-n_min, n_max, num_samples), dtype) * sample_duration
>>> f = tf.cast(tf.linspace(-n_min, n_max, num_samples), dtype) * 1/(sample_duration*num_samples)
Input:
  • num_samples (int) – Number of samples

  • sample_duration (float) – Sample duration in normalized time

  • precision (None (default) | “single” | “double”) – Precision used for internal calculations and outputs. If set to None, precision is used.

Output:
  • t ([num_samples], tf.float) – Time vector

  • f ([num_samples], tf.float) – Frequency vector

References:
[HT1973]

R. H. Hardin and F. D. Tappert, “Applications of the Split-Step Fourier Method to the Numerical Solution of Nonlinear and Variable Coefficient Wave Equations.”, SIAM Review Chronicles, Vol. 15, No. 2, Part 1, p 423, 1973.

[FMF1976]

J. A. Fleck, J. R. Morris, and M. D. Feit, “Time-dependent Propagation of High Energy Laser Beams Through the Atmosphere”, Appl. Phys., Vol. 10, pp 129–160, 1976.

[MFFP2009]

N. J. Muga, M. C. Fugihara, M. F. S. Ferreira, and A. N. Pinto, “ASE Noise Simulation in Raman Amplification Systems”, Conftele, 2009.

[A2012] (1,2,3,4,5)

G. P. Agrawal, “Fiber-optic Communication Systems”, 4th ed. Wiley Series in Microwave and Optical Engineering 222. New York: Wiley, 2010.

[EKWFG2010]

R. J. Essiambre, G. Kramer, P. J. Winzer, G. J. Foschini, and B. Goebel, “Capacity Limits of Optical Fiber Networks”, Journal of Lightwave Technology 28, No. 4, 2010.

[BGT2000]

D. M. Baney, P. Gallion, and R. S. Tucker, “Theory and Measurement Techniques for the Noise Figure of Optical Amplifiers”, Optical Fiber Technology 6, No. 2, 2000.

[GD1991]

C. R. Giles, and E. Desurvire, “Modeling Erbium-Doped Fiber Amplifiers”, Journal of Lightwave Technology 9, No. 2, 1991.

[WMC1991]

P. K. A. Wai, C. R. Menyuk, and H. H. Chen, “Stability of Solitons in Randomly Varying Birefringent Fibers”, Optics Letters, No. 16, 1991.