Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

oscillatools-0.1.0.tar.gz (580.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

oscillatools-0.1.0-py3-none-any.whl (398.4 kB view details)

Uploaded Python 3

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

Hashes for oscillatools-0.1.0.tar.gz
Algorithm Hash digest
SHA256 abd6b94acd2fd2011184d0f899929adfc609af43134043593cccaa6cb286b60d
MD5 7cc1daff743abc41e45b4aa710579236
BLAKE2b-256 813a2cf9e78ea23bdceb185a797769203d161d2775a967c187231ea89d5c1ebf

See more details on using hashes here.

Provenance

The following attestation bundles were made for oscillatools-0.1.0.tar.gz:

Publisher: oscillatools-publish.yml on anulum/scpn-quantum-control

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for oscillatools-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3d6b0177ce747dd95a164752d040e7904c97ee737b9e8990e2eea24b7972ecfe
MD5 ad65b20db18daa83e98f787dfb5af126
BLAKE2b-256 eb20f296be86226a4fe24521be15a746659078c648d5bdf06d486f7ea4e5defd

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page