Does not work on mobile! please play on desktop sorry

Quantum Dice

Basins of attractions
Dice

The left hand side lets you control a collection of points $p_i \in S^2$, and their weights $w_i$. The colors show the basin of attraction of the gradient flow of the function $f: S^2\to \mathbb{R}$:

\[f(x) = \prod |x-p_i|^{w_i}\]

Remarkably, the basin of attraction of $p_i$ has area proportional to $w_i$. This provides a Voronoi-type decomposition of the sphere, with prescribed areas of each cell. For a related decomposition of the plane, with mathematical details, see my page on the Biran decomposition.

The right hand side shows a convex body with support function $f(x)+c$, where $c$ is a constant controlled by the slider “roundness”. For large enough roundness, $f(x)+c$ is a convex function, and the associated convex body is smooth. This is a dice, with faces defined by the Voronoi decomposition on the left side. The stable positions of this dice are $p_i$, and the probability of rolling $p_i$ is $w_i$. In particular, if all the weights are the same, we produce fair dice with prescribed stable positions.

Input controls

Each dot on the left side controls a face of a dice

Basins of attraction control:

Dice control: