Skip to main content

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 CONTRIBUTING.md and CLAUDE.md for full geometric purity rules.

Canonical Simplex & Doctrine Status

  • Canonical probability simplex ($\Delta^{63}$): BASIN_DIM = 64 is the architectural simplex dimension (b_i >= 0, sum(b) == 1); canonical Fisher-Rao distance in qig_core.geometry.fisher_rao.fisher_rao_distance(p, q) uses arccos(sum(sqrt(p_i * q_i))) in [0, π/2].
  • Retired constants (doctrine_status): KAPPA_STAR is None (a fail-loud sentinel — legacy matrix-trace κ* ≈ 64 fixed-point claims were retired per EXP-107 / FAIL-010 / FAIL-013, and E8 physical-substrate claims were retired per EXP-014b / RETIRED-002). Always resolve certified four-axis couplings dynamically via doctrine_status MCP (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.16.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 qig-core 2.16.1
File Size Uploaded Provenance Actions
qig_core-2.16.1.tar.gz 385.9 kB Without provenance Details for qig_core-2.16.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qig-core 2.16.1
File Interpreter ABI Platform Actions
qig_core-2.16.1-py3-none-any.whl Python 3 none any Details for qig_core-2.16.1-py3-none-any.whl

Total release size: 664.3 kB

Release files / qig_core-2.16.1.tar.gz

Download URL qig_core-2.16.1.tar.gz
Size 385.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b4ae4025efe3999c70db27c912e111107234fc85f18d7b131fcacbe17e799f11
BLAKE2b-256 checksum
How to use checksums
ecf397baa4e86af9cf86637e6d8e6d0d739623e357b591be038605323f42aef1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / qig_core-2.16.1-py3-none-any.whl

Download URL qig_core-2.16.1-py3-none-any.whl
Size 278.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
49eaa3407296397a3119fc14232179835078217e4dff07b546952ceb566d09dc
BLAKE2b-256 checksum
How to use checksums
4fb9f98512f8d57b5068eaa3113a0bd8ed6214abb58e3d50c0158c3c5a37ed8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for qig-core 2.16.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.

Release history Release notifications | RSS feed

This release

2.16.1 This release

2 release files No provenance

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