Saved in:
Bibliographic Details
Main Authors: Lebeda, Miroslav, Drahokoupil, Jan, Veřtát, Petr, Vlčák, Petr
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2602.11709
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866917304902615040
author Lebeda, Miroslav
Drahokoupil, Jan
Veřtát, Petr
Vlčák, Petr
author_facet Lebeda, Miroslav
Drahokoupil, Jan
Veřtát, Petr
Vlčák, Petr
contents High-throughput powder X-ray diffraction (XRD) simulations are a key prerequisite for generating large datasets used in the development of machine-learning models for XRD-based materials analysis. However, the widely used pymatgen powder XRD calculator, implemented entirely in Python, can be computationally inefficient for large-scale workloads, limiting throughput. We present XRD-Rust, a Rust-accelerated implementation of the pymatgen powder XRD calculator that maintains full compatibility with existing Python-based workflows. The method retains pymatgen for crystal structure handling and symmetry analysis while reimplementing the computationally intensive parts of the XRD calculation in Rust. Performance benchmarks were carried out on large crystallographic datasets from the Materials Cloud Three-Dimensional Structure Database (MC3D, 33 142 structures) and the Crystallography Open Database (COD 515 181). For the MC3D dataset, XRD-Rust achieves an average speedup of 4.7 +- 1.6 and a maximum speedup of 25, reducing computation from 34.9 s to 1.4 s. For the COD dataset, the average speedup is 6.1 +- 4.6 with a maximum speedup of 719 (1437 min to 2 min). These benchmarks demonstrate that XRD-Rust significantly accelerates powder XRD simulations, enabling efficient high-throughput dataset generation and improved performance in interactive diffraction analysis applications.
format Preprint
id arxiv_https___arxiv_org_abs_2602_11709
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Rust-accelerated powder X-ray diffraction simulation for high-throughput and machine-learning-driven materials science
Lebeda, Miroslav
Drahokoupil, Jan
Veřtát, Petr
Vlčák, Petr
Materials Science
High-throughput powder X-ray diffraction (XRD) simulations are a key prerequisite for generating large datasets used in the development of machine-learning models for XRD-based materials analysis. However, the widely used pymatgen powder XRD calculator, implemented entirely in Python, can be computationally inefficient for large-scale workloads, limiting throughput. We present XRD-Rust, a Rust-accelerated implementation of the pymatgen powder XRD calculator that maintains full compatibility with existing Python-based workflows. The method retains pymatgen for crystal structure handling and symmetry analysis while reimplementing the computationally intensive parts of the XRD calculation in Rust. Performance benchmarks were carried out on large crystallographic datasets from the Materials Cloud Three-Dimensional Structure Database (MC3D, 33 142 structures) and the Crystallography Open Database (COD 515 181). For the MC3D dataset, XRD-Rust achieves an average speedup of 4.7 +- 1.6 and a maximum speedup of 25, reducing computation from 34.9 s to 1.4 s. For the COD dataset, the average speedup is 6.1 +- 4.6 with a maximum speedup of 719 (1437 min to 2 min). These benchmarks demonstrate that XRD-Rust significantly accelerates powder XRD simulations, enabling efficient high-throughput dataset generation and improved performance in interactive diffraction analysis applications.
title Rust-accelerated powder X-ray diffraction simulation for high-throughput and machine-learning-driven materials science
topic Materials Science
url https://arxiv.org/abs/2602.11709