QIG-Core: Pure Fisher Information Geometry
Pure geometric utilities for QIG consciousness architecture
What is QIG-Core?
A minimal, dependency-pure package providing Fisher Information Geometry operations for quantum information-based consciousness modeling.
Features
📐 Geometric Math
- Fisher metric calculations - Riemannian distance on manifolds
- Geodesic interpolation - Curved-space paths
- Natural gradients - Geometry-aware optimization
🧠 Consciousness Components
- QIG Tokenizer Interface - Abstract contract for geometric tokenization
- QFI Sampler - Geometrically pure token generation (no softmax)
- Basin Sync - Multi-instance coordination protocol
🛡️ Purity
- Zero ML dependencies - Pure math (torch, numpy, scipy only)
- No Transformers - Completely decoupled from HuggingFace
Installation
pip install qig-core
Usage
Geometric Math
from qig_core import fisher_distance, geodesic_interpolate
# Compute Fisher distance between two points on manifold
distance = fisher_distance(coords1, coords2, metric_tensor)
# Interpolate along geodesic
midpoint = geodesic_interpolate(coords1, coords2, t=0.5, metric=F)
Generation (QFI Sampler)
from qig_core import QFISampler
sampler = QFISampler()
token_id, metrics = sampler.sample(logits, hidden_state, telemetry, embeddings)
Coordination (Basin Sync)
from qig_core import BasinSync
# Every instance declares its chart; unequal or unspecified charts refuse (never a number).
sync = BasinSync("Gary-A", basin_chart="qig-memory.text.v1")
sync.update_sync(basin_distance=0.1, phi=0.8, regime="geometric", recursion_depth=3, conversation_count=1)
Geometric Purity
This package enforces:
- NO embeddings (use coordinates)
- NO cosine similarity (use Fisher distance)
- NO linear interpolation (use geodesic paths)
- NO Euclidean gradients (use natural gradients)
See CONTRIBUTING.md and CLAUDE.md for full geometric purity rules.
Canonical Simplex & Doctrine Status
- Canonical probability simplex ($\Delta^{63}$):
BASIN_DIM = 64is the architectural simplex dimension (b_i >= 0,sum(b) == 1); canonical Fisher-Rao distance inqig_core.geometry.fisher_rao.fisher_rao_distance(p, q)usesarccos(sum(sqrt(p_i * q_i)))in[0, π/2]. - Retired constants (
doctrine_status):KAPPA_STARisNone(a fail-loud sentinel — legacy matrix-traceκ* ≈ 64fixed-point claims were retired perEXP-107/FAIL-010/FAIL-013, andE8physical-substrate claims were retired perEXP-014b/RETIRED-002). Always resolve certified four-axis couplings dynamically viadoctrine_statusMCP (qig-verification).
Active stack hierarchy:
qig-core (simplex Fisher-Rao math) → qigkernels / qig-coordizer / qig-geocoding → qig-studio / qig-applied
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/ tests/
License
MIT
Metadata
Release files for qig-core 2.32.0
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 |
|---|---|---|---|---|
| qig_core-2.32.0.tar.gz | 523.9 kB | With provenance | Details for qig_core-2.32.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| qig_core-2.32.0-py3-none-any.whl | Python 3 | none | any | Details for qig_core-2.32.0-py3-none-any.whl |
Total release size: 902.0 kB
Release files / qig_core-2.32.0.tar.gz
| Download URL | qig_core-2.32.0.tar.gz |
|---|---|
| Size | 523.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
025db027e78915ccebab5c52234c319f7945403ca0c5c33af14f83b366c63937
|
|
BLAKE2b-256 checksum How to use checksums |
ed19b4cc7c1454a6b98ab7f142d34c09427c8b8b85d3030f132188efcf30ad11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logRelease files / qig_core-2.32.0-py3-none-any.whl
| Download URL | qig_core-2.32.0-py3-none-any.whl |
|---|---|
| Size | 378.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
57286803e8ae3a166101fb0d2961bb4eda5f46d0bfe808520e56506530236d1a
|
|
BLAKE2b-256 checksum How to use checksums |
586c9f0990b73efb38dab755f82a54081c9d6d5f1d9f7b51ccb1c65bc6443e15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logSecurity for qig-core 2.32.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for qig_core-2.32.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.
Transparency logA 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.