Pyphysim
Simulation of Digital Communication (physical layer) in Python.
Install / Use
/learn @darcamo/PyphysimREADME
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.
- Transmission_with_AWGN_channel.ipynb: Illustrates the use of digital modulation to transmit through an AWGN channel and the usage of classes that help creating Monte Carlo simulations
- Transmission_with_Rayleigh_and_AWGN_channels.ipynb: Extends the previous notebook to transmission through a Rayleigh channel and discuss running simulation
- TDL_and_OFDM.ipynb: Simulation of transmission through a frequency selective channel that varies in time using OFDM
- PathLoss classes.ipynb: Illustrate some path loss classes
- Alamouti.ipynb: Illustrates how to simulate using multiple antennas and how to use configuration files
Related Skills
claude-opus-4-5-migration
84.6kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
trello
341.6kManage Trello boards, lists, and cards via the Trello REST API.
model-usage
341.6kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
mcporter
341.6kUse the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
