Skip to main content

sde-sim-rs: Flexible stochastic differential equation simulation library written in Rust

Release PyPi Release Crate

sde-sim-rs is a high-performance library for simulating stochastic differential equations (SDEs), which are foundational in fields like quantitative finance, physics, and biology. By leveraging the speed and memory safety of Rust, the project provides a fast and flexible core while offering seamless bindings for use in Python and Rust. This project is ideal for researchers, data scientists, and developers who need to run complex SDE using Monte-Carlo and quasi Monte-Carlo simulations with remarkable efficiency and reliability, while bridge the gap between high-performance compiled languages and the scientific computing ecosystem of Python.

Features

High Performance: The implementation in Rust provides bare-metal performance, which is critical for time-sensitive and computationally intensive simulations. The language's zero-cost abstractions and memory-safe concurrency models allow for the efficient handling of large datasets and provide the potential for parallelizing simulation tasks, offering a significant speed advantage over purely interpreted solutions.

Flexibility: The library's design and modular architecture allows for the creation and integration of custom SDE models to suit specialized research or application needs.

Multiple Simulation Methods: The library includes both Monte Carlo (MC) simulation, using pseudo-random numbers, and Randomized Quasi-Monte Carlo (RQMC) simulation, using Sobol sequences randomized by scrambling (random XOR) to provide an unbiased estimate with better sample coverage.

Multiple Integration Schemes: The library also implements several integration schemes, including Euler-Maruyama and Runge-Kutta first order.

Python Integration: A user-friendly and comprehensive Python interface via maturin allows you to utilize the Rust core without leaving your Python environment. This means data scientists and researchers can leverage the speed of a compiled language for the most demanding parts of their code, with bindings designed for seamless function calls and data exchange between the two languages.

Setup

Python

Install the latest sde-sim-rs version with:

pip install sde-sim-rs

Requires Python version >=3.11,<3.15.

To build the package locally for, you'll first need to compile the Rust package for local development. The project is set up to use maturin and uv. This command builds the Rust library and creates a Python wheel that can be used directly in your environment.

uv build

After the compilation is complete, you can run the example to see how the library works. This command uses uv to execute the Python example script.

uv run examples/example.py

Rust

You can take latest release from crates.io, or if you want to use the latest features / performance improvements point to the main branch of this repo.

sde-sim-rs = { git = "https://github.com/Aschii85/sde-sim-rs", rev = "<optional git tag>" }

An example file for using the crate can be found in examples/example.rs, which can be run using cargo run -r --example example.

Links

Contributing

We welcome contributions from the community! If you'd like to contribute, please feel free to open an issue to discuss a feature or a bug fix, or submit a pull request with your changes.

Release files for sde-sim-rs 0.5.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 sde-sim-rs 0.5.1
File Size Uploaded
sde_sim_rs-0.5.1.tar.gz 42.4 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for sde-sim-rs 0.5.1
File
sde_sim_rs-0.5.1-pp310-pypy310_pp73-manylinux_2_28_armv7l.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.28+ ARMv7l Details
sde_sim_rs-0.5.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl PyPy 3.10 PyPy 3.10 7.3 Linux glibc 2.28+ ARM64 Details
sde_sim_rs-0.5.1-pp39-pypy39_pp73-manylinux_2_28_armv7l.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.28+ ARMv7l Details
sde_sim_rs-0.5.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.28+ ARM64 Details
sde_sim_rs-0.5.1-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details
sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_i686.whl CPython 3.10 abi3 Linux musl 1.2+ x86-32 Details
sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_armv7l.whl CPython 3.10 abi3 Linux musl 1.2+ ARMv7l Details
sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_aarch64.whl CPython 3.10 abi3 Linux musl 1.2+ ARM64 Details
sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_i686.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-32 Details
sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_armv7l.whl CPython 3.10 abi3 Linux glibc 2.28+ ARMv7l Details
sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
sde_sim_rs-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64), macOS 10.12+ x86-64, macOS 11.0+ ARM64 Details

Total release size: 286.7 MB

Release files / sde_sim_rs-0.5.1.tar.gz

Download URL sde_sim_rs-0.5.1.tar.gz
Size 42.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e540c1c8aa11173f8d8cf2970eaddedf0c6699145437fa6d0b9d21ceda10048d
BLAKE2b-256 checksum
How to use checksums
5a0d5608971c5858c4569b4f1034194c1e9095a41550e108adfec38ea821e767
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-pp310-pypy310_pp73-manylinux_2_28_armv7l.whl

Download URL sde_sim_rs-0.5.1-pp310-pypy310_pp73-manylinux_2_28_armv7l.whl
Size 19.0 MB
Tags Linux glibc 2.28+ ARMv7l PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
02037a5421f8122ebbb6f6ba7233578f3270bf65b25e2d30eaa7b76daa1c8df9
BLAKE2b-256 checksum
How to use checksums
5ff7fc0bff6d1c1cfda7e7810024f7c53265613b807480eb00061ba4d1601b50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl

Download URL sde_sim_rs-0.5.1-pp310-pypy310_pp73-manylinux_2_28_aarch64.whl
Size 19.1 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.10 PyPy 3.10 7.3
SHA-256 checksum
How to use checksums
8f072fb7037e0f70bb145f26330acd3211f371bd770ccdfce7475cb25f9e2e27
BLAKE2b-256 checksum
How to use checksums
7ec91acbb804e589c29537a7a4f4241389473ec81d4e92fb094346bca53640ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-pp39-pypy39_pp73-manylinux_2_28_armv7l.whl

Download URL sde_sim_rs-0.5.1-pp39-pypy39_pp73-manylinux_2_28_armv7l.whl
Size 19.0 MB
Tags Linux glibc 2.28+ ARMv7l PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
138bba720ecadd87ac54fb0aaf5c4e00c53b96f09ecc584c9626c0de7c22a1a1
BLAKE2b-256 checksum
How to use checksums
f7b86c5c86e7d6c49a52426186163b87ef7e1e9dd77690c3c284b6b774fb4b14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl

Download URL sde_sim_rs-0.5.1-pp39-pypy39_pp73-manylinux_2_28_aarch64.whl
Size 19.1 MB
Tags Linux glibc 2.28+ ARM64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
1b62dd0ae6ab5d1ebacc4183a32410206fd65e70c0fa58fec77d69974cf3eb9a
BLAKE2b-256 checksum
How to use checksums
7f40bf49c63c15eb30bce1c573bc2236920e3acc8f55161b47e7bf6f04ea78ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-win_amd64.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-win_amd64.whl
Size 17.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
de7209ea9c48165e42049b286adb3ec597bad15ed423a79b6314047fadb4e6eb
BLAKE2b-256 checksum
How to use checksums
b4ea4e19f75e554921f9823d50187b0702fd9d150c8a707fb16cce67d9d5397a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_x86_64.whl
Size 19.7 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
4de67d170af2e977e71ca7ced770b9019b0fffe8081e2f102eddbeee4669aebe
BLAKE2b-256 checksum
How to use checksums
1c999b139c455e36904df39b1427b3f85dbd958f2d583b143e574913730c0ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_i686.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_i686.whl
Size 20.5 MB
Tags CPython 3.10 Linux musl 1.2+ x86-32 abi3
SHA-256 checksum
How to use checksums
bc8774c4254104791a6697d027a9f038e09cc105a5e13fc6e6aae9729f24cfc8
BLAKE2b-256 checksum
How to use checksums
de8adcba4186f7ff48ea40fb582e5bd38b47ddb35725f4d1cdd384afe613cc15
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_armv7l.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_armv7l.whl
Size 19.2 MB
Tags CPython 3.10 Linux musl 1.2+ ARMv7l abi3
SHA-256 checksum
How to use checksums
f496a6e73dfe2c9b99c5455c6d2bdb7be70463c1d8c91b2923c03111fd2010e3
BLAKE2b-256 checksum
How to use checksums
5f12ad21511ce1a908594ccbddbed9d39858158d79737e422ca26f2a6c632dbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_aarch64.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-musllinux_1_2_aarch64.whl
Size 19.2 MB
Tags CPython 3.10 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
2ae66041ec4a6151f678c068f743d3af2248e3869254946f471491beecb03582
BLAKE2b-256 checksum
How to use checksums
5f5e8540fe9df95c3fe18f8a65d0315446ae90c81b642cf2352a711bc0969780
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_x86_64.whl
Size 18.9 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
d2349e52c31a369692755afa6e081007bf0b3572955bc229be3e2ba288d45ab4
BLAKE2b-256 checksum
How to use checksums
ef78b478fcdc2402d2645ea0a163ac913269b20a1d3a63c1f0c0c76ab1801638
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_i686.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_i686.whl
Size 21.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-32 abi3
SHA-256 checksum
How to use checksums
de4e7eb3659777126a62e8a697c0027477106748d555aae7dc0c4a12db2c2cad
BLAKE2b-256 checksum
How to use checksums
1c413734c70e4576be822d99167cc0fd7d311f9d3f96c0cdcc77375b86842e92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_armv7l.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_armv7l.whl
Size 19.0 MB
Tags CPython 3.10 Linux glibc 2.28+ ARMv7l abi3
SHA-256 checksum
How to use checksums
931b01c6865ebc315ad7b0e63a15cdf9a8022563ccd68a9914b4923ed04f1230
BLAKE2b-256 checksum
How to use checksums
f330a3afd3b4a1fa8cb213a25c24e98e292bbef1e7c048997e479fa51d4eceea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-manylinux_2_28_aarch64.whl
Size 19.1 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
00565680bc15fe32c6079f2e30cd96171f04d77c1ecbc9e9880a4e92819b8663
BLAKE2b-256 checksum
How to use checksums
73e7f9035599d996474cc64c85090f61a5760e6e45129727c851ecb9f9eacccb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release files / sde_sim_rs-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl

Download URL sde_sim_rs-0.5.1-cp310-abi3-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl
Size 35.8 MB
Tags CPython 3.10 abi3 macOS 10.12+ universal2 (ARM64, x86-64) macOS 10.12+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0eb3d4ed3b9b2fdb865cba1eeaa2cf69dcc4b1e710852050fa4c85421e5b464d
BLAKE2b-256 checksum
How to use checksums
aacd183823559d56b570cd34fd0c9532b76abf7c814d80ebb19a43b0db29ef81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Mar 3, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.1 This release

15 release files

0.4.0

53 release files

0.3.0

53 release files

0.2.0

56 release files

0.1.1

56 release files

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