# Accelerating Staple Networks for Normalizing Flows in Lattice Quantum Chromodynamics

> Source: <https://research.colfax-intl.com/accelerating-staple-networks-for-normalizing-flows-in-lattice-quantum-chromodynamics/>
> Published: 2026-11-21 04:52:55+00:00

**Recommendation:** When a flow or sampling model is too slow at useful resolution, write the core kernel in CuTe DSL rather than relying on generic framework code, as Colfax did for the lattice QCD staple network.
More in the playbook "Inference and self-hosting": <https://wpnews.pro/playbooks/inference-serving>

Machine learning offers a promising route to accelerating lattice quantum chromodynamics (QCD) simulations. In particular, normalizing flows can speed up Monte Carlo sampling in lattice QCD [1, 2] (also see [3] for an introductory tutorial), but there is a high computational cost to running these flow models at a useful resolution. This post describes our use of CuTe DSL kernels to accelerate the staple network, a core component of our approach to implementing these flows.

The post [Accelerating Staple Networks for Normalizing Flows in Lattice Quantum Chromodynamics](https://research.colfax-intl.com/accelerating-staple-networks-for-normalizing-flows-in-lattice-quantum-chromodynamics/) appeared first on [Colfax Research](https://research.colfax-intl.com).
