magnus

__init__.py

Top-level package initializer for magnus. Exposes the package version and explicitly imports the twelve modules that make up Magnus’s public API: adiabatic, avgprob, earth, expansionterms, expmkernels, globaldefs, hamiltonians, magnus, matter, oscprob, oscprobstd, and plotting. See Code Architecture for how they fit together.

magnus.expmkernels is listed because expmkernels.HAVE_NUMBA is the documented way to ask whether the compiled matrix-exponential backend is available; the switch that selects it is magnus.magnus.EXPM_BACKEND.

magnus.plotting needs Matplotlib, which ships with Magnus, so it is available in any installation. It is still imported lazily, inside the calls that draw, so import magnus does not pay for a plotting stack it may never use.

authors and version are internal metadata modules (used by magnus.oscprob.print_banner() and the magnus command-line calculator), not part of the public API, and are intentionally not listed in submodules/__all__ or documented in the API reference. __version__ itself is still exposed directly, as is standard Python packaging convention.

Routine listings

(none; only re-exports __version__ and defines submodules/__all__)

Submodules