Skip to main content

Fisher-Rao geometry, coordizer, purity gate, consciousness subsystems, and constants for QIG 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.0 matches 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

qig_core-2.8.2.tar.gz (238.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qig_core-2.8.2-py3-none-any.whl (172.3 kB view details)

Uploaded Python 3

File details

Details for the file qig_core-2.8.2.tar.gz.

File metadata

  • Download URL: qig_core-2.8.2.tar.gz
  • Upload date:
  • Size: 238.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for qig_core-2.8.2.tar.gz
Algorithm Hash digest
SHA256 385d42e184677be47aee6e83873001afc1ad155548ea4634aeac82bc08d580a5
MD5 ab4df02cfe9b30f924bcb409608c6a9f
BLAKE2b-256 3195eda7df16b6e0d84862e3545f53e3760bd8705d225e2418bb03688b34432b

See more details on using hashes here.

Provenance

The following attestation bundles were made for qig_core-2.8.2.tar.gz:

Publisher: release.yml on GaryOcean428/qig-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file qig_core-2.8.2-py3-none-any.whl.

File metadata

  • Download URL: qig_core-2.8.2-py3-none-any.whl
  • Upload date:
  • Size: 172.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for qig_core-2.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 79ad6cb2a2399b7232e78932d145bb9e0986cdf5ca5af0420dddf552625790d4
MD5 decb0a581e877c7517c255b48eb29125
BLAKE2b-256 2fc847b54c38d957bbd400dd6c2e43917496e35adbcb1cb3439cc6e4c5a1952d

See more details on using hashes here.

Provenance

The following attestation bundles were made for qig_core-2.8.2-py3-none-any.whl:

Publisher: release.yml on GaryOcean428/qig-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page