Skip to main content

Quantum Arithmetic — modular Fibonacci dynamics, orbit classification, and the 16 identities

Project description

qa-arithmetic

Core primitives for Quantum Arithmetic. Pure Python, zero dependencies.

Install

pip install qa-arithmetic

Usage

from qa_arithmetic import qa_step, qa_mod, orbit_family, qa_tuple, identities

# A1-compliant Fibonacci shift
qa_step(1, 1, 24)        # (1, 2)
qa_step(1, 2, 24)        # (2, 3)

# Modular reduction: result in {1,...,m}, never 0
qa_mod(25, 24)            # 1
qa_mod(0, 24)             # 24

# Orbit classification
orbit_family(1, 1, 24)   # "cosmos"
orbit_family(8, 8, 24)   # "satellite"
orbit_family(24, 24, 24) # "singularity"

# Full QA tuple (b, e, d, a)
qa_tuple(1, 1, 24)       # (1, 1, 2, 3)

# All 16 identities
ids = identities(2, 1)
ids["C"]  # 4  (green quadrance = 2de)
ids["F"]  # 3  (red quadrance = d*d - e*e = ab)
ids["G"]  # 5  (blue quadrance = d*d + e*e)
# C*C + F*F == G*G always (Wildberger Theorem 6)

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

qa_arithmetic-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

qa_arithmetic-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qa_arithmetic-0.1.0.tar.gz
Algorithm Hash digest
SHA256 17b5ad7226fb9af0c9d885ca4af9ef2c1767d565da405d013e954a62c430ef64
MD5 14f2193e505f95ba810660b0a0e0b2b8
BLAKE2b-256 7ec7fbb9c2c08a403bec9f65c690fd574c65ad8362785a3a2e8ee301772a57e9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for qa_arithmetic-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9fc19df7a117a4ef5a16bc839e36e09657dd2e32a7ea42894c1029bb875bd52
MD5 f04288b49e4209a6746282f55d0ed3b4
BLAKE2b-256 98aa5a36be103bc20defbc6f693c39a9b559a39208d92ea91c5d613269a8d2a9

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