CyRSoXS: A GPU-accelerated virtual instrument for Polarized Resonant Soft X-ray Scattering (P-RSoXS)

Kumar Saurabh, Peter J. Dudenas, Eliot Gann, Veronica G. Reynolds, Subhrangsu Mukherjee +7 more
9/27/2022
4 citations
physics.comp-phcs.MS

Official code: usnistgov/cyrsoxs (16 stars, C++, MIT, last commit 2026-03-23). 1 more implementation below.

Abstract

Polarized Resonant Soft X-ray scattering (P-RSoXS) has emerged as a powerful synchrotron-based tool that combines principles of X-ray scattering and X-ray spectroscopy. P-RSoXS provides unique sensitivity to molecular orientation and chemical heterogeneity in soft materials such as polymers and biomaterials.

Show full abstract

Quantitative extraction of orientation information from P-RSoXS pattern data is challenging because the scattering processes originate from sample properties that must be represented as energy-dependent three-dimensional tensors with heterogeneities at nanometer to sub-nanometer length scales. We overcome this challenge by developing an open-source virtual instrument that uses GPUs to simulate P-RSoXS patterns from real-space material representations with nanoscale resolution. Our computational framework CyRSoXS (https://github.com/usnistgov/cyrsoxs) is designed to maximize GPU performance. We demonstrate the accuracy and robustness of our approach by validating against an extensive set of test cases, which include both analytical solutions and numerical comparisons, demonstrating a speedup of over three orders relative to the current state-of-the-art simulation software. Such fast simulations open up a variety of applications that were previously computationally infeasible, including (a) pattern fitting, (b) co-simulation with the physical instrument for operando analytics, data exploration, and decision support, (c) data creation and integration into machine learning workflows, and (d) utilization in multi-modal data assimilation approaches. Finally, we abstract away the complexity of the computational framework from the end-user by exposing CyRSoXS to Python using Pybind. This eliminates I/O requirements for large-scale parameter exploration and inverse design, and democratizes usage by enabling seamless integration with a Python ecosystem (https://github.com/usnistgov/nrss).

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
usnistgov/cyrsoxsOfficial16C++MIT2026-03-23
usnistgov/NRSSOfficial11Jupyter Notebook–2026-08-16
usnistgov/cyrsoxsOfficial100%
MIT

Cy-RSoXS Forward Simulator for Resonant Soft X-Ray Scattering

168C++, CudaAug 11, 20218 months agoMIT
usnistgov/NRSSOfficial100%

NIST RSoXS Simulation Suite

114Jupyter Notebook, PythonSep 16, 20223 months agoNOASSERTION

Similar Papers

Cite this paper

@article{saurabh2022cyrsoxs,
  title  = {CyRSoXS: A GPU-accelerated virtual instrument for Polarized Resonant Soft X-ray Scattering (P-RSoXS)},
  author = {Kumar Saurabh and Peter J. Dudenas and Eliot Gann and Veronica G. Reynolds and Subhrangsu Mukherjee and Daniel Sunday and Tyler B. Martin and Peter A. Beaucage and Michael L. Chabinyc and Dean M. DeLongchamp and Adarsh Krishnamurthy and Baskar Ganapathysubramanian},
  year   = {2022},
  eprint = {2209.13121},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.13121}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.13121.svg)](https://codeofpaper.com/paper/2209.13121)

Discussion