sia-script 0.8.1__tar.gz → 0.8.2__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.
- {sia_script-0.8.1 → sia_script-0.8.2}/PKG-INFO +1 -1
- {sia_script-0.8.1 → sia_script-0.8.2}/pyproject.toml +1 -1
- {sia_script-0.8.1 → sia_script-0.8.2}/sia/__init__.py +36 -18
- {sia_script-0.8.1 → sia_script-0.8.2}/sia/hdqs_engine.py +654 -274
- {sia_script-0.8.1 → sia_script-0.8.2}/sia_script.egg-info/PKG-INFO +1 -1
- {sia_script-0.8.1 → sia_script-0.8.2}/LICENSE.md +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/README.md +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/setup.cfg +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia/els.py +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia/hdqs.py +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia/ntt.py +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia_script.egg-info/SOURCES.txt +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia_script.egg-info/dependency_links.txt +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia_script.egg-info/requires.txt +0 -0
- {sia_script-0.8.1 → sia_script-0.8.2}/sia_script.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sia-script
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.2
|
|
4
4
|
Summary: SIA — Simplified Integrated Architecture: SiaNTT, SIA-ELS (ABAP interpreter), the HDQS server client, and hdqs_engine (offline statevector quantum simulator — no server or API token required)
|
|
5
5
|
Author-email: Sia Software Innovations Private Limited <info@siasoftwareinnovations.com>
|
|
6
6
|
License: # PROPRIETARY SOFTWARE LICENSE
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "sia-script"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.2"
|
|
8
8
|
description = "SIA — Simplified Integrated Architecture: SiaNTT, SIA-ELS (ABAP interpreter), the HDQS server client, and hdqs_engine (offline statevector quantum simulator — no server or API token required)"
|
|
9
9
|
authors = [
|
|
10
10
|
{ name = "Sia Software Innovations Private Limited", email = "info@siasoftwareinnovations.com" }
|
|
@@ -10,12 +10,13 @@ Client-side package. Loads:
|
|
|
10
10
|
3. els — SIA Enterprise Logic Studio (ABAP-style interpreter).
|
|
11
11
|
Pure Python, no deps. (proprietary)
|
|
12
12
|
4. hdqs_engine — offline quantum simulator: statevector/density matrix,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
token, no network call.
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
GPU acceleration via PyTorch, advanced noise channels,
|
|
14
|
+
canonical algorithms (Deutsch, Grover, Shor-adjacent primitives,
|
|
15
|
+
VQE, QAOA, ...) and QKD protocols (BB84, E91, QSS).
|
|
16
|
+
Runs entirely locally — no server, no API token, no network call.
|
|
17
|
+
Requires NumPy; PyTorch optional for GPU acceleration.
|
|
18
|
+
MIT-licensed (see sia/hdqs_engine/LICENSE), distinct from the
|
|
19
|
+
proprietary license covering the rest of this package.
|
|
19
20
|
|
|
20
21
|
Note: the proprietary HDQS server internals (qbt, vqram — the simulator core
|
|
21
22
|
and hyper-dimensional virtual memory that the server runs) are NOT part of
|
|
@@ -129,17 +130,23 @@ except ImportError:
|
|
|
129
130
|
# =====================================================
|
|
130
131
|
# OPTIONAL: HDQS-ENGINE (offline statevector/density matrix simulator)
|
|
131
132
|
# Single file (sia/hdqs_engine.py) — no server, no API token, no network
|
|
132
|
-
# call. Requires NumPy;
|
|
133
|
-
#
|
|
134
|
-
#
|
|
133
|
+
# call. Requires NumPy; PyTorch optional for GPU acceleration.
|
|
134
|
+
# MIT-licensed on its own (see the MIT_LICENSE string inside
|
|
135
|
+
# sia/hdqs_engine.py), distinct from the proprietary license covering
|
|
136
|
+
# the rest of sia-script.
|
|
135
137
|
#
|
|
136
|
-
# UPDATED: Now includes:
|
|
138
|
+
# UPDATED v0.3.0: Now includes:
|
|
137
139
|
# - HDQS class (renamed from StatevectorEngine for cleaner API)
|
|
138
140
|
# - Density matrix support (off by default, enable with use_density_matrix=True)
|
|
139
|
-
# -
|
|
140
|
-
#
|
|
141
|
-
#
|
|
142
|
-
#
|
|
141
|
+
# - GPU acceleration via PyTorch (enable with use_gpu=True)
|
|
142
|
+
# - Advanced noise channels:
|
|
143
|
+
# * Basic: bit_flip, phase_flip, depolarizing, amplitude_damping, phase_damping
|
|
144
|
+
# * Advanced: thermal, coherent, amplitude_phase_coupling,
|
|
145
|
+
# correlated_noise (two-qubit), readout_error
|
|
146
|
+
# - Purity, entropy, and other quantum information metrics
|
|
147
|
+
# - All canonical algorithms with GPU support
|
|
148
|
+
# - QKD protocols (BB84, E91, QSS) with GPU support
|
|
149
|
+
# - PyTorch QuantumLayer with GPU acceleration
|
|
143
150
|
# =====================================================
|
|
144
151
|
|
|
145
152
|
try:
|
|
@@ -150,7 +157,11 @@ try:
|
|
|
150
157
|
GATES,
|
|
151
158
|
controlled,
|
|
152
159
|
random_state,
|
|
153
|
-
partial_trace, #
|
|
160
|
+
partial_trace, # Partial trace utility
|
|
161
|
+
|
|
162
|
+
# GPU and backend detection
|
|
163
|
+
_GPU_AVAILABLE,
|
|
164
|
+
_TORCH_AVAILABLE,
|
|
154
165
|
|
|
155
166
|
# Canonical algorithms
|
|
156
167
|
deutsch,
|
|
@@ -178,7 +189,7 @@ try:
|
|
|
178
189
|
e91,
|
|
179
190
|
qss,
|
|
180
191
|
|
|
181
|
-
# PyTorch integration
|
|
192
|
+
# PyTorch integration with GPU support
|
|
182
193
|
QuantumLayer,
|
|
183
194
|
)
|
|
184
195
|
|
|
@@ -195,6 +206,9 @@ except ImportError:
|
|
|
195
206
|
random_state = None
|
|
196
207
|
partial_trace = None
|
|
197
208
|
|
|
209
|
+
_GPU_AVAILABLE = False
|
|
210
|
+
_TORCH_AVAILABLE = False
|
|
211
|
+
|
|
198
212
|
deutsch = None
|
|
199
213
|
deutsch_jozsa = None
|
|
200
214
|
bernstein_vazirani = None
|
|
@@ -272,7 +286,11 @@ __all__ = [
|
|
|
272
286
|
"GATES",
|
|
273
287
|
"controlled",
|
|
274
288
|
"random_state",
|
|
275
|
-
"partial_trace", #
|
|
289
|
+
"partial_trace", # Partial trace utility
|
|
290
|
+
|
|
291
|
+
# GPU and backend detection
|
|
292
|
+
"_GPU_AVAILABLE",
|
|
293
|
+
"_TORCH_AVAILABLE",
|
|
276
294
|
|
|
277
295
|
# Canonical algorithms
|
|
278
296
|
"deutsch",
|
|
@@ -300,7 +318,7 @@ __all__ = [
|
|
|
300
318
|
"e91",
|
|
301
319
|
"qss",
|
|
302
320
|
|
|
303
|
-
# PyTorch integration
|
|
321
|
+
# PyTorch integration with GPU support
|
|
304
322
|
"QuantumLayer",
|
|
305
323
|
|
|
306
324
|
# Module reference
|