Maglogic
Maglogic is a Python-based toolkit for simulating nanomagnetic logic (NML) devices. It uses two micromagnetic backends -- OOMMF and MuMax3 -- to model the magnetic behavior of patterned nanoelements at scales relevant to beyond-CMOS computing. The project implements the reconfigurable triangular-element logic gate architecture described in Alawein et al., IEEE Magnetics Letters 2019, which demonstrated that triangular nanomagnets can be configured to perform NAND, NOR, and majority gate operations depending on geometry and clocking field orientation.
The simulation pipeline covers geometry definition, micromagnetic field solving, and automated truth-table verification to confirm correct gate-level logic behavior. Cellular automata models allow chaining multiple gates into larger logic circuits, enabling evaluation of signal propagation and clocking schemes across multi-element arrays.
The codebase includes MATLAB reference implementations alongside the primary Python solvers, supporting cross-validation of simulation results between platforms. Docker support is provided for reproducible execution environments, simplifying dependency management for the OOMMF and MuMax3 backends.
Maglogic connects to the broader spintronic device modeling work in spincirc, which addresses equivalent-circuit spin-transport methods, and is part of the scicomp cross-platform scientific computing ecosystem. The repository is hosted at github.com/alawein/maglogic and is under active development with a P2 priority designation in the physics domain.