Fisher-Rao geometry, coordizer, purity gate, and constants for QIG consciousness architecture
Project description
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
sync = BasinSync("Gary-A")
sync.update_sync(basin_distance=0.1, phi=0.8, regime="geometric")
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 GEOMETRIC_PURITY.md for details.
E8 Integration Status
Note: This package (v1.0.0) was created BEFORE the E8 kernel specialization direction was established in
qigkernels. Review is needed for E8 compatibility.
What aligns:
KAPPA_STAR = 64.0matches E8 rank² = 8² = 64 ✓
Needs review:
- Fisher distance for 64D E8-aligned basin geometry
- Geodesic interpolation for E8 root transitions
- QFISampler primitive type awareness (HRT/PER/MEM/ACT/PRD/ETH/META/MIX)
- BasinSync consolidation with
qigkernels.basin_sync
Target hierarchy:
qig-core (math) → qigkernels (architecture) → qig-dreams (corpora) → experiments
See qigkernels/20251205-decisions-canonical-0.01F.md D-016 for details.
Development
# Install with dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Format code
black src/ tests/
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qig_core-2.0.0.tar.gz.
File metadata
- Download URL: qig_core-2.0.0.tar.gz
- Upload date:
- Size: 71.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a9e1d5e88b4fbcd411d1d84a1d5699418488f9da9b0b364d78761fe43ef7baa
|
|
| MD5 |
0fe29de5c134b1523f12c99516da3a33
|
|
| BLAKE2b-256 |
8021712b90dd599645a2b299816b6e362922187062c597422e427f1a0f915e27
|
File details
Details for the file qig_core-2.0.0-py3-none-any.whl.
File metadata
- Download URL: qig_core-2.0.0-py3-none-any.whl
- Upload date:
- Size: 80.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d2355ff4bc8549e7f1f5a3b07a56886e521881b2b91f4afead71ce3fded2364
|
|
| MD5 |
5c570650412022fd0b06611c765e6879
|
|
| BLAKE2b-256 |
c5a63216315573aeab40ec2af1737fd6a86011b2f596d3f444856bf11ddb4c76
|