Skip to main content

hypersynchronization

hypersynchronization is a Python library for the simulation, analysis, and visualization of oscillators with group (higher-order) interactions.

Getting started

Here is a simple example to get started:

import matplotlib.pyplot as plt
import numpy as np
import seaborn as sb
import xgi

import hypersynchronization as hs

sb.set_theme(style="ticks", context="notebook")

# structural parameters 
N = 20 # number of nodes
H = xgi.random_simplicial_complex(N, ps=[0.01, 0.015], seed=1) # hypergraph
links = H.edges.filterby("order", 1).members()
triangles = H.edges.filterby("order", 2).members()

# dynamical parameters
k1 = 5  # pairwise coupling strength
k2 = 0.1  # triplet coupling strength

# integration parameters
t_end = 300
dt = 0.01
integrator = "RK45"

# generate initial contitions
theta_0 = hs.generate_state(N, kind="random")

# simulate system
thetas, times = hs.simulate_kuramoto(
    H,
    omega=np.random.normal(size=N),
    theta_0=theta_0,
    t_end=t_end,
    dt=dt,
    rhs=hs.rhs_23_sym, 
    integrator=integrator,
    args=(k1, k2, links, triangles), # arguments of the RHS function,
)


hs.plot_summary(thetas, times, H)

plt.show()

Credits

hypersynchronization makes use of XGI for higher-order interactions and Scipy's solve_ivp() for ODE integration.

Released under the 3-Clause BSD license.

Maxime Lucas: maxime.lucas.work [at] gmail.com

Metadata

Release files for hypersynchronization 0.2

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

Source distribution (sdist)

Source distribution for hypersynchronization 0.2
File Size Uploaded Provenance Actions
hypersynchronization-0.2.tar.gz 14.6 kB Without provenance Details for hypersynchronization-0.2.tar.gz

Built distribution (wheel)

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

Total release size: 30.2 kB

Release files / hypersynchronization-0.2.tar.gz

Download URL hypersynchronization-0.2.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4496f1fbe61df9271e536a2cfd353ecc3e7362f01b4906066eb0bc8228994d83
BLAKE2b-256 checksum
How to use checksums
a173f592c3370ee5385208491d55483f4d5ae34642a0220a39bf79b32fb0857d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Release files / hypersynchronization-0.2-py3-none-any.whl

Download URL hypersynchronization-0.2-py3-none-any.whl
Size 15.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
683795e626982d40375f7cd160c031d802e7c90fcb67a51915da553dfd39d51a
BLAKE2b-256 checksum
How to use checksums
5bf3cfb5543cb6707dff1c9b252e67bc886ad09f20c825d900e31cb61ef6ef60
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.9

Security for hypersynchronization 0.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.2 This release

2 release files No 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