hyperuniform-samplers

Hyperuniform Point Clouds Database

DOI GitHub Home

This repository distributes the Hyperuniform samples database, published on Zenodo. The database contains hyperuniform point clouds (e.g. blue noise) on the unit hypercube [0,1)ᴰ.

2D example (the N = 1024, D = 2 point clouds (l2) of this database) :

2D example, N = 1024, l2

Installation

pip install numpy h5py

Optional: scipy for the benchmark, matplotlib and blue-sampler for the analysis cells of the notebook.

Quick Start

First clone this repository:

git clone https://github.com/For-a-few-DPPs-more/hyperuniform-samplers.git
cd hyperuniform-samplers

Then, from the terminal, load the full database and generate a new randomized point cloud:

python src/load_data.py --dim all --ball all
python src/new_data.py --dim 2 --npoints 1024 --ball l2 --seed 42

Or from a notebook: see quick_start.ipynb and follow the instructions.

Data characteristics

Note: Large storage. In low dimensions (D ≤ 4), the Zenodo database provides additional, much larger point clouds, to be downloaded manually (larges.zip, 2.7 GB). They go up to N = 2²⁷ ≈ 134 million points in 2D, 2²⁵ ≈ 34 million in 3D and 2²¹ ≈ 2 million in 4D.

ND_coverage

Sampling method

The samples were generated by spectral optimisation (non-uniform Fourier transform) with the qmc-sampler Python package: the sampling algorithm selects a spectral exclusion set of wave vectors, initialises the point cloud with i.i.d. uniform points in the unit hypercube, runs a gradient descent on the Fourier loss, and completes the optimisation with a quasi-Newton (L-BFGS) finishing. For speed, the whole optimisation runs in float32 and reaches an almost minimal configuration, S(k) ≤ 2·10⁻¹⁴ N + 3·10⁻¹² |k|² for all excluded wave vectors1, which is the level at which the L-BFGS optimiser empirically starts stalling due to numerical precision. Each resulting point cloud comes in two versions:

Note that l2 is isotropic (rotation invariant), which is good for blue noise properties, and wd has a stary, axis oriented shape which is good for qmc integration on low effective dimensional integrands:

exclusion_regions

All details for reproducibility are in SAMPLING.md.

Guarantees

Stealthiness

For a wave vector k = (k₁, …, k_D) with integer components, let define the scattering intensity S(k) as:

S(k) = |Σⱼ exp(2iπ ⟨k, xⱼ⟩)|² / N
A near-zero S(k), as here for the provided samples (S(k) ≤ 2·10⁻¹⁴ N + 3·10⁻¹² k ²)1 means that the Monte Carlo integration error is controlled for the low-frequency test function x ↦ exp(2iπ ⟨k, x⟩). The number of such controlled wave vectors is at most 2 * Chi * (N -1) * D where Chi is an hyperparametter that we set to 0.43 (common choices are 0.3 and 0.4, see for exemple Morse et al. (2023) ) and the factor 2 comes from the symmetry S(k) = S(-k).
Following plots show the values of S(k) for the 2 ball families, 1. as a power spectrum map (kx, ky) ↦ S(k) for 2d point clouds only and 2. as a radial k ↦ S(k) curve (average over radial bins) for dimensions D = 2 to 16 :

l2 and wd ball, N = 8192, D = 2

power spectrum

l2 ball, N = 1024, D = 2 to 16

l2

wd ball, N = 1024, D = 2 to 16

wd

Randomisability

Spectral optimisation enforces periodic boundary conditions, so a sample can be randomised by a simple shift:

X_new = (X - s) mod 1, s drawn uniformly in [0,1]^D

Extensibility

src/load_data.py downloads the samples with 2¹⁰ ≤ N ≤ 2¹⁷ and D = 2 to 16, 20, 24, 28, 32. Other (N, D) shapes are produced on the fly by src/new_data.py, at a controlled loss of quality:

Use cases

Note - adaptative sampling Although this database contains only uniform samples, spectral optimisation can be adapted to non-uniform target distributions (not covered by this repository). This could be of use for importance sampling or when one require well distributed points, but under a specific spatial distribution.

Acknowledgements

GPU kernel reductions rely on PyKeOps:

Charlier, Feydy, Glaunès, Collin, Durif, “Kernel Operations on the GPU, with Autodiff, without Memory Overflows”, JMLR 22(74), 2021.

The large 2D and 3D point clouds rely on FINUFFT:

Barnett, Magland, af Klinteberg, “A parallel non-uniform fast Fourier transform library based on an exponential of semicircle kernel”, SIAM J. Sci. Comput. 41(5), 2019.

Citation

If you use this database, you can cite it as:

@dataset{bardenet_lachiezerey_decacqueray_2026_hyperuniform,
  author    = {Bardenet, Rémi and Lachièze-Rey, Raphaël and de Cacqueray, Armand},
  title     = {Hyperuniform samples (stealthy point clouds)},
  year      = {2026},
  publisher = {Zenodo},
  version   = {v5},
  doi       = {10.5281/zenodo.23605844},
  url       = {https://doi.org/10.5281/zenodo.23605844}
}

Licence

The database and the source code are free to use under the MIT licence.

  1. An exhaustive float64 check of the whole dataset shows that a marginal proportion of the wave vectors (0.0002 %), all in the wd case, exceed this bound, by up to a factor 20 while remaining below S(k) ≤ 10⁻³. The phenomenon is not fully understood, most likely a numerical artifact at specific axial frequencies. These wave vectors are listed in infos/STEALTHY.md. ↩ ↩2