Skip to main content

oscillatools

A differentiable, control-oriented toolkit for coupled-phase-oscillator (Kuramoto) dynamics. It provides the model family, integrators, exact mean-field reductions, stability and continuation analysis, differentiation, and control primitives as a light, standalone distribution whose only hard dependencies are NumPy and SciPy. Every acceleration or interoperability tier (a Rust engine, Julia, JAX, PyTorch, matplotlib, scikit-learn) is an optional extra; the pure-Python NumPy floor always runs.

oscillatools is extracted from scpn-quantum-control, where the toolkit originated, so that the coupled-oscillator surface can be installed without that project's quantum-provider dependency stack.

Installation

pip install oscillatools                 # NumPy + SciPy floor
pip install "oscillatools[rust]"         # optional Rust acceleration engine
pip install "oscillatools[jax]"          # JAX autodiff backend
pip install "oscillatools[torch]"        # PyTorch neural-operator surrogate
pip install "oscillatools[sklearn]"      # scikit-learn estimator interface
pip install "oscillatools[viz]"          # matplotlib renderers
pip install "oscillatools[julia]"        # Julia acceleration tier

Capabilities

  • Model family — classical, higher-order (hyperedge/simplicial force), time-delayed, noisy, inertial (second-order), adaptive-coupling, Sakaguchi, Winfree, Stuart–Landau, networked/multiplex, and next-generation QIF neural-mass Kuramoto dynamics.
  • Integrators — explicit Euler, RK4, DOPRI adaptive step, symplectic (inertial), method-of-steps (delayed), and Euler–Maruyama (stochastic).
  • Exact reductions — Ott–Antonsen and Watanabe–Strogatz manifolds, and the noisy/finite-width mean-field order-parameter theory.
  • Analysis — order parameters and Daido harmonics, linear-stability spectra, Lyapunov exponents, pseudo-arclength continuation, saddle-node/fold location, and basin-stability estimation.
  • Differentiation — a hand-written reverse-mode adjoint and forward sensitivity over the integrators (NumPy and, optionally, JAX), for gradient-based design.
  • Control — optimal coupling design, pinning control, coordinated reset, SDRE/receding-horizon control, and system identification.
  • Interoperability — a scikit-learn-style estimator interface and a NumPy-array-first API.

A generated capability handbook and manifest enumerate the full public surface.

Optional acceleration and interoperability

The Rust acceleration engine ships as the separate scpn-quantum-engine wheel and is used automatically when installed ([rust] extra). Without it, the dispatchers fall through to the NumPy implementation. Measured tier selection is reported per call.

Licensing

oscillatools is dual-licensed under AGPL-3.0-or-later with a commercial license available. See NOTICE.md and LICENSES/AGPL-3.0-or-later.txt. For commercial licensing: protoscience@anulum.li.

Citation

If you use oscillatools, please cite it using the metadata in CITATION.cff.

Metadata

Release files for oscillatools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for oscillatools 0.1.0
File Size Uploaded Provenance
oscillatools-0.1.0.tar.gz 580.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for oscillatools 0.1.0
File Interpreter ABI Platform
oscillatools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 979.2 kB

Release files / oscillatools-0.1.0.tar.gz

Download URL oscillatools-0.1.0.tar.gz
Size 580.7 kB
Tags Source
SHA-256 checksum
How to use checksums
abd6b94acd2fd2011184d0f899929adfc609af43134043593cccaa6cb286b60d
BLAKE2b-256 checksum
How to use checksums
813a2cf9e78ea23bdceb185a797769203d161d2775a967c187231ea89d5c1ebf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

Release files / oscillatools-0.1.0-py3-none-any.whl

Download URL oscillatools-0.1.0-py3-none-any.whl
Size 398.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3d6b0177ce747dd95a164752d040e7904c97ee737b9e8990e2eea24b7972ecfe
BLAKE2b-256 checksum
How to use checksums
eb20f296be86226a4fe24521be15a746659078c648d5bdf06d486f7ea4e5defd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

Security for oscillatools 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oscillatools-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 17, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page