Skip to main content

Sigmagate SDK — Physics-gated AI, VERAX truth auditing, and document sealing in one package.

Project description

Sigmagate SDK

Physics-gated AI, VERAX truth auditing, and HCQ document sealing — in one Python package.

PyPI version Python 3.9+ Tests

pip install sigmagate

Quick start

from sigmagate import Sigmagate

sg = Sigmagate(api_key="your-key")

# Measure quantum coherence (qR)
state = sg.qr.measure()
print(state.level)          # DEEP_CRYSTAL | CASI_EP | DEEP_NOISE

# Gate a function — only executes when coherence is high enough
@sg.gate(threshold=1.0)
def sign_contract(doc):
    return process(doc)

result = sign_contract(doc)
print(result.value, result.qr)   # function output + qR at execution time

# Audit AI-generated text with VERAX
audit = sg.verax.check("The brain uses only 10% of its capacity.")
print(audit.global_score)        # 0–100
for claim in audit.issues:
    print(claim.emoji, claim.text)   # 🔴 problematic claims

# Audit with fix prompts (VERAX Margin)
margin = sg.verax.audit_margin("The brain uses only 10% of its capacity.")
for prompt in margin.fix_prompts:
    print(prompt)   # auto-generated correction instructions

# Seal a document with HCQ (Hash Convergencia Cuántica)
receipt = sg.seal.document("This is the official text.")
print(receipt.hcq)           # HCQ-a1b2c3d4...
print(receipt.verify_url)    # https://sigmagate.io/verify/...

# Verify a seal
result = sg.seal.verify("HCQ-a1b2c3d4")
print(result.valid)          # True / False

CLI

sgm qr                          # current coherence level
sgm windows --days 7            # crystal windows in last 7 days
sgm audit "text to check"       # VERAX audit
sgm audit "text" --margin       # VERAX Margin with fix prompts
sgm audit report.txt            # audit from file
sgm seal document.pdf           # seal a file
sgm verify HCQ-a1b2c3d4        # verify a seal
sgm health                      # API status

Modules

Module Description
sg.qr Quantum coherence measurement — measure(), windows(), entropy()
sg.gate Physics-gated execution decorator — @sg.gate(threshold)
sg.verax Truth auditing — check(), audit_margin()
sg.seal HCQ document sealing — document(), verify()

VERAX levels

Level Label Meaning
V1 CONFIRMED 🟢 Solid evidence
V2 VIABLE 🔵 Partial / plausible
V3 THEORETICAL 🟡 Speculative, needs source
V4 SPECULATIVE 🔴 No support / hallucination

Installation

pip install sigmagate

Get an API key at sigmagate.io.

Links

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

sigmagate-0.1.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

sigmagate-0.1.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file sigmagate-0.1.0.tar.gz.

File metadata

  • Download URL: sigmagate-0.1.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sigmagate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 12562ff898bc9ba2d86094255c52d117791660f238aa03b5047c3733e85a70a0
MD5 9b63c86dd35afc981b028b268d3d5330
BLAKE2b-256 b06e015d3e08a31e86d3f4aec79fb685fe31d16d9f2a986652260f235588ac58

See more details on using hashes here.

File details

Details for the file sigmagate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sigmagate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for sigmagate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5fe6f5846af3f845947f7804e6880e04e0e038a58a09dcc31339e94edccec813
MD5 51c8cc099fa767ffdff355eddad629c3
BLAKE2b-256 de49d14ccfee85d5b954d382756f4c13be42c7f153dfbcc4b2a23dddbbd1530c

See more details on using hashes here.

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