Differentiable, control-oriented toolkit for coupled-phase-oscillator (Kuramoto) dynamics
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file oscillatools-0.1.0.tar.gz.
File metadata
- Download URL: oscillatools-0.1.0.tar.gz
- Upload date:
- Size: 580.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abd6b94acd2fd2011184d0f899929adfc609af43134043593cccaa6cb286b60d
|
|
| MD5 |
7cc1daff743abc41e45b4aa710579236
|
|
| BLAKE2b-256 |
813a2cf9e78ea23bdceb185a797769203d161d2775a967c187231ea89d5c1ebf
|
Provenance
The following attestation bundles were made for oscillatools-0.1.0.tar.gz:
Publisher:
oscillatools-publish.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oscillatools-0.1.0.tar.gz -
Subject digest:
abd6b94acd2fd2011184d0f899929adfc609af43134043593cccaa6cb286b60d - Sigstore transparency entry: 2187992145
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@452ab9ed6aa7f06c3d4a9d37290a532ffdd4027a -
Branch / Tag:
refs/tags/oscillatools-v0.1.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
oscillatools-publish.yml@452ab9ed6aa7f06c3d4a9d37290a532ffdd4027a -
Trigger Event:
push
-
Statement type:
File details
Details for the file oscillatools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: oscillatools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 398.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d6b0177ce747dd95a164752d040e7904c97ee737b9e8990e2eea24b7972ecfe
|
|
| MD5 |
ad65b20db18daa83e98f787dfb5af126
|
|
| BLAKE2b-256 |
eb20f296be86226a4fe24521be15a746659078c648d5bdf06d486f7ea4e5defd
|
Provenance
The following attestation bundles were made for oscillatools-0.1.0-py3-none-any.whl:
Publisher:
oscillatools-publish.yml on anulum/scpn-quantum-control
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
oscillatools-0.1.0-py3-none-any.whl -
Subject digest:
3d6b0177ce747dd95a164752d040e7904c97ee737b9e8990e2eea24b7972ecfe - Sigstore transparency entry: 2187992152
- Sigstore integration time:
-
Permalink:
anulum/scpn-quantum-control@452ab9ed6aa7f06c3d4a9d37290a532ffdd4027a -
Branch / Tag:
refs/tags/oscillatools-v0.1.0 - Owner: https://github.com/anulum
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
oscillatools-publish.yml@452ab9ed6aa7f06c3d4a9d37290a532ffdd4027a -
Trigger Event:
push
-
Statement type: