LQFT Engine: High-Performance Deduplicating Data Structure (V4.4 Stable)
Project description
Log-Quantum Fractal Tree (LQFT) 🚀
Architect: Parjad Minooei Portfolio: parjadm.ca
📌 Executive Summary
The Log-Quantum Fractal Tree (LQFT) is a high-performance, scale-invariant data structure engine designed for massive data deduplication and persistent state management. By bridging a native C-Engine with a Python Foreign Function Interface (FFI), this project bypasses the Global Interpreter Lock (GIL) to achieve sub-microsecond search latencies and memory efficiency that scales with data entropy rather than data volume.
🧠 Formal Complexity Analysis
As a Systems Architect, I have engineered the LQFT to move beyond the linear limitations of standard Python structures.
1. Time Complexity: $O(1)$ (Scale-Invariant)
Unlike standard Trees ($O(\log N)$) or Lists ($O(N)$), the LQFT uses a fixed-depth 64-bit address space.
- Search/Insertion: $O(1)$
- Mechanism: The 64-bit hash is partitioned into 13 segments of 5-bits. This ensures that the path from the root to any leaf is physically capped at 13 hops, providing deterministic latency regardless of whether the database holds 1,000 or 1,000,000,000 items.
2. Space Complexity: $O(\Sigma)$ (Entropy-Based)
Standard structures scale linearly based on the number of items ($N$). The LQFT scales based on the Information Entropy ($\Sigma$) of the dataset.
- Space: $O(\Sigma)$
- Mechanism: Utilizing Merkle-DAG structural folding, the engine detects identical data branches and reuses them in physical memory. In highly redundant datasets (e.g., DNA sequences or Log files), this results in sub-linear memory growth.
📊 Performance Benchmarks
Tested in Scarborough Lab: Python 3.12 | MinGW-w64 GCC-O3 Optimization
| Metric | Standard Python ($O(N)$) | LQFT C-Engine ($O(1)$) | Delta |
|---|---|---|---|
| Search Latency (N=100k) | ~3,564.84 μs | 0.50 μs | 7,129x Faster |
| Insertion Time (N=100k) | 41.05s | 1.07s | 38x Faster |
| Memory (Versioning) | $O(N \times V)$ | $O(\Sigma + V)$ | 99% Savings |
🛠️ Architectural Pillars
- Native C-Engine Core: Pushes memory allocation and bit-manipulation to the C-layer for hardware-level execution.
- Structural Folding: A recursive structural hashing algorithm that collapses identical sub-trees into single pointers.
- Adaptive Migration: A polymorphic wrapper (
AdaptiveLQFT) that manages the transition from lightweight Python dictionaries to the heavy-duty C-Engine. - Zero-Knowledge Integrity: Fixed-depth pathing allows for 208-byte Merkle Proofs to verify data existence in microsecond time.
⚙️ Quick Start
Compilation
Ensure you have a C compiler (GCC/Clang) installed to build the FFI layer.
python setup.py build_ext --inplace
Usage
from lqft_engine import AdaptiveLQFT
Initialize engine with an auto-migration threshold
engine = AdaptiveLQFT(migration_threshold=50000)
Insert and Search
engine.insert("secret_key", "confidential_data") result = engine.search("secret_key")
print(f"Found: {result}")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lqft_python_engine-0.1.8.tar.gz.
File metadata
- Download URL: lqft_python_engine-0.1.8.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
208ec58bf99e5d57012bcdf792ca04049553afda0ac1638186045dc76ec480ac
|
|
| MD5 |
4b47d41d313bc77d54b65321bb00d280
|
|
| BLAKE2b-256 |
4b7a7372c3e82d2eba4bb1289221a8a65344dc31ea4471fd352cbe087c61a3a9
|
File details
Details for the file lqft_python_engine-0.1.8-cp312-cp312-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp312-cp312-win_amd64.whl
- Upload date:
- Size: 15.9 kB
- Tags: CPython 3.12, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
394c3c667c29967f74eb81764d4be2513453e5c355ff3339d74caef0b1cbd8e0
|
|
| MD5 |
758a21711acf8b779011b20dca0d14c5
|
|
| BLAKE2b-256 |
a5a261e608c45241ef4b796a2ab14afeff30eccfb797846d6d8b7163c5f9a0d6
|
File details
Details for the file lqft_python_engine-0.1.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 kB
- Tags: CPython 3.12, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d11464a8dd00f7b96ea797919407a8a48b331e8963873625f4975798d6b1eebe
|
|
| MD5 |
d1300c70de2ff72ee1ae02d8dba16108
|
|
| BLAKE2b-256 |
e776e4bfc0037edd72338db480da88fe7a6354d18fefcd0a1627c9406a2f180f
|
File details
Details for the file lqft_python_engine-0.1.8-cp312-cp312-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp312-cp312-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.12, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6cb6aa4abdeda26eddc5008fee1f75570156e57e8559548768c5d2c63e0f214b
|
|
| MD5 |
02b2cb55d5b20960f38fdf3584427293
|
|
| BLAKE2b-256 |
3e2e54a22db68c88899ee9f9fe72ae6035a6fcbfd3705cc0b24723d559ccac75
|
File details
Details for the file lqft_python_engine-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp312-cp312-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.12, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c0fc999b98d92cebd15e1613be1d2888d0e9ecc8ae75881094467e7e40d3feb
|
|
| MD5 |
1cfd2a128e22156c15fa95f2dc39d844
|
|
| BLAKE2b-256 |
69b833c97a1094785013358ab8a7970b75f56175240d0d520ee0fd6681159f41
|
File details
Details for the file lqft_python_engine-0.1.8-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 15.9 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe1be096d8823f79d892d60bea506ac50cc647fe26feb5cd77f4b971ecd72315
|
|
| MD5 |
6c429211590530f6afc7aad6479f33b3
|
|
| BLAKE2b-256 |
b99a15828f7500993b38d48694332ae3147db3b3626707c22fc163b9627fde2d
|
File details
Details for the file lqft_python_engine-0.1.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 kB
- Tags: CPython 3.11, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88a54ed97d33d009d5c601ae53acf4dfa7dc3c0d9dc0ea0bc37c69387fdcf827
|
|
| MD5 |
b5f1b0b28d01abadf3f2b53814176857
|
|
| BLAKE2b-256 |
917d6af77b3ae66b904bc79b201744e7ed89339d46089fdf7c7f0a5aeaaab647
|
File details
Details for the file lqft_python_engine-0.1.8-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62691f9db82d70c5f985f60601d18027a89e35aadcb4dfb942aaa2a63655439d
|
|
| MD5 |
9e827fa34328906b6cb31d62f050bb96
|
|
| BLAKE2b-256 |
fa286cbbd3b28a3a85e29abec5b8f83c06f5942cc90a0e75865105f98475306b
|
File details
Details for the file lqft_python_engine-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp311-cp311-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.11, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5eba2f7c70f56c10548129b3246d959af73a1ed882d33a03d808862df65807a2
|
|
| MD5 |
099ec2d31b8f53f669d6926a14907f6c
|
|
| BLAKE2b-256 |
3dc52150c3520243c180227de11f8d74972b70c24a9afefefddd9022105e387b
|
File details
Details for the file lqft_python_engine-0.1.8-cp310-cp310-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp310-cp310-win_amd64.whl
- Upload date:
- Size: 15.9 kB
- Tags: CPython 3.10, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
52c844f08b98f92a6f8d679277f48d45038285f73f75f1798dc0b8cc0f6277fc
|
|
| MD5 |
3933805915748d900c7fa852f02a073a
|
|
| BLAKE2b-256 |
d295ed9bf5d2390fcf90c6b8b355e087307d762aaa771a26a0756824d1099bab
|
File details
Details for the file lqft_python_engine-0.1.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 kB
- Tags: CPython 3.10, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37c8f1bceddf00eb305c5d96d7a832502b14b89f0906c578a91679194642c763
|
|
| MD5 |
b54070dad83dc61b84e0dbcc083a4a83
|
|
| BLAKE2b-256 |
8d68b5ee2494637cdef91ed37ad13c1a4d0463ff0a1d7ad5718933e9bfa56ba4
|
File details
Details for the file lqft_python_engine-0.1.8-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b20a163ef0918fd5b4cf9a95d0d04775656d726920f16772439c6c40c8dc1b1
|
|
| MD5 |
97b0f5cc5fe6d244f30e5469c62ad2b2
|
|
| BLAKE2b-256 |
1acfbf92d120a85513108900e182af1bd9ff5215e7246d9e45e921f3104bab08
|
File details
Details for the file lqft_python_engine-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp310-cp310-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.10, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d819476fe155b230cbd139a0a99b541a75a52711b539da1ebab27e54d91a72c2
|
|
| MD5 |
10928ca97b9a8037561e17ee045de7e6
|
|
| BLAKE2b-256 |
0c03284e4d47782e33a461f4054e01efc5f1897f66e7211491658176cbbcc6ce
|
File details
Details for the file lqft_python_engine-0.1.8-cp39-cp39-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp39-cp39-win_amd64.whl
- Upload date:
- Size: 15.9 kB
- Tags: CPython 3.9, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c088185a2d391366a1e5343129bf741c9b8b66433b0f4cf64e59f88af3d92706
|
|
| MD5 |
2cb67e2b35ad30633a162dd054275657
|
|
| BLAKE2b-256 |
80d25b6b08524309a738636de85704529ddfc3564aca359dd411daba70601bec
|
File details
Details for the file lqft_python_engine-0.1.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 14.3 kB
- Tags: CPython 3.9, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fe9e8595664f3cbbab6b4ed4291615b2bd5dbcc2c0dcf7ee5fc63aed4c86c54
|
|
| MD5 |
12eb11025b9c9766613730f1fa740389
|
|
| BLAKE2b-256 |
5f1aaede083b81fc3d3ca52cb556be301cdd9b1e6d9124b88e705c8e7b924e1f
|
File details
Details for the file lqft_python_engine-0.1.8-cp39-cp39-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp39-cp39-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.5 kB
- Tags: CPython 3.9, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe2eb29264d29f843f1a44e69cc81788af3e3308891e3981d40dd4a503e5bfe
|
|
| MD5 |
a85bcd1305810a1b2f3f6043a7eb7e53
|
|
| BLAKE2b-256 |
40a770e304cbe0b03c67d38cbe699c8642e2751ea9016af2e2ad0e6bed3d1fa4
|
File details
Details for the file lqft_python_engine-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp39-cp39-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.4 kB
- Tags: CPython 3.9, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7f29de5a0deb590daf46429d7977578f050806349e045ca98494e15df733768
|
|
| MD5 |
79dbcd59ef4a289693778420971f0e15
|
|
| BLAKE2b-256 |
8dc4349009bcb4145ec4b13c6632b2e2efbc58270c52958b3710c0010cb0b62a
|
File details
Details for the file lqft_python_engine-0.1.8-cp38-cp38-win_amd64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp38-cp38-win_amd64.whl
- Upload date:
- Size: 15.8 kB
- Tags: CPython 3.8, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02362514934f8dfb669a8875ca16e93459eef2ccea88567e65766b7a17df442d
|
|
| MD5 |
4f97e3dafc865b9b172d115c34b7f82f
|
|
| BLAKE2b-256 |
bbaf971b35db1f231a5f0ade8cbed7f44e83f0a733a39342911581ad015f80bc
|
File details
Details for the file lqft_python_engine-0.1.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 24.4 kB
- Tags: CPython 3.8, manylinux: glibc 2.17+ x86-64, manylinux: glibc 2.5+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a225525f669d85744095057ee06460eea789a29651981bb8e9faf1bc1b914806
|
|
| MD5 |
8b94130cc73bf5f7923324c363ae4839
|
|
| BLAKE2b-256 |
4d809cb63e571ecdf3085b6547422052b2f95f4710ea9d89c1899d798e1e0265
|
File details
Details for the file lqft_python_engine-0.1.8-cp38-cp38-macosx_11_0_arm64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp38-cp38-macosx_11_0_arm64.whl
- Upload date:
- Size: 12.7 kB
- Tags: CPython 3.8, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f76c577e26c75b4ae2f5b0426c9f69fb37c4018689c6337f62a50453cc2e38f
|
|
| MD5 |
a68b944423306e5bbb6d3a00037256b2
|
|
| BLAKE2b-256 |
7045dfa629005ea079d592e1bb5bdbda023038d22c2d3f648cf4b5b672ca7967
|
File details
Details for the file lqft_python_engine-0.1.8-cp38-cp38-macosx_10_9_x86_64.whl.
File metadata
- Download URL: lqft_python_engine-0.1.8-cp38-cp38-macosx_10_9_x86_64.whl
- Upload date:
- Size: 12.6 kB
- Tags: CPython 3.8, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
670358b38919bf3f2279930f3af5076f9ddb130577ac63ccf45bb60b93062a25
|
|
| MD5 |
0fdbddcaab59257144dba77cfad801d6
|
|
| BLAKE2b-256 |
d28a8a576405dc14e293d3f38a8cc250fb312c5c5301db1b22050d83e593de73
|