Skip to main content

LQFT Engine: Memory Circuit Breaker & Strict Type Safety (v5.0 Stable)

Project description

Log-Quantum Fractal Tree (LQFT) 🚀

📌 Project Overview

The Log-Quantum Fractal Tree (LQFT) is a high-performance, scale-invariant data structure engine designed for massive data deduplication and persistent state management.

It synthesizes Hash Array Mapped Trie (HAMT) routing with Merkle-DAG structural folding to provide:

  • Deterministic ( O(1) ) search latency
  • Sub-linear ( O(\Sigma) ) space complexity

By offloading core associative logic to a native C extension (v4.4), the LQFT bypasses the Python Global Interpreter Lock (GIL) and achieves significant memory reduction for versioned, redundant, or patterned datasets.


🧠 Core Architecture

1. Scale-Invariant Time Complexity: ( O(1) )

  • The LQFT utilizes a fixed 64-bit hash space partitioned into 13 levels.
  • Unlike standard balanced trees that grow in height as data increases ( O(\log N) ), the LQFT's pathing is physically capped.

Key Properties:

  • Deterministic Latency: Every search or insertion requires exactly 13 pointer hops.
  • Scale-Invariance: Performance remains constant whether the dataset contains ( 10^3 ) or ( 10^9 ) items.

2. Entropy-Based Space Complexity: ( O(\Sigma) )

Using a global C-Registry, the engine implements structural interning.
Nodes are identified by the cryptographic hash of their contents and child pointers (Merkle-DAG).

Key Mechanisms:

  • Structural Folding: Identical sub-trees are shared physically in memory across different branches or versions.
  • Efficient Versioning: Saving a new version of a state-space requires only ( O(\log N) ) new nodes (the path to the change), while the remainder is shared with previous versions.

🚀 Performance Benchmarks

Metric Result
Environment Python 3.12 | GCC -O3 (Native C-Extension)
Search Latency (p50) ~500 ns
Read Throughput ~1.8 Million ops/sec
Space Efficiency Up to 1,500× reduction in versioned graph simulations
Stability Zero-drift memory reclamation via Dynamic C-Registry

🛠️ Getting Started

Installation

The engine requires a C compiler (GCC/MinGW or MSVC) to build the native extension.

# Clone the repository
git clone https://github.com/ParjadM/Log-Quantum-Fractal-Tree-LQFT-
cd Log-Quantum-Fractal-Tree-LQFT-

# Build the native C-extension
python setup.py build_ext --inplace

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

lqft_python_engine-0.3.0.tar.gz (10.1 kB view details)

Uploaded Source

Built Distributions

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

lqft_python_engine-0.3.0-cp312-cp312-win_amd64.whl (16.6 kB view details)

Uploaded CPython 3.12Windows x86-64

lqft_python_engine-0.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl (13.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lqft_python_engine-0.3.0-cp312-cp312-macosx_10_9_x86_64.whl (13.7 kB view details)

Uploaded CPython 3.12macOS 10.9+ x86-64

lqft_python_engine-0.3.0-cp311-cp311-win_amd64.whl (16.6 kB view details)

Uploaded CPython 3.11Windows x86-64

lqft_python_engine-0.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.3.0-cp311-cp311-macosx_11_0_arm64.whl (13.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lqft_python_engine-0.3.0-cp311-cp311-macosx_10_9_x86_64.whl (13.7 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

lqft_python_engine-0.3.0-cp310-cp310-win_amd64.whl (16.6 kB view details)

Uploaded CPython 3.10Windows x86-64

lqft_python_engine-0.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.6 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.3.0-cp310-cp310-macosx_11_0_arm64.whl (13.9 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

lqft_python_engine-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl (13.7 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

lqft_python_engine-0.3.0-cp39-cp39-win_amd64.whl (16.6 kB view details)

Uploaded CPython 3.9Windows x86-64

lqft_python_engine-0.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.6 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.3.0-cp39-cp39-macosx_11_0_arm64.whl (13.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ ARM64

lqft_python_engine-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl (13.7 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

lqft_python_engine-0.3.0-cp38-cp38-win_amd64.whl (16.5 kB view details)

Uploaded CPython 3.8Windows x86-64

lqft_python_engine-0.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (25.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

lqft_python_engine-0.3.0-cp38-cp38-macosx_11_0_arm64.whl (14.1 kB view details)

Uploaded CPython 3.8macOS 11.0+ ARM64

lqft_python_engine-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl (13.8 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

File details

Details for the file lqft_python_engine-0.3.0.tar.gz.

File metadata

  • Download URL: lqft_python_engine-0.3.0.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for lqft_python_engine-0.3.0.tar.gz
Algorithm Hash digest
SHA256 18374c83fe8bfa72bd67f772728fd502edf3c72d05916f69527ba6e7488f9740
MD5 1c61dc4e2bfb7fa8d16d8c243a6fd991
BLAKE2b-256 7e101b6f335d6eea9b047c033272bf8dae21dfec86d86ba8ad8d2442497984fe

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 d41f6b97485d64ecf0a9b3037ee539d77c6f2367ce17bfdc820a5a4089446660
MD5 6b11b5ba3984ef4b8d94bcacb6d4860a
BLAKE2b-256 8fdf36ac944ad765d13ba47cd36964b1f48882d76b094858f0d101cb4be8dc2e

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0e6521883adc6e4916bc5d49a27081276a1df86d6777aa5e645fc26a552032c
MD5 523abb8e2d5b6af53cf6610556941700
BLAKE2b-256 e22d8de459392bd1057940edee83adad36a69591b73f24adac46512f737ae264

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d10ecab0d61043f2aa1a208c8f042c127b30e3720a80008bb1b617e56ce88baf
MD5 577a86d67b999712c1b71ed5128baceb
BLAKE2b-256 30c1331dcde594d67555bcaf2511cbfcc813953308eec45ef746b05ae465673a

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp312-cp312-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp312-cp312-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c54811b7dac3a23e65e526cfb870cdcb23d06b14d3a4a848aa1dd734b2f5541b
MD5 7a875dde4cadb41699d112424250cb82
BLAKE2b-256 83ba94119a61157c1b61d2e1920fb4f6003e1ea65d8b19dab4cac2cb8bf23686

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 57c509e791b0cad32482a4ef7b1b3ff9fa954216b99e33ebf7f203b154e16936
MD5 7b2ec22e707077a1e3acc779275374fd
BLAKE2b-256 7bfe9c5b6f2dfbd529d9dae073a104fcd6b220401aa2581faa67711c500059ef

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f003448cdf0c45fc0a786b9845e278d4947f9f49b960fa37b621ab43a44be4cc
MD5 6ac45cef9022ea023237d6ae74b901d6
BLAKE2b-256 4542dbf9f63141b3c9d47436c03852e82d5c71b87891c7152658aac2ec7ee0ff

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 9b5cbbd0e9b920646085bd5c84c5321e1f91f63c2282a439a47e958dd1df3781
MD5 43f538bf9fbef15d83312e77f60a63f1
BLAKE2b-256 90710af8a5cd30c13603b8f6d715a5f8d8f43be8dc55e3ecc67656af4b6cb7a8

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 654017a7ddf169ad006e20c5cfdb3fc6d62ecaa2a8c2774f95dc0091ae62f35b
MD5 21c1af9b1b98b9ab134f8fb43a9ef5cc
BLAKE2b-256 81340b3c6761e5484698ae994a70e333c8eb5e635ced8633dfd0f48f092202e6

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 237e62eb01e48ffb1904106a9af7d72cad3652387fa4ccb8e25fff19f537a35a
MD5 f5a369c051b83575aee6919cb0bcd7e0
BLAKE2b-256 15150ec3c6d8d8b043d30945877f27f165eea0853569cadf54db4f5b01a9c8c5

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1245359800e1bea86f7abde48178799bc99cf606caebc9566e77d6603988931b
MD5 4d7e35d46a2e3e74d8aa3c6f3a149790
BLAKE2b-256 79c6c2232f5f0393ae65821d7ebdc9888ec5bd282545a94420622c20648867eb

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6f70fe6df730be8e051fd82116aa2fba7342e3173ba4c553744459a827e34656
MD5 a47a1bc3e6694cdb78fe48b2e509fa80
BLAKE2b-256 31c8d51ccaadd89fcb9ed3c79c1fe1d470d9ae83640bfa2592053896182df23c

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 19869a6d75a6ff176dc8161fde81df98b5603b35abbdb7c25665a5286bd463cf
MD5 ddd272617c4b7f8433e3290b64774154
BLAKE2b-256 eae3005cf89a9d6824a76e623ad713e54e1e3419615198d2dce743eb5b99277a

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp39-cp39-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 34a4de8e4a1e3753679d7010a54e573ae7ff56bbe04bcf80c14d0efc15adcf84
MD5 6d9173d507e2c2abaf78093c65141f21
BLAKE2b-256 df992a663710e29644a81ecb2aced4a3316151e4a9179895953680b5dd972f8b

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4243c87d34f43c34a82b12c3d2bbf74a2148da7a0e47c42e8695bbad62beffee
MD5 2be59a7c3b45ad9449d2766fa26362fb
BLAKE2b-256 2d54075a813bbb5f0320e0825bf909b5b71b49e3a87a6465e7917cd255b6a4cd

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp39-cp39-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 0d929d8fc8bd5696da938773151317ae858ecb07bfe800dc9d16bfe45b60402e
MD5 77fafb838de7d05cd4b7a21469c5a852
BLAKE2b-256 509f18aedd3fe851a837594d625a14e68645edd29e057e98f7a8735f3e187a3c

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d372711786a5ef45be9f5728e829236837e449e2ae4454e65f23062ed772408b
MD5 6656e43d5802f0a10ce8ec4df2597711
BLAKE2b-256 9a52492d63c905ed7d836a265fa5fed29f1f615f0377dbf70315e3b993fb6b02

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp38-cp38-win_amd64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 80c745d9d77bf8531491b5077ee0d2814f3b86dba6f949546116d3a0e6cef2a6
MD5 665c255dfe9931905cf3a45cae2dd69e
BLAKE2b-256 f2cfaef8651b267258db52066b84f4c1318563a48d2ce221f501aaed8524a143

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6edcb1c6443aba7bdf62921484f5f7e9a28febae1a04c362e673c24895273fe6
MD5 658b98b0752e9472512a44ab6a86374d
BLAKE2b-256 af5f89182617ee1e3348df798ff79952079c6ef9b0bfcd43f7e850525cf0cb0d

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp38-cp38-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp38-cp38-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 89338fe9249bf4e8c9e80ba2832ff2434af688ff1751de9eb5aec1665e60fe11
MD5 988cc27eed6022beea4ad7183b813279
BLAKE2b-256 499beb81656e42aed2e77e4099d59bc728f1f001962d60feed1eddf9b34ea566

See more details on using hashes here.

File details

Details for the file lqft_python_engine-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for lqft_python_engine-0.3.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 3ffba302070d1d8126239cbffb8ef7651bff1d2984c125302dbc6d144c15b30e
MD5 4e68ff0b09f8bd6ca1f3ce2bdc4aaa35
BLAKE2b-256 68a2db762fbabf0fbe5fe885331e382ba0f759fe25608e8f909a93ebe167a5f2

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