hypercube_sim 0.1.0__cp315-cp315-win_amd64.whl

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.
@@ -0,0 +1,6 @@
1
+ from . import native as _native
2
+ from .native import Simulator as Simulator
3
+ from .stats import run_with_stats as run_with_stats
4
+
5
+ __doc__ = _native.__doc__
6
+ __all__ = ["Simulator", "run_with_stats"]
Binary file
@@ -0,0 +1,31 @@
1
+ from _typeshed import SupportsGetItem
2
+ from typing import Callable, SupportsIndex, final
3
+
4
+ __all__ = ["Simulator"]
5
+
6
+ @final
7
+ class Simulator:
8
+ """
9
+ Synchronous packet routing on an implicit hypercube of up to 32 dimensions.
10
+ """
11
+ def __new__(cls, /, *, dimension: SupportsIndex, packets: SupportsGetItem[int, tuple[SupportsIndex, SupportsIndex]]) -> Simulator:
12
+ """
13
+ Create a simulator from (source, destination) pairs in packet ID order.
14
+ """
15
+ def run(self, /, route_fn: Callable[[int, int], int | None], *, max_rounds: SupportsIndex = 10000) -> dict:
16
+ """
17
+ Start a fresh run from the original packet sources.
18
+
19
+ route_fn(packet_id, current_location) returns an adjacent router or None
20
+ to wait for one round. It is called again after a hop or voluntary wait.
21
+ A packet waiting in a link queue is served in FIFO order. Each directed
22
+ link serves at most one packet per round.
23
+
24
+ The result includes delivery_ticks and final_positions in packet ID
25
+ order, plus complete, rounds_elapsed, and rounds. Packets already at
26
+ their destinations have delivery tick 0. Undelivered packets have None.
27
+
28
+ Each round contains tick, hops as (packet_id, source, destination),
29
+ delivered packet IDs, and congestion keyed by source router. Congestion
30
+ includes only routers with queued outgoing traffic in that round.
31
+ """
hypercube_sim/stats.py ADDED
@@ -0,0 +1,126 @@
1
+ """Compute run statistics from the native hypercube simulator's round trace."""
2
+
3
+ from collections.abc import Callable, Mapping, Sequence
4
+ from dataclasses import dataclass
5
+ from time import perf_counter
6
+ from typing import Protocol, TypedDict, cast
7
+
8
+ RouteFn = Callable[[int, int], int | None]
9
+
10
+
11
+ class NodeCongestion(TypedDict):
12
+ queued_before: int
13
+ waiting_after: int
14
+ transmitted: int
15
+ links: dict[int, int]
16
+
17
+
18
+ class RoundResult(TypedDict):
19
+ tick: int
20
+ hops: list[tuple[int, int, int]]
21
+ delivered: list[int]
22
+ congestion: dict[int, NodeCongestion]
23
+
24
+
25
+ class SimulationResult(TypedDict):
26
+ complete: bool
27
+ rounds_elapsed: int
28
+ final_positions: list[int]
29
+ delivery_ticks: list[int | None]
30
+ rounds: list[RoundResult]
31
+
32
+
33
+ class _NativeSimulator(Protocol):
34
+ def run(self, route_fn: RouteFn, *, max_rounds: int) -> SimulationResult: ...
35
+
36
+
37
+ @dataclass(frozen=True, slots=True)
38
+ class SimulationStats:
39
+ total_rounds: int
40
+ wall_time_seconds: float | None
41
+ average_packet_rounds: float | None
42
+ congestion_packet_rounds: int
43
+ congested_rounds: int
44
+ utilization_percent: float
45
+ delivered_packets: int
46
+ total_packets: int
47
+
48
+
49
+ def summarize(
50
+ result: Mapping[str, object],
51
+ *,
52
+ dimension: int,
53
+ wall_time_seconds: float | None = None,
54
+ ) -> SimulationStats:
55
+ """Summarize the mapping returned by Simulator.run.
56
+
57
+ Average packet time uses delivered packets, including tick-zero deliveries.
58
+ It is None when no packet arrived. A packet still queued after transmission
59
+ contributes one packet-round of congestion for that round. A router counts
60
+ toward utilization when it sends or receives a hop. Zero elapsed rounds
61
+ give zero utilization.
62
+ """
63
+ if not 0 <= dimension <= 32:
64
+ raise ValueError("dimension must be between 0 and 32")
65
+
66
+ trace = cast(SimulationResult, result)
67
+ total_rounds = trace["rounds_elapsed"]
68
+ if total_rounds != len(trace["rounds"]):
69
+ raise ValueError("rounds_elapsed must match the number of round records")
70
+
71
+ delivered_packets = 0
72
+ delivery_tick_sum = 0
73
+ for tick in trace["delivery_ticks"]:
74
+ if tick is not None:
75
+ delivered_packets += 1
76
+ delivery_tick_sum += tick
77
+
78
+ congestion_packet_rounds = 0
79
+ congested_rounds = 0
80
+ active_node_rounds = 0
81
+ for round_result in trace["rounds"]:
82
+ waiting = sum(node["waiting_after"] for node in round_result["congestion"].values())
83
+ congestion_packet_rounds += waiting
84
+ congested_rounds += int(waiting > 0)
85
+
86
+ active_nodes: set[int] = set()
87
+ for _, source, destination in round_result["hops"]:
88
+ active_nodes.add(source)
89
+ active_nodes.add(destination)
90
+ active_node_rounds += len(active_nodes)
91
+
92
+ return SimulationStats(
93
+ total_rounds=total_rounds,
94
+ wall_time_seconds=wall_time_seconds,
95
+ average_packet_rounds=(
96
+ delivery_tick_sum / delivered_packets if delivered_packets else None
97
+ ),
98
+ congestion_packet_rounds=congestion_packet_rounds,
99
+ congested_rounds=congested_rounds,
100
+ utilization_percent=(
101
+ 100.0 * active_node_rounds / ((1 << dimension) * total_rounds)
102
+ if total_rounds
103
+ else 0.0
104
+ ),
105
+ delivered_packets=delivered_packets,
106
+ total_packets=len(trace["delivery_ticks"]),
107
+ )
108
+
109
+
110
+ def run_with_stats(
111
+ *,
112
+ dimension: int,
113
+ packets: Sequence[tuple[int, int]],
114
+ route_fn: RouteFn,
115
+ max_rounds: int = 10_000,
116
+ ) -> tuple[SimulationResult, SimulationStats]:
117
+ """Run the simulator and time the native run, including its Python callback."""
118
+ from .native import Simulator
119
+
120
+ native_simulator = Simulator(dimension=dimension, packets=packets)
121
+ # Maturin's generated stub describes the native result as a plain dict.
122
+ simulator = cast(_NativeSimulator, cast(object, native_simulator))
123
+ start = perf_counter()
124
+ result = simulator.run(route_fn, max_rounds=max_rounds)
125
+ elapsed = perf_counter() - start
126
+ return result, summarize(result, dimension=dimension, wall_time_seconds=elapsed)
@@ -0,0 +1,10 @@
1
+ Metadata-Version: 2.4
2
+ Name: hypercube_sim
3
+ Version: 0.1.0
4
+ Classifier: Programming Language :: Rust
5
+ Classifier: Programming Language :: Python :: Implementation :: CPython
6
+ Classifier: Programming Language :: Python :: Implementation :: PyPy
7
+ Requires-Dist: numpy>=1.24.4
8
+ Requires-Dist: pytest ; extra == 'tests'
9
+ Provides-Extra: tests
10
+ Requires-Python: >=3.12
@@ -0,0 +1,8 @@
1
+ hypercube_sim/__init__.py,sha256=sIzwMhtW7Z8D4jCRx5-RuqbFQDFw_VLJP23pExY7-5E,202
2
+ hypercube_sim/native.cp315-win_amd64.pyd,sha256=R-rXxOfzVtIaazQRrJgyqZUWtKVO5PQjzIRAVlMFSFI,318464
3
+ hypercube_sim/native.pyi,sha256=cC5QieppanARWu_ldj3SbKLUnHm3i_b8QpgEb0flLzU,1458
4
+ hypercube_sim/stats.py,sha256=dMSwjLI6FTcE4z6YHfRVi6spZsFNfAMLKZc4E-LnZMg,4221
5
+ hypercube_sim-0.1.0.dist-info/METADATA,sha256=kaFIm7m3UsfJr92JiOgdxid_qE7Jkz-oDp-vKokVy_0,355
6
+ hypercube_sim-0.1.0.dist-info/WHEEL,sha256=Q5QdGvjBfn8x6ihg-B4VQuuGKk7DT67L9DVrwEH_qj8,97
7
+ hypercube_sim-0.1.0.dist-info/sboms/hypercube_sim.cyclonedx.json,sha256=iXp4QaO-aaN3UYj2tI4uWboZ8P0kNsUgs_x30q_446A,27225
8
+ hypercube_sim-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp315-cp315-win_amd64
@@ -0,0 +1,875 @@
1
+ {
2
+ "bomFormat": "CycloneDX",
3
+ "specVersion": "1.5",
4
+ "version": 1,
5
+ "serialNumber": "urn:uuid:bee41430-33d1-49a6-a5ee-0e12ae94a9c8",
6
+ "metadata": {
7
+ "timestamp": "2026-11-30T15:43:59.103192600Z",
8
+ "tools": [
9
+ {
10
+ "vendor": "CycloneDX",
11
+ "name": "cargo-cyclonedx",
12
+ "version": "0.5.9"
13
+ }
14
+ ],
15
+ "component": {
16
+ "type": "library",
17
+ "bom-ref": "path+file:///D:/a/hypercube_sim/hypercube_sim#0.1.0",
18
+ "name": "hypercube_sim",
19
+ "version": "0.1.0",
20
+ "scope": "required",
21
+ "purl": "pkg:cargo/hypercube_sim@0.1.0?download_url=file://.",
22
+ "components": [
23
+ {
24
+ "type": "library",
25
+ "bom-ref": "path+file:///D:/a/hypercube_sim/hypercube_sim#0.1.0 bin-target-0",
26
+ "name": "hypercube_sim",
27
+ "version": "0.1.0",
28
+ "purl": "pkg:cargo/hypercube_sim@0.1.0?download_url=file://.#src/lib.rs"
29
+ }
30
+ ]
31
+ },
32
+ "properties": [
33
+ {
34
+ "name": "cdx:rustc:sbom:target:all_targets",
35
+ "value": "true"
36
+ }
37
+ ]
38
+ },
39
+ "components": [
40
+ {
41
+ "type": "library",
42
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1",
43
+ "author": "Josh Stone <cuviper@gmail.com>",
44
+ "name": "autocfg",
45
+ "version": "1.5.1",
46
+ "description": "Automatic cfg for Rust compiler features",
47
+ "scope": "excluded",
48
+ "hashes": [
49
+ {
50
+ "alg": "SHA-256",
51
+ "content": "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
52
+ }
53
+ ],
54
+ "licenses": [
55
+ {
56
+ "expression": "Apache-2.0 OR MIT"
57
+ }
58
+ ],
59
+ "purl": "pkg:cargo/autocfg@1.5.1",
60
+ "externalReferences": [
61
+ {
62
+ "type": "documentation",
63
+ "url": "https://docs.rs/autocfg/"
64
+ },
65
+ {
66
+ "type": "vcs",
67
+ "url": "https://github.com/cuviper/autocfg"
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "type": "library",
73
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
74
+ "name": "heck",
75
+ "version": "0.5.0",
76
+ "description": "heck is a case conversion library.",
77
+ "scope": "required",
78
+ "hashes": [
79
+ {
80
+ "alg": "SHA-256",
81
+ "content": "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
82
+ }
83
+ ],
84
+ "licenses": [
85
+ {
86
+ "expression": "MIT OR Apache-2.0"
87
+ }
88
+ ],
89
+ "purl": "pkg:cargo/heck@0.5.0",
90
+ "externalReferences": [
91
+ {
92
+ "type": "vcs",
93
+ "url": "https://github.com/withoutboats/heck"
94
+ }
95
+ ]
96
+ },
97
+ {
98
+ "type": "library",
99
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
100
+ "name": "libc",
101
+ "version": "0.2.191",
102
+ "description": "Raw FFI bindings to platform libraries like libc.",
103
+ "scope": "required",
104
+ "hashes": [
105
+ {
106
+ "alg": "SHA-256",
107
+ "content": "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
108
+ }
109
+ ],
110
+ "licenses": [
111
+ {
112
+ "expression": "MIT OR Apache-2.0"
113
+ }
114
+ ],
115
+ "purl": "pkg:cargo/libc@0.2.191",
116
+ "externalReferences": [
117
+ {
118
+ "type": "vcs",
119
+ "url": "https://github.com/rust-lang/libc"
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "type": "library",
125
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#matrixmultiply@0.3.11",
126
+ "author": "bluss, R. Janis Goldschmidt",
127
+ "name": "matrixmultiply",
128
+ "version": "0.3.11",
129
+ "description": "General matrix multiplication for f32 and f64 matrices. Operates on matrices with general layout (they can use arbitrary row and column stride). Detects and uses SIMD features on x86/x86-64 and AArch64 transparently for higher performance. Uses a microkernel strategy, so that the implementation is easy to parallelize and optimize. Supports multithreading.",
130
+ "scope": "required",
131
+ "hashes": [
132
+ {
133
+ "alg": "SHA-256",
134
+ "content": "3f607c237553f086e7043417a51df26b2eb899d3caff94e6a67592ff992fedc7"
135
+ }
136
+ ],
137
+ "licenses": [
138
+ {
139
+ "expression": "MIT OR Apache-2.0"
140
+ }
141
+ ],
142
+ "purl": "pkg:cargo/matrixmultiply@0.3.11",
143
+ "externalReferences": [
144
+ {
145
+ "type": "documentation",
146
+ "url": "https://docs.rs/matrixmultiply/"
147
+ },
148
+ {
149
+ "type": "vcs",
150
+ "url": "https://github.com/bluss/matrixmultiply/"
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ "type": "library",
156
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#ndarray@0.17.2",
157
+ "author": "Ulrik Sverdrup \"bluss\", Jim Turner",
158
+ "name": "ndarray",
159
+ "version": "0.17.2",
160
+ "description": "An n-dimensional array for general elements and for numerics. Lightweight array views and slicing; views support chunking and splitting.",
161
+ "scope": "required",
162
+ "hashes": [
163
+ {
164
+ "alg": "SHA-256",
165
+ "content": "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
166
+ }
167
+ ],
168
+ "licenses": [
169
+ {
170
+ "expression": "MIT OR Apache-2.0"
171
+ }
172
+ ],
173
+ "purl": "pkg:cargo/ndarray@0.17.2",
174
+ "externalReferences": [
175
+ {
176
+ "type": "documentation",
177
+ "url": "https://docs.rs/ndarray/"
178
+ },
179
+ {
180
+ "type": "vcs",
181
+ "url": "https://github.com/rust-ndarray/ndarray"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "type": "library",
187
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
188
+ "author": "The Rust Project Developers",
189
+ "name": "num-complex",
190
+ "version": "0.4.6",
191
+ "description": "Complex numbers implementation for Rust",
192
+ "scope": "required",
193
+ "hashes": [
194
+ {
195
+ "alg": "SHA-256",
196
+ "content": "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
197
+ }
198
+ ],
199
+ "licenses": [
200
+ {
201
+ "expression": "MIT OR Apache-2.0"
202
+ }
203
+ ],
204
+ "purl": "pkg:cargo/num-complex@0.4.6",
205
+ "externalReferences": [
206
+ {
207
+ "type": "documentation",
208
+ "url": "https://docs.rs/num-complex"
209
+ },
210
+ {
211
+ "type": "website",
212
+ "url": "https://github.com/rust-num/num-complex"
213
+ },
214
+ {
215
+ "type": "vcs",
216
+ "url": "https://github.com/rust-num/num-complex"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "library",
222
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
223
+ "author": "The Rust Project Developers",
224
+ "name": "num-integer",
225
+ "version": "0.1.47",
226
+ "description": "Integer traits and functions",
227
+ "scope": "required",
228
+ "hashes": [
229
+ {
230
+ "alg": "SHA-256",
231
+ "content": "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
232
+ }
233
+ ],
234
+ "licenses": [
235
+ {
236
+ "expression": "MIT OR Apache-2.0"
237
+ }
238
+ ],
239
+ "purl": "pkg:cargo/num-integer@0.1.47",
240
+ "externalReferences": [
241
+ {
242
+ "type": "documentation",
243
+ "url": "https://docs.rs/num-integer"
244
+ },
245
+ {
246
+ "type": "website",
247
+ "url": "https://github.com/rust-num/num-integer"
248
+ },
249
+ {
250
+ "type": "vcs",
251
+ "url": "https://github.com/rust-num/num-integer"
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "type": "library",
257
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19",
258
+ "author": "The Rust Project Developers",
259
+ "name": "num-traits",
260
+ "version": "0.2.19",
261
+ "description": "Numeric traits for generic mathematics",
262
+ "scope": "required",
263
+ "hashes": [
264
+ {
265
+ "alg": "SHA-256",
266
+ "content": "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
267
+ }
268
+ ],
269
+ "licenses": [
270
+ {
271
+ "expression": "MIT OR Apache-2.0"
272
+ }
273
+ ],
274
+ "purl": "pkg:cargo/num-traits@0.2.19",
275
+ "externalReferences": [
276
+ {
277
+ "type": "documentation",
278
+ "url": "https://docs.rs/num-traits"
279
+ },
280
+ {
281
+ "type": "website",
282
+ "url": "https://github.com/rust-num/num-traits"
283
+ },
284
+ {
285
+ "type": "vcs",
286
+ "url": "https://github.com/rust-num/num-traits"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "type": "library",
292
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#numpy@0.30.0",
293
+ "author": "The rust-numpy Project Developers, PyO3 Project and Contributors <https://github.com/PyO3>",
294
+ "name": "numpy",
295
+ "version": "0.30.0",
296
+ "description": "PyO3-based Rust bindings of the NumPy C-API",
297
+ "scope": "required",
298
+ "hashes": [
299
+ {
300
+ "alg": "SHA-256",
301
+ "content": "aa0b9111761885449e894981fa8051dcf69e0bd114aecbd4bcdd830b6be4ed92"
302
+ }
303
+ ],
304
+ "licenses": [
305
+ {
306
+ "expression": "BSD-2-Clause"
307
+ }
308
+ ],
309
+ "purl": "pkg:cargo/numpy@0.30.0",
310
+ "externalReferences": [
311
+ {
312
+ "type": "documentation",
313
+ "url": "https://docs.rs/numpy"
314
+ },
315
+ {
316
+ "type": "vcs",
317
+ "url": "https://github.com/PyO3/rust-numpy"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "type": "library",
323
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
324
+ "author": "Aleksey Kladov <aleksey.kladov@gmail.com>",
325
+ "name": "once_cell",
326
+ "version": "1.21.4",
327
+ "description": "Single assignment cells and lazy values.",
328
+ "scope": "required",
329
+ "hashes": [
330
+ {
331
+ "alg": "SHA-256",
332
+ "content": "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
333
+ }
334
+ ],
335
+ "licenses": [
336
+ {
337
+ "expression": "MIT OR Apache-2.0"
338
+ }
339
+ ],
340
+ "purl": "pkg:cargo/once_cell@1.21.4",
341
+ "externalReferences": [
342
+ {
343
+ "type": "documentation",
344
+ "url": "https://docs.rs/once_cell"
345
+ },
346
+ {
347
+ "type": "vcs",
348
+ "url": "https://github.com/matklad/once_cell"
349
+ }
350
+ ]
351
+ },
352
+ {
353
+ "type": "library",
354
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
355
+ "author": "David Tolnay <dtolnay@gmail.com>, Alex Crichton <alex@alexcrichton.com>",
356
+ "name": "proc-macro2",
357
+ "version": "1.0.107",
358
+ "description": "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.",
359
+ "scope": "required",
360
+ "hashes": [
361
+ {
362
+ "alg": "SHA-256",
363
+ "content": "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
364
+ }
365
+ ],
366
+ "licenses": [
367
+ {
368
+ "expression": "MIT OR Apache-2.0"
369
+ }
370
+ ],
371
+ "purl": "pkg:cargo/proc-macro2@1.0.107",
372
+ "externalReferences": [
373
+ {
374
+ "type": "documentation",
375
+ "url": "https://docs.rs/proc-macro2"
376
+ },
377
+ {
378
+ "type": "vcs",
379
+ "url": "https://github.com/dtolnay/proc-macro2"
380
+ }
381
+ ]
382
+ },
383
+ {
384
+ "type": "library",
385
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
386
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
387
+ "name": "pyo3-build-config",
388
+ "version": "0.30.1",
389
+ "description": "Build configuration for the PyO3 ecosystem",
390
+ "scope": "excluded",
391
+ "hashes": [
392
+ {
393
+ "alg": "SHA-256",
394
+ "content": "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
395
+ }
396
+ ],
397
+ "licenses": [
398
+ {
399
+ "expression": "MIT OR Apache-2.0"
400
+ }
401
+ ],
402
+ "purl": "pkg:cargo/pyo3-build-config@0.30.1",
403
+ "externalReferences": [
404
+ {
405
+ "type": "website",
406
+ "url": "https://pyo3.rs/"
407
+ },
408
+ {
409
+ "type": "vcs",
410
+ "url": "https://github.com/pyo3/pyo3"
411
+ }
412
+ ]
413
+ },
414
+ {
415
+ "type": "library",
416
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
417
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
418
+ "name": "pyo3-ffi",
419
+ "version": "0.30.1",
420
+ "description": "Python-API bindings for the PyO3 ecosystem",
421
+ "scope": "required",
422
+ "hashes": [
423
+ {
424
+ "alg": "SHA-256",
425
+ "content": "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
426
+ }
427
+ ],
428
+ "licenses": [
429
+ {
430
+ "expression": "MIT OR Apache-2.0"
431
+ }
432
+ ],
433
+ "purl": "pkg:cargo/pyo3-ffi@0.30.1",
434
+ "externalReferences": [
435
+ {
436
+ "type": "website",
437
+ "url": "https://pyo3.rs/"
438
+ },
439
+ {
440
+ "type": "other",
441
+ "url": "python"
442
+ },
443
+ {
444
+ "type": "vcs",
445
+ "url": "https://github.com/pyo3/pyo3"
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "type": "library",
451
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
452
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
453
+ "name": "pyo3-macros-backend",
454
+ "version": "0.30.1",
455
+ "description": "Code generation for PyO3 package",
456
+ "scope": "required",
457
+ "hashes": [
458
+ {
459
+ "alg": "SHA-256",
460
+ "content": "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
461
+ }
462
+ ],
463
+ "licenses": [
464
+ {
465
+ "expression": "MIT OR Apache-2.0"
466
+ }
467
+ ],
468
+ "purl": "pkg:cargo/pyo3-macros-backend@0.30.1",
469
+ "externalReferences": [
470
+ {
471
+ "type": "website",
472
+ "url": "https://pyo3.rs/"
473
+ },
474
+ {
475
+ "type": "vcs",
476
+ "url": "https://github.com/pyo3/pyo3"
477
+ }
478
+ ]
479
+ },
480
+ {
481
+ "type": "library",
482
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
483
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
484
+ "name": "pyo3-macros",
485
+ "version": "0.30.1",
486
+ "description": "Proc macros for PyO3 package",
487
+ "scope": "required",
488
+ "hashes": [
489
+ {
490
+ "alg": "SHA-256",
491
+ "content": "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
492
+ }
493
+ ],
494
+ "licenses": [
495
+ {
496
+ "expression": "MIT OR Apache-2.0"
497
+ }
498
+ ],
499
+ "purl": "pkg:cargo/pyo3-macros@0.30.1",
500
+ "externalReferences": [
501
+ {
502
+ "type": "website",
503
+ "url": "https://pyo3.rs/"
504
+ },
505
+ {
506
+ "type": "vcs",
507
+ "url": "https://github.com/pyo3/pyo3"
508
+ }
509
+ ]
510
+ },
511
+ {
512
+ "type": "library",
513
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
514
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
515
+ "name": "pyo3",
516
+ "version": "0.30.1",
517
+ "description": "Bindings to Python interpreter",
518
+ "scope": "required",
519
+ "hashes": [
520
+ {
521
+ "alg": "SHA-256",
522
+ "content": "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
523
+ }
524
+ ],
525
+ "licenses": [
526
+ {
527
+ "expression": "MIT OR Apache-2.0"
528
+ }
529
+ ],
530
+ "purl": "pkg:cargo/pyo3@0.30.1",
531
+ "externalReferences": [
532
+ {
533
+ "type": "documentation",
534
+ "url": "https://docs.rs/crate/pyo3/"
535
+ },
536
+ {
537
+ "type": "website",
538
+ "url": "https://pyo3.rs/"
539
+ },
540
+ {
541
+ "type": "other",
542
+ "url": "pyo3-python"
543
+ },
544
+ {
545
+ "type": "vcs",
546
+ "url": "https://github.com/pyo3/pyo3"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "type": "library",
552
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
553
+ "author": "David Tolnay <dtolnay@gmail.com>",
554
+ "name": "quote",
555
+ "version": "1.0.47",
556
+ "description": "Quasi-quoting macro quote!(...)",
557
+ "scope": "required",
558
+ "hashes": [
559
+ {
560
+ "alg": "SHA-256",
561
+ "content": "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
562
+ }
563
+ ],
564
+ "licenses": [
565
+ {
566
+ "expression": "MIT OR Apache-2.0"
567
+ }
568
+ ],
569
+ "purl": "pkg:cargo/quote@1.0.47",
570
+ "externalReferences": [
571
+ {
572
+ "type": "documentation",
573
+ "url": "https://docs.rs/quote/"
574
+ },
575
+ {
576
+ "type": "vcs",
577
+ "url": "https://github.com/dtolnay/quote"
578
+ }
579
+ ]
580
+ },
581
+ {
582
+ "type": "library",
583
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rawpointer@0.2.1",
584
+ "author": "bluss",
585
+ "name": "rawpointer",
586
+ "version": "0.2.1",
587
+ "description": "Extra methods for raw pointers and `NonNull<T>`. For example `.post_inc()` and `.pre_dec()` (c.f. `ptr++` and `--ptr`), `offset` and `add` for `NonNull<T>`, and the function `ptrdistance`. ",
588
+ "scope": "required",
589
+ "hashes": [
590
+ {
591
+ "alg": "SHA-256",
592
+ "content": "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
593
+ }
594
+ ],
595
+ "licenses": [
596
+ {
597
+ "expression": "MIT OR Apache-2.0"
598
+ }
599
+ ],
600
+ "purl": "pkg:cargo/rawpointer@0.2.1",
601
+ "externalReferences": [
602
+ {
603
+ "type": "documentation",
604
+ "url": "https://docs.rs/rawpointer/"
605
+ },
606
+ {
607
+ "type": "vcs",
608
+ "url": "https://github.com/bluss/rawpointer/"
609
+ }
610
+ ]
611
+ },
612
+ {
613
+ "type": "library",
614
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.3",
615
+ "author": "The Rust Project Developers",
616
+ "name": "rustc-hash",
617
+ "version": "2.1.3",
618
+ "description": "A speedy, non-cryptographic hashing algorithm used by rustc",
619
+ "scope": "required",
620
+ "hashes": [
621
+ {
622
+ "alg": "SHA-256",
623
+ "content": "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
624
+ }
625
+ ],
626
+ "licenses": [
627
+ {
628
+ "expression": "Apache-2.0 OR MIT"
629
+ }
630
+ ],
631
+ "purl": "pkg:cargo/rustc-hash@2.1.3",
632
+ "externalReferences": [
633
+ {
634
+ "type": "vcs",
635
+ "url": "https://github.com/rust-lang/rustc-hash"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "type": "library",
641
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10",
642
+ "author": "David Tolnay <dtolnay@gmail.com>",
643
+ "name": "syn",
644
+ "version": "3.0.10",
645
+ "description": "Parser for Rust source code",
646
+ "scope": "required",
647
+ "hashes": [
648
+ {
649
+ "alg": "SHA-256",
650
+ "content": "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
651
+ }
652
+ ],
653
+ "licenses": [
654
+ {
655
+ "expression": "MIT OR Apache-2.0"
656
+ }
657
+ ],
658
+ "purl": "pkg:cargo/syn@3.0.10",
659
+ "externalReferences": [
660
+ {
661
+ "type": "documentation",
662
+ "url": "https://docs.rs/syn"
663
+ },
664
+ {
665
+ "type": "vcs",
666
+ "url": "https://github.com/dtolnay/syn"
667
+ }
668
+ ]
669
+ },
670
+ {
671
+ "type": "library",
672
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6",
673
+ "author": "Dan Gohman <sunfish@mozilla.com>",
674
+ "name": "target-lexicon",
675
+ "version": "0.13.6",
676
+ "description": "LLVM target triple types",
677
+ "scope": "excluded",
678
+ "hashes": [
679
+ {
680
+ "alg": "SHA-256",
681
+ "content": "8c447be3a2abfa84b2d91680c56600bd6b2873866de27b36ec911be705e291da"
682
+ }
683
+ ],
684
+ "licenses": [
685
+ {
686
+ "expression": "Apache-2.0 WITH LLVM-exception"
687
+ }
688
+ ],
689
+ "purl": "pkg:cargo/target-lexicon@0.13.6",
690
+ "externalReferences": [
691
+ {
692
+ "type": "documentation",
693
+ "url": "https://docs.rs/target-lexicon/"
694
+ },
695
+ {
696
+ "type": "vcs",
697
+ "url": "https://github.com/bytecodealliance/target-lexicon"
698
+ }
699
+ ]
700
+ },
701
+ {
702
+ "type": "library",
703
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27",
704
+ "author": "David Tolnay <dtolnay@gmail.com>",
705
+ "name": "unicode-ident",
706
+ "version": "1.0.27",
707
+ "description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31",
708
+ "scope": "required",
709
+ "hashes": [
710
+ {
711
+ "alg": "SHA-256",
712
+ "content": "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
713
+ }
714
+ ],
715
+ "licenses": [
716
+ {
717
+ "expression": "(MIT OR Apache-2.0) AND Unicode-3.0"
718
+ }
719
+ ],
720
+ "purl": "pkg:cargo/unicode-ident@1.0.27",
721
+ "externalReferences": [
722
+ {
723
+ "type": "documentation",
724
+ "url": "https://docs.rs/unicode-ident"
725
+ },
726
+ {
727
+ "type": "vcs",
728
+ "url": "https://github.com/dtolnay/unicode-ident"
729
+ }
730
+ ]
731
+ }
732
+ ],
733
+ "dependencies": [
734
+ {
735
+ "ref": "path+file:///D:/a/hypercube_sim/hypercube_sim#0.1.0",
736
+ "dependsOn": [
737
+ "registry+https://github.com/rust-lang/crates.io-index#numpy@0.30.0",
738
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1"
739
+ ]
740
+ },
741
+ {
742
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1"
743
+ },
744
+ {
745
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0"
746
+ },
747
+ {
748
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191"
749
+ },
750
+ {
751
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#matrixmultiply@0.3.11",
752
+ "dependsOn": [
753
+ "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1",
754
+ "registry+https://github.com/rust-lang/crates.io-index#rawpointer@0.2.1"
755
+ ]
756
+ },
757
+ {
758
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#ndarray@0.17.2",
759
+ "dependsOn": [
760
+ "registry+https://github.com/rust-lang/crates.io-index#matrixmultiply@0.3.11",
761
+ "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
762
+ "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
763
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19",
764
+ "registry+https://github.com/rust-lang/crates.io-index#rawpointer@0.2.1"
765
+ ]
766
+ },
767
+ {
768
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
769
+ "dependsOn": [
770
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
771
+ ]
772
+ },
773
+ {
774
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
775
+ "dependsOn": [
776
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
777
+ ]
778
+ },
779
+ {
780
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19",
781
+ "dependsOn": [
782
+ "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1"
783
+ ]
784
+ },
785
+ {
786
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#numpy@0.30.0",
787
+ "dependsOn": [
788
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
789
+ "registry+https://github.com/rust-lang/crates.io-index#ndarray@0.17.2",
790
+ "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
791
+ "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
792
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19",
793
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
794
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
795
+ "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.3"
796
+ ]
797
+ },
798
+ {
799
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4"
800
+ },
801
+ {
802
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
803
+ "dependsOn": [
804
+ "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
805
+ ]
806
+ },
807
+ {
808
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
809
+ "dependsOn": [
810
+ "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6"
811
+ ]
812
+ },
813
+ {
814
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
815
+ "dependsOn": [
816
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
817
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1"
818
+ ]
819
+ },
820
+ {
821
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
822
+ "dependsOn": [
823
+ "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
824
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
825
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
826
+ "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10"
827
+ ]
828
+ },
829
+ {
830
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
831
+ "dependsOn": [
832
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
833
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
834
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
835
+ "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10"
836
+ ]
837
+ },
838
+ {
839
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
840
+ "dependsOn": [
841
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
842
+ "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
843
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
844
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
845
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1"
846
+ ]
847
+ },
848
+ {
849
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
850
+ "dependsOn": [
851
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107"
852
+ ]
853
+ },
854
+ {
855
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#rawpointer@0.2.1"
856
+ },
857
+ {
858
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#rustc-hash@2.1.3"
859
+ },
860
+ {
861
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.10",
862
+ "dependsOn": [
863
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
864
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
865
+ "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
866
+ ]
867
+ },
868
+ {
869
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.6"
870
+ },
871
+ {
872
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
873
+ }
874
+ ]
875
+ }