The word pramāṇa (प्रमाण) means “valid cognition” — the means by which reliable knowledge is obtained. In the Buddhist epistemological tradition of Dignāga and Dharmakīrti, there are exactly two pramāṇas: direct perception (pratyakṣa) and inference (anumāna). A quantum sensor is a physical system that performs both: it perceives a field directly through its quantum state, and the measurement apparatus infers the field value from the sensor’s response.

MāyāPramāṇa is a pedagogical framework for understanding and building a Bell-Bloom atomic magnetometer — a quantum sensor that measures magnetic fields using optically pumped alkali atoms. The framework teaches the physics, the signal processing, and the control theory required to build a universal quantum sensor controller.

The Logic of the Instrument

The magnetometer follows a signal chain: Prepare → Precess → Read Out → Process → Estimate → Control. Each stage is a lesson, each lesson is implemented in three languages (Python, Haskell, C++), and all three must agree on the physics.

Curriculum

LessonTopicContent
00 — Bloch EquationsThe physics of spin in a magnetic fieldFirst principles derivation
Python TrackInteractive explorationorg-babel, notebooks
Haskell TrackExecutable specificationQuickCheck, types as physics
C++ TrackDeploymentType-level physics, FPGA bridge
Interactive DemoBrowser-based Bloch sphere3D visualisation

Architecture

Three languages, one physics. Python for exploration (fast iteration, plotting). Haskell for specification (if it type-checks, the physics is consistent). C++ for deployment (real-time control on Red Pitaya FPGA). All three are tangled from the same .org source files.

Pure Core / Effectful Shell. Signal processing pipelines are inherently compositional: a lock-in amplifier is demodulate . filter . sample. Side effects (hardware I/O, logging, calibration) live at the boundary.

Source Material

The full content lives in the mayapramana repository as literate .org files: