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.1

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.1
File Size Uploaded Provenance Actions
oscillatools-0.1.1.tar.gz 606.1 kB With provenance Details for oscillatools-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 1.0 MB

Release files / oscillatools-0.1.1.tar.gz

Download URL oscillatools-0.1.1.tar.gz
Size 606.1 kB
Tags Source
SHA-256 checksum
How to use checksums
72d66d21a4cdde903f33bf5b369644b6ced24296eec3a3eabeebd304be4cc2eb
BLAKE2b-256 checksum
How to use checksums
4dcea65d0067eff3a2e6972eca6fb624af64fdeec8e94b588f88321c0942d469
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

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

Download URL oscillatools-0.1.1-py3-none-any.whl
Size 415.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1157ce200301a8ae5625da7724e59ab66a5cbbe7ae04613dee2d7fc522d389f6
BLAKE2b-256 checksum
How to use checksums
9fe6a34b832583c4e13c573f06023bc3977fd713badf99b2d8c7f65bf8679d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 29, 2026.

Transparency log

Security for oscillatools 0.1.1

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oscillatools-0.1.1.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 Oct 29, 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 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