Skip to content

Perseus 6.0.0

Choose a tag to compare

@viditnanda viditnanda released this 17 Nov 10:45
· 78 commits to main since this release
bbd2520

Perseus 6 is a complete rewrite of the Perseus persistent homology software. Its main new feature is a certificate: it computes the barcode over the rationals and lists exactly which primes p give a different barcode over F_p, and how the barcode changes for each.

What it computes

  • Rational barcodes with bad primes. Perseus first tries exact 64-bit arithmetic. If that suffices (the usual case), the barcode and the list of bad primes are proved.
    • On heavy torsion it switches to random 62-bit primes and reports an error bound that holds for every input (below 2^-64 by default).
    • --mode proved uses exact arithmetic throughout, with big integers where needed.
    • Bad primes above 2^64, and composites that can't be factored, are still classified: one run modulo N settles every prime factor of N at once.
  • Any prime field, with --coeff p.
  • Inputs:
    • Vietoris–Rips complexes of point clouds and distance matrices;
    • flag complexes;
    • simplicial and general cell complexes (arbitrary integer boundary coefficients);
    • cubical complexes: images, volumes and higher-dimensional grids, with periodic axes.

Engines

  • Rips: an implicit engine with edge collapse for degree 2 and up, and a sparse flag-complex engine for large sparse point clouds. The choice between them is automatic.
  • Cubical: an implicit engine in the design of Cubical Ripser. It is close to Cubical Ripser's speed and uses a third of its memory on large images.
  • On SO(3) and Linial–Meshulam benchmarks it is about 1.4–2× faster than GUDHI (with edge collapse) and Dionysus. Full comparisons, including where other tools win, are in the README.

Python

pip install perseus-tda

The functions are perseus.rips, flag, cubical, cells and simplices, with the same options and certificate as the command line.

Downloads

Ready-built executables for Linux (x86_64), macOS (Apple silicon and Intel) and Windows are attached below.

Notes

  • Old Perseus 4/5 input files can be converted with tools/convert_legacy.py. It reproduces the old semantics exactly; Perseus 4/5 computed over F_2.
  • The proofs behind the certificate are in docs/CERTIFICATE.md. Prior work used is credited in docs/TECHNIQUES.md.
  • On 2D images, GUDHI's CubicalPersistence is currently much faster. A dedicated 2D path is planned for 6.1.

MIT licence. To cite, use the Zenodo DOI for this release (see CITATION.cff).