#monte-carlo #triangulation #gravity #quantum #edt

dyntri-cdt2d

Markov-chain Monte Carlo simulator of 2D Causal Dynamical Triangulations

10 releases

Uses new Rust 2024

new 0.4.3 Mar 27, 2025
0.4.2 Mar 27, 2025
0.3.5 Mar 14, 2025
0.3.0 Feb 27, 2025

#216 in Simulation

Download history 209/week @ 2025-02-26 243/week @ 2025-03-05 152/week @ 2025-03-12 287/week @ 2025-03-19

891 downloads per month

GPL-3.0-or-later

195KB
3.5K SLoC

dyntri-rs

Dynamical Triangulations in Rust

Crates.io Version docs.rs GitLab License

The dyntri-core crate aims to form a base and provide standard triangulation and graph structures, which DT generators can use to provide interoperability and make use of the provided observables. The dyntri-edt2d and dyntri-cdt2d crates provide implementations of 2D Euclidean and Causal Dynamical Triangulation generators respectively.

This repository is a major refactor of the old dyntri crate, with a focus on interoperability and simplicity.

Using the library

Add the following dependencies via crates.io for the latest release versions. Alternatively, if you would like the latest development version you can use cargo's feature to add dependencies directly from a git repository. Create a Rust project and to Cargo.toml add:

[dependencies]
dyntri-core = { git = "https://gitlab.com/dynamical-triangulation/dyntri-rust.git" }
# Add desired triangulation generators
dyntri-cdt2d = { git = "https://gitlab.com/dynamical-triangulation/dyntri-rust.git" }
dyntri-edt2d = { git = "https://gitlab.com/dynamical-triangulation/dyntri-rust.git" }

This will use the most recent commit of the main branch. It is also possible to use other versions of the library, for options see the Cargo docs

Documentation

https://docs.rs/dyntri-core https://docs.rs/dyntri-edt2d https://docs.rs/dyntri-cdt2d

Example of use

Check out the /examples directories of the different crates to see examples of use.

Dependencies

~2–2.8MB
~50K SLoC