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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sia-script
3
- Version: 0.8.1
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.1"
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
- noise channels, canonical algorithms (Deutsch, Grover,
14
- Shor-adjacent primitives, VQE, QAOA, ...) and QKD protocols
15
- (BB84, E91, QSS). Runs entirely locally — no server, no API
16
- token, no network call. Requires NumPy; MIT-licensed
17
- (see sia/hdqs_engine/LICENSE), distinct from the proprietary
18
- license covering the rest of this package.
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; MIT-licensed on its own (see the MIT_LICENSE
133
- # string inside sia/hdqs_engine.py), distinct from the proprietary
134
- # license covering the rest of sia-script.
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
- # - Noise channels: bit_flip, phase_flip, depolarizing, amplitude_damping,
140
- # phase_damping, generalized_amplitude_damping
141
- # - Purity and entropy calculations
142
- # - All canonical algorithms preserved
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, # New: partial trace utility
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 (optional)
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", # New utility
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 (optional)
321
+ # PyTorch integration with GPU support
304
322
  "QuantumLayer",
305
323
 
306
324
  # Module reference