/pyphysim

Simulation of Digital Communication (physical layer) in Python.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

Testing Coverage Status Documentation Status pre-commit

PyPhysim

Simulation of Digital Communication (physical layer) in Python.

This includes classes related to digital modulation (M-QAM, M-PSK, etc), AWGN channel, Rayleigh and tapped delay line channel models, channel estimation, MIMO, OFDM, etc.. It also includes classes related to multiuser transmission, such as block diagonalization, interference alignment, etc., as well as classes representing access nodes and users for easily creating physical layer simulations.

Furthermore, a framework for implementing Monte Carlo simulations is also implemented (see the pyphysim.simulations package) to help with creating simulators that run many independent realizations and average the results.

Installation

Pyphysim is available in Pypi and can be installed with pip or similar tools. If you want to install from the git repository, then install poetry first, clone the repository, and run the command poetry install from the cloned folder to install pyphysim and its dependencies in a virtual environment (created by poetry). After that, just use poetry shell to activate the environment and you should be able to import pyphysim from python started in that shell.

Examples

There are a few notebooks in the notebooks folder in the GitHub repository. A list of some of the notebooks with a small description is shown below for quick access.