Skip to main content

padic-ml

WORK IN PROGRESS. Paper code is being refactored into this library. Thanks for your patience!

This is a JAX library for differentiable training of p-adic neural networks, implementing methods described in Continuous Optimization for p-adic Models (arXiv 2026).

Install with pip install padic-ml.

Disclaimer: This is not an officially supported Google product.

Usage

PArray is an array primitive for "learnable" p-adic numbers (points in the p-adic injective hull $\Gamma_p$ in Berkovich space).

With radius 0 (no second argument), these become ordinary p-adic numbers $\mathbb{Q}_p$.

>>> import padic_ml as pml
>>> p1 = pml.array([3, 4], radius=[1, 3], p=3)
>>> p2 = pml.array([7, 1], p=3)
>>> p1*p2
PArray(unit=Array([7, 4], dtype=int32), valuation=Array([1, 0], dtype=int32), log_radius=Array([0., 1.], dtype=float32), p=3)

Metadata

Release files for padic-ml 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for padic-ml 0.0.1
File Size Uploaded
padic_ml-0.0.1.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for padic-ml 0.0.1
File Interpreter ABI Platform
padic_ml-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 36.6 kB

Release files / padic_ml-0.0.1.tar.gz

Download URL padic_ml-0.0.1.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f2c1474b0b25d0a9f62033a392866379fa2727c763e3888eb48117e8472e6181
BLAKE2b-256 checksum
How to use checksums
234bb9b14ee84c411dde73926d28a11a8d4076bee1c13dfcfaf4ae2008cbe93e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / padic_ml-0.0.1-py3-none-any.whl

Download URL padic_ml-0.0.1-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1819f9d15ad8f716bf476cdade7f62c6deb237d1f96f8251f21f6221304b5b0c
BLAKE2b-256 checksum
How to use checksums
163e07ed16267779e7f6e3a963bff3731ad1124ee65f9bf4f033f7b73a41da61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page