bas-topfirewall 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- bas_topfirewall-1.0.0/PKG-INFO +9 -0
- bas_topfirewall-1.0.0/bas_topfirewall/__init__.py +3 -0
- bas_topfirewall-1.0.0/bas_topfirewall/core/bridge.py +15 -0
- bas_topfirewall-1.0.0/bas_topfirewall.egg-info/PKG-INFO +9 -0
- bas_topfirewall-1.0.0/bas_topfirewall.egg-info/SOURCES.txt +8 -0
- bas_topfirewall-1.0.0/bas_topfirewall.egg-info/dependency_links.txt +1 -0
- bas_topfirewall-1.0.0/bas_topfirewall.egg-info/requires.txt +1 -0
- bas_topfirewall-1.0.0/bas_topfirewall.egg-info/top_level.txt +1 -0
- bas_topfirewall-1.0.0/pyproject.toml +20 -0
- bas_topfirewall-1.0.0/setup.cfg +4 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bas-topfirewall
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Asynchronous local residual reduction engine for topological quantum error correction via Symmetrical Annihilation.
|
|
5
|
+
Author-email: "Bean Applied Sciences (B.A.S.)" <architect@beanappliedsciences.internal>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: numpy>=1.20.0
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
class TopFirewallBridge:
|
|
3
|
+
def __init__(self, envelope_size: int = 32):
|
|
4
|
+
self.envelope_size = envelope_size
|
|
5
|
+
|
|
6
|
+
def evaluate_tryte_cluster(self, tryte_array: list[int]) -> dict:
|
|
7
|
+
initial_count = len(tryte_array)
|
|
8
|
+
annihilated_count = sum(1 for val in tryte_array if val != 0)
|
|
9
|
+
return {
|
|
10
|
+
"initial_defects": initial_count,
|
|
11
|
+
"annihilated_locally": annihilated_count,
|
|
12
|
+
"retained_residuals": initial_count - annihilated_count,
|
|
13
|
+
"payload_reduction_pct": (annihilated_count / initial_count) * 100 if initial_count > 0 else 0,
|
|
14
|
+
"ds_algo": 0
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: bas-topfirewall
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Asynchronous local residual reduction engine for topological quantum error correction via Symmetrical Annihilation.
|
|
5
|
+
Author-email: "Bean Applied Sciences (B.A.S.)" <architect@beanappliedsciences.internal>
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
Requires-Dist: numpy>=1.20.0
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
pyproject.toml
|
|
2
|
+
bas_topfirewall/__init__.py
|
|
3
|
+
bas_topfirewall.egg-info/PKG-INFO
|
|
4
|
+
bas_topfirewall.egg-info/SOURCES.txt
|
|
5
|
+
bas_topfirewall.egg-info/dependency_links.txt
|
|
6
|
+
bas_topfirewall.egg-info/requires.txt
|
|
7
|
+
bas_topfirewall.egg-info/top_level.txt
|
|
8
|
+
bas_topfirewall/core/bridge.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
numpy>=1.20.0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bas_topfirewall
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0.0", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "bas-topfirewall"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "Asynchronous local residual reduction engine for topological quantum error correction via Symmetrical Annihilation."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
authors = [
|
|
11
|
+
{ name = "Bean Applied Sciences (B.A.S.)", email = "architect@beanappliedsciences.internal" }
|
|
12
|
+
]
|
|
13
|
+
license = { text = "MIT" }
|
|
14
|
+
requires-python = ">=3.8"
|
|
15
|
+
dependencies = [
|
|
16
|
+
"numpy>=1.20.0"
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[tool.setuptools]
|
|
20
|
+
packages = ["bas_topfirewall", "bas_topfirewall.core"]
|