feat: add code analysis tool with rate, matrix, quantization, and Shannon analyses

Implements four LDPC code analyses for photon-starved optical channels:
- Rate sweep: compare FER across 1/2, 1/3, 1/4, 1/6, 1/8 IRA staircase codes
- Matrix comparison: original staircase vs improved staircase vs PEG ring
- Quantization sweep: 4-16 bit and float precision impact on FER
- Shannon gap: binary-input Poisson channel capacity limits via binary search

Core infrastructure includes generic IRA staircase builder, GF(2) Gaussian
elimination encoder for non-triangular matrices, parameterized layered
min-sum decoder with variable check degree, and BFS girth computation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
cah
2026-02-24 04:46:39 -07:00
parent c427dfdd3d
commit ad7cb5098c
2 changed files with 1137 additions and 0 deletions

1052
model/ldpc_analysis.py Normal file

File diff suppressed because it is too large Load Diff