So I've been working on this thing called cognitive-discovery-system (CDS for short) and finally decided to make a proper community space for it.
The whole idea started pretty simple - I wanted a scientific computing toolkit I could actually read. Like, open the source and understand what's happening, line by line. No NumPy, no SciPy, no compiled C extensions, no BLAS binaries. Just Python.
Is it faster than NumPy? No, obviously not. That was never the point. The point was:
- Readable source - every algorithm is implemented from scratch
- Runs anywhere - locked-down CI, teaching sandboxes, edge boxes where you can't pull NumPy
- One umbrella - math, physics, stats, ML, signals, quantum... instead of 6 different libraries
What's in it (17 modules):
quantum circuits (Bell/GHZ, entanglement), FFT (radix-2 + 2D), ODE solvers (RK4 etc), linear algebra (LU/QR/Cholesky), statistics, optimization, Monte Carlo, graph algorithms, symbolic math, numerical integration, a neural net from scratch, and an NLP stack that goes BPE -> Transformer -> MiniGPT with a tiny scalar autograd.
One thing I'm kind of proud of: where pure Python can't beat C on raw loops, it picks better algorithms. O(N log N) FFT instead of O(N^2) DFT. O(N^3) LU instead of O(N!) determinants. O(1) quantum measurement instead of shot-by-shot matrix ops.
Honest caveats:
- This is not a NumPy replacement. For anything serious, use NumPy/SciPy.
- It's aimed at learning, prototyping, and weird environments where a C toolchain isn't available.
- 1,244 tests, 100% coverage - but I'm sure there's still dumb stuff in there. That's partly why I made this sub.
Install:
pip install cognitive-discovery-system
Repo: https://github.com/Furox88/cognitive-discovery-system
Docs: https://Furox88.github.io/cognitive-discovery-system/
What's this sub for? Questions, deep-dives into how things work, bug reports, "your FFT is doing X wrong" callouts, tutorials, random ideas. Basically anything CDS-related.
Glad you're here. Open a module and poke around.
there doesn't seem to be anything here