← Latest papers
🔬 condensed matter

CoBarS: Fast reweighted sampling for polygon spaces in any dimension

This paper introduces CoBarS, the first algorithm that efficiently and correctly samples random closed nn-gons with fixed edge lengths in any dimension by generating open polygons, applying an O(n)O(n) Möbius transformation to close them, and computing explicit reweighting factors to transform the resulting distribution into standard measures like symplectic volume.

Original authors: Jason Cantarella, Henrik Schumacher

Published 2026-08-03
📖 4 min read☕ Coffee break read

Original authors: Jason Cantarella, Henrik Schumacher

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are a detective trying to solve a mystery about how things move and connect. In the world of science, there is a special branch called statistical physics that studies how giant chains of atoms, like the plastic in a water bottle or the DNA in your cells, wiggle and fold. These chains are often modeled as "polygons"—shapes made of straight sticks connected end-to-end. If the chain is a ring, the first stick must connect back to the last one, forming a closed loop. Scientists also care about these shapes in robotics, where a robot arm with joints that can spin in any direction is essentially a polygon trying to reach a target without breaking its own rules.

The big challenge is that these shapes can twist into an almost infinite number of configurations. To understand them, scientists need to take a "snapshot" of a random shape, but not just any random shape—they need a snapshot that is perfectly fair, representing every possible shape with the correct probability. Think of it like rolling a die: if you want to know the average roll, you need a fair die where every number has an equal chance. If your die is weighted (biased), your answer will be wrong. For decades, scientists had trouble creating a "fair die" for these complex, multi-dimensional shapes, especially when the sticks were different lengths or the shapes existed in spaces with more than three dimensions.

This is where the paper "CoBarS: Fast reweighted sampling for polygon spaces in any dimension" steps in. The authors, Jason Cantarella and Henrik Schumacher, have invented a clever new method to generate these random shapes quickly and fairly. Their approach is like a magic trick involving a rubber sheet and a magnet.

First, they start with an "open" polygon—a chain of sticks that doesn't quite close the loop. They pick the directions of these sticks randomly, like spinning a compass needle for each stick. Usually, this open chain won't close; the end will be far from the start. To fix this, they use a mathematical tool called a Möbius transformation. You can imagine this as a special kind of lens or a stretchy rubber sheet that bends space. They use this lens to warp the open chain until the "center of gravity" of the sticks lands exactly on the origin, effectively pulling the ends together to close the loop.

Here is the catch: simply warping the shape changes the odds. Some shapes become more likely to appear, and others become rare, just like stretching a rubber sheet makes some parts thicker and others thinner. If you just took these warped shapes as your final answer, your "die" would be weighted, and your scientific results would be biased.

The paper's main breakthrough is figuring out exactly how biased the results are and providing a formula to fix it. They calculated "reweighting factors"—mathematical correction numbers that tell you how much to trust each shape you generated. By multiplying the results by these factors, they cancel out the bias, ensuring that every possible shape is counted with the perfect, fair probability.

The authors proved that their method works for polygons in any number of dimensions (not just the 3D world we live in) and for any set of stick lengths, as long as the sticks aren't so uneven that they can't possibly close. They also showed that this process is incredibly fast. While older methods took time that grew quadratically (getting much slower as the number of sticks increased), their new method, called CoBarS, scales linearly. This means if you double the number of sticks, the time it takes only doubles, not quadruples.

In their experiments, they tested their method against known mathematical answers for hexagons (six-sided shapes) and tetragons (four-sided shapes). The results matched the theory perfectly, even when they used a million random samples. They also compared their speed to other popular methods, finding that for shapes with more than about 50 sticks, their new algorithm was significantly faster at giving accurate answers.

The paper doesn't just offer a new way to guess shapes; it offers a way to prove those guesses are correct. They provided an open-source code so anyone can use this "fair die" to study everything from how polymers fold to how robot arms move. While they didn't solve every mystery about these shapes, they gave scientists a powerful, fast, and reliable tool to explore the vast, twisting world of polygon configurations with confidence.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →