SimOS: A Python framework for simulations of optically addressable spins
Description
We present an open-source simulation framework for optically detected magnetic resonance, developed in Python. The framework is designed to simulate multipartite quantum systems composed of spins and electronic levels, enabling the study of systems such as nitrogen-vacancy centers in diamond and photo-generated spin-correlated radical pairs. Our library provides system-specific sub-modules for these and related problems. It supports efficient time-evolution in Lindblad form, along with tools for simulating spatial and generalized stochastic dynamics. Symbolic operator construction and propagation are also supported for simple model systems, making the framework well-suited for classroom instruction in magnetic resonance. Designed to be backend-agnostic, the library interfaces with existing Python packages as computational backends. We introduce the core functionality and illustrate the syntax through a series of representative examples.