The Quadrants Programming Language
Actively maintained. Last release 4 weeks ago, commits in 23 of the last 26 weeks. A safe choice.
pip install quadrantsWhat is Quadrants?
Quadrants is a high-performance multi-platform compiler for physics simulation being continuously developed by Genesis AI.
It is designed for large-scale physics simulation and robotics workloads. It compiles Python code into highly optimized parallel kernels that run on:
- NVIDIA GPUs (CUDA)
- Vulkan-compatible GPUs (SPIR-V)
- Apple Metal GPUs
- AMD GPUs (ROCm HIP)
- x86 and ARM64 CPUs
The origin
The quadrants project was originally forked from Taichi in June 2025. As the original Taichi is no longer being maintained and the codebase evolved into a fully independent compiler with its own direction and long-term roadmap, we decided to give it a name that reflects both its roots and its new identity. The name Quadrants is inspired by the Chinese saying:
太极生两仪,两仪生四象
The Supreme Polarity (Taichi) gives rise to the Two Modes (Yin & Yang), which in turn give rise to the Four Forms (Quadrants).
Quadrants captures the idea of progression originated from taichi — built on the same foundation, evolving in its own direction while acknowledging its roots. This project is now fully independent and does not aim to maintain backward compatibility with upstream Taichi.
How Quadrants differs from upstream Taichi
While the repository still resembles upstream in structure, major changes include:
Platform support
- LLVM 22, ARM (aarch64) support
CI
- Kernel-level code coverage — device-side branch coverage in standard
coverage.pyformat, integrated with pytest-cov - AI-driven checks for line wrapping, deleted comments, test coverage, and feature factorization
Structural improvements
dataclasses.dataclassstructs — work with ndarrays and fields, nestable, passable toqd.func, zero kernel-runtime overheadqd.Tensor— unified API over fields and ndarrays with per-tensor layout control, pickle support, and abackend=switch- — safe sub-range ndarray access with bounds checking in debug mode