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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| padic_ml-0.0.1.tar.gz | 17.0 kB | Without provenance | Details for padic_ml-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| padic_ml-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for padic_ml-0.0.1-py3-none-any.whl |
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
|
Security for padic-ml 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.