pelagos-decoder 0.1.0__py3-none-any.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.
- pelagos/__init__.py +34 -0
- pelagos/_process_worker.py +56 -0
- pelagos/adapter.py +858 -0
- pelagos/autotune.py +793 -0
- pelagos/decoder.py +3891 -0
- pelagos/graph.py +479 -0
- pelagos/kernels.py +2208 -0
- pelagos/process.py +287 -0
- pelagos/stim/__init__.py +11 -0
- pelagos/stim/sinter/__init__.py +11 -0
- pelagos/stim/sinter/check_matrices.py +112 -0
- pelagos/utils.py +995 -0
- pelagos_decoder-0.1.0.dist-info/METADATA +317 -0
- pelagos_decoder-0.1.0.dist-info/RECORD +16 -0
- pelagos_decoder-0.1.0.dist-info/WHEEL +4 -0
- pelagos_decoder-0.1.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: pelagos-decoder
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: GPU-accelerated Relay-BP decoder for qLDPC codes, implemented in Triton.
|
|
5
|
+
Project-URL: Homepage, https://github.com/quantum-supercomputing/pelagos
|
|
6
|
+
Project-URL: Documentation, https://github.com/quantum-supercomputing/pelagos/tree/main/tutorials
|
|
7
|
+
Project-URL: Issues, https://github.com/quantum-supercomputing/pelagos/issues
|
|
8
|
+
Project-URL: Changelog, https://github.com/quantum-supercomputing/pelagos/blob/main/CHANGELOG.md
|
|
9
|
+
Project-URL: Paper, https://ieeexplore.ieee.org/document/11662198
|
|
10
|
+
Author: Roman Pletka, Xulong Tang, Yasuko Eckert
|
|
11
|
+
Author-email: Dionysios Diamantopoulos <did@zurich.ibm.com>
|
|
12
|
+
License: Apache-2.0
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Keywords: belief propagation,decoder,gpu,ldpc,qec,qldpc,quantum error correction,relay-bp,triton
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: Intended Audience :: Science/Research
|
|
17
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
18
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
23
|
+
Classifier: Topic :: Scientific/Engineering
|
|
24
|
+
Requires-Python: >=3.11
|
|
25
|
+
Requires-Dist: numpy
|
|
26
|
+
Requires-Dist: scipy
|
|
27
|
+
Provides-Extra: all
|
|
28
|
+
Requires-Dist: beliefmatching; extra == 'all'
|
|
29
|
+
Requires-Dist: jupyterlab; extra == 'all'
|
|
30
|
+
Requires-Dist: matplotlib; extra == 'all'
|
|
31
|
+
Requires-Dist: nvidia-ml-py; extra == 'all'
|
|
32
|
+
Requires-Dist: pandas; extra == 'all'
|
|
33
|
+
Requires-Dist: pytest; extra == 'all'
|
|
34
|
+
Requires-Dist: relay-bp>=0.0.2; extra == 'all'
|
|
35
|
+
Requires-Dist: stim>=1.15; extra == 'all'
|
|
36
|
+
Requires-Dist: torch>=2.12.1; extra == 'all'
|
|
37
|
+
Requires-Dist: triton>=2.0.0; extra == 'all'
|
|
38
|
+
Provides-Extra: bench
|
|
39
|
+
Requires-Dist: pandas; extra == 'bench'
|
|
40
|
+
Provides-Extra: gpu
|
|
41
|
+
Requires-Dist: nvidia-ml-py; extra == 'gpu'
|
|
42
|
+
Requires-Dist: torch>=2.12.1; extra == 'gpu'
|
|
43
|
+
Requires-Dist: triton>=2.0.0; extra == 'gpu'
|
|
44
|
+
Provides-Extra: rust
|
|
45
|
+
Requires-Dist: relay-bp>=0.0.2; extra == 'rust'
|
|
46
|
+
Provides-Extra: stim
|
|
47
|
+
Requires-Dist: beliefmatching; extra == 'stim'
|
|
48
|
+
Requires-Dist: stim>=1.15; extra == 'stim'
|
|
49
|
+
Provides-Extra: test
|
|
50
|
+
Requires-Dist: pytest; extra == 'test'
|
|
51
|
+
Provides-Extra: tutorials
|
|
52
|
+
Requires-Dist: beliefmatching; extra == 'tutorials'
|
|
53
|
+
Requires-Dist: jupyterlab; extra == 'tutorials'
|
|
54
|
+
Requires-Dist: matplotlib; extra == 'tutorials'
|
|
55
|
+
Requires-Dist: nvidia-ml-py; extra == 'tutorials'
|
|
56
|
+
Requires-Dist: stim>=1.15; extra == 'tutorials'
|
|
57
|
+
Requires-Dist: torch>=2.12.1; extra == 'tutorials'
|
|
58
|
+
Requires-Dist: triton>=2.0.0; extra == 'tutorials'
|
|
59
|
+
Description-Content-Type: text/markdown
|
|
60
|
+
|
|
61
|
+
<!-- Modified 2026 by AMD to document process-per-GPU execution. -->
|
|
62
|
+
<!-- Modified 2026 by AMD to link the multi-GPU tutorial. -->
|
|
63
|
+
|
|
64
|
+
<p align="center">
|
|
65
|
+
<picture>
|
|
66
|
+
<source media="(prefers-color-scheme: dark)" srcset="docs/logo-dark.svg">
|
|
67
|
+
<img src="docs/logo-light.svg" alt="Pelagos" width="140" height="140">
|
|
68
|
+
</picture>
|
|
69
|
+
</p>
|
|
70
|
+
|
|
71
|
+
<h1 align="center">Pelagos</h1>
|
|
72
|
+
|
|
73
|
+
<p align="center">
|
|
74
|
+
GPU-accelerated <strong>Relay-BP</strong> decoder for qLDPC codes,
|
|
75
|
+
implemented in <a href="https://github.com/triton-lang/triton">Triton</a>.
|
|
76
|
+
</p>
|
|
77
|
+
|
|
78
|
+
<p align="center">
|
|
79
|
+
<a href="https://github.com/quantum-supercomputing/pelagos/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/quantum-supercomputing/pelagos/actions/workflows/ci.yml/badge.svg?branch=main"></a>
|
|
80
|
+
<a href="LICENSE"><img alt="License: Apache 2.0" src="https://img.shields.io/badge/license-Apache_2.0-blue.svg"></a>
|
|
81
|
+
<img alt="Python 3.11 | 3.12 | 3.13" src="https://img.shields.io/badge/python-3.11_|_3.12_|_3.13-3776AB?logo=python&logoColor=white">
|
|
82
|
+
<a href="https://ieeexplore.ieee.org/document/11662198"><img alt="Paper: IEEE QSW 2026" src="https://img.shields.io/badge/paper-IEEE_QSW_2026-00629B?logo=ieee&logoColor=white"></a>
|
|
83
|
+
</p>
|
|
84
|
+
|
|
85
|
+
<p align="center">
|
|
86
|
+
<a href="https://github.com/triton-lang/triton"><img alt="Triton" src="https://img.shields.io/badge/kernels-Triton-6E4AFF"></a>
|
|
87
|
+
<a href="https://pytorch.org"><img alt="PyTorch" src="https://img.shields.io/badge/PyTorch-EE4C2C?logo=pytorch&logoColor=white"></a>
|
|
88
|
+
<img alt="AMD ROCm" src="https://img.shields.io/badge/AMD-ROCm-ED1C24?logo=amd&logoColor=white">
|
|
89
|
+
<img alt="NVIDIA CUDA" src="https://img.shields.io/badge/NVIDIA-CUDA-76B900?logo=nvidia&logoColor=white">
|
|
90
|
+
<a href="https://github.com/quantumlib/Stim"><img alt="stim" src="https://img.shields.io/badge/noise_models-stim-4285F4"></a>
|
|
91
|
+
<a href="tutorials/"><img alt="Tutorials: Jupyter" src="https://img.shields.io/badge/tutorials-Jupyter-F37626?logo=jupyter&logoColor=white"></a>
|
|
92
|
+
</p>
|
|
93
|
+
|
|
94
|
+
Pelagos implements min-sum belief propagation with disordered memory
|
|
95
|
+
strengths (Relay-BP-S), batched across syndromes and executed as fused
|
|
96
|
+
Triton kernels. It is interface-compatible with (and cross-validated
|
|
97
|
+
against) the `relay-bp` Rust reference implementation, available on PyPI.
|
|
98
|
+
|
|
99
|
+
## Hardware support
|
|
100
|
+
|
|
101
|
+
Pelagos is vendor-neutral: the kernels are written in Triton, which targets
|
|
102
|
+
both NVIDIA (CUDA), AMD (ROCm/HIP) and Intel (SPIR-V) GPUs. The decoder
|
|
103
|
+
detects the active backend at construction time and adapts launch parameters
|
|
104
|
+
accordingly.
|
|
105
|
+
|
|
106
|
+
## Install
|
|
107
|
+
|
|
108
|
+
```bash
|
|
109
|
+
pip install pelagos-decoder[gpu] # decoder + torch/triton
|
|
110
|
+
pip install pelagos-decoder[gpu,rust] # + the Rust CPU reference, side by side
|
|
111
|
+
pip install pelagos-decoder[gpu,stim] # + stim / DEM support
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Development uses [uv](https://docs.astral.sh/uv/):
|
|
115
|
+
|
|
116
|
+
```bash
|
|
117
|
+
uv sync --extra all
|
|
118
|
+
uv run pytest
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
A GPU is required to decode; there is no CPU fallback (see
|
|
122
|
+
[Known limitations](#known-limitations)). The package imports and its
|
|
123
|
+
structural tests run anywhere.
|
|
124
|
+
|
|
125
|
+
## Quickstart
|
|
126
|
+
|
|
127
|
+
```python
|
|
128
|
+
import numpy as np
|
|
129
|
+
import torch
|
|
130
|
+
from scipy.sparse import csr_matrix
|
|
131
|
+
from pelagos import RelayBPDecoder
|
|
132
|
+
|
|
133
|
+
# A tiny code: 3 checks over 3 variables.
|
|
134
|
+
H = csr_matrix(np.array([[1, 1, 0],
|
|
135
|
+
[0, 1, 1],
|
|
136
|
+
[1, 0, 1]], dtype=np.uint8))
|
|
137
|
+
priors = np.full(3, 0.05)
|
|
138
|
+
|
|
139
|
+
decoder = RelayBPDecoder(
|
|
140
|
+
H_csr=H,
|
|
141
|
+
error_priors=priors,
|
|
142
|
+
pre_iter=80, # T0: ordered-memory iterations
|
|
143
|
+
num_sets=100, # R: relay legs
|
|
144
|
+
set_max_iter=60, # Tr: iterations per leg
|
|
145
|
+
gamma0=0.65, # ordered memory strength
|
|
146
|
+
gamma_dist_interval=(-0.24, 0.66),
|
|
147
|
+
stop_nconv=5, # stop after 5 valid solutions
|
|
148
|
+
data_type="float32",
|
|
149
|
+
algo="relay", # required: "relay" or "plain"
|
|
150
|
+
)
|
|
151
|
+
|
|
152
|
+
# decode() takes a torch GPU tensor, not a numpy array.
|
|
153
|
+
syndrome = np.array([[1, 0, 1]], dtype=np.uint8)
|
|
154
|
+
syndrome_gpu = torch.from_numpy(syndrome).to("cuda:0")
|
|
155
|
+
result = decoder.decode(syndrome_gpu)
|
|
156
|
+
|
|
157
|
+
# The decoded error pattern is under the "errors" key.
|
|
158
|
+
e_hat = result["errors"].cpu().numpy()
|
|
159
|
+
print(e_hat)
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Three details that are easy to get wrong (all enforced by
|
|
163
|
+
`tests/test_smoke.py`):
|
|
164
|
+
|
|
165
|
+
- `algo` must be passed explicitly — `algo="relay"` or `algo="plain"`.
|
|
166
|
+
Omitting it raises `ValueError: Unknown algo 'None'`.
|
|
167
|
+
- `decode()` requires a torch tensor already on the GPU
|
|
168
|
+
(`torch.from_numpy(...).to("cuda:0")` — PyTorch uses the `"cuda"` device
|
|
169
|
+
type for ROCm builds as well, so the same call works on AMD),
|
|
170
|
+
not a numpy array.
|
|
171
|
+
- The result dict's error-pattern key is `"errors"`, not `"e_hat"`.
|
|
172
|
+
|
|
173
|
+
### From a stim detector error model
|
|
174
|
+
|
|
175
|
+
```python
|
|
176
|
+
import stim
|
|
177
|
+
from pelagos.stim.sinter.check_matrices import CheckMatrices
|
|
178
|
+
from pelagos import RelayBPDecoder
|
|
179
|
+
|
|
180
|
+
dem = stim.Circuit.generated(
|
|
181
|
+
"surface_code:rotated_memory_x", distance=3, rounds=3,
|
|
182
|
+
after_clifford_depolarization=0.001,
|
|
183
|
+
).detector_error_model(decompose_errors=False)
|
|
184
|
+
|
|
185
|
+
cm = CheckMatrices.from_dem(dem)
|
|
186
|
+
decoder = RelayBPDecoder(H_csr=cm.check_matrix, error_priors=cm.error_priors, algo="relay")
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
Note the field is `cm.error_priors`, not `cm.priors`. This path requires
|
|
190
|
+
the `stim` extra (`pip install pelagos-decoder[stim]`), which pulls in
|
|
191
|
+
`beliefmatching`.
|
|
192
|
+
|
|
193
|
+
## Tutorials
|
|
194
|
+
|
|
195
|
+
Step-by-step Jupyter notebooks live in [`tutorials/`](tutorials/). Start with
|
|
196
|
+
[Tutorial 1: single-GPU quickstart](tutorials/01_single_gpu_quickstart.ipynb). It goes
|
|
197
|
+
from a stim circuit to a logical error rate on the [[72,12,6]] bivariate bicycle code,
|
|
198
|
+
compares plain BP with Relay-BP, and measures throughput:
|
|
199
|
+
|
|
200
|
+
```bash
|
|
201
|
+
uv sync --extra tutorials # or: pip install -e ".[tutorials]"
|
|
202
|
+
uv run jupyter lab tutorials/
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
Continue with [Tutorial 2: multi-GPU quickstart](tutorials/02_multi_gpu_quickstart.ipynb)
|
|
206
|
+
to decode on up to eight GPUs using the process backend, check decoding
|
|
207
|
+
quality, and compare GPU counts with 1,024 shots per GPU.
|
|
208
|
+
|
|
209
|
+
## Benchmarking
|
|
210
|
+
|
|
211
|
+
`pelagos_benchmark.py` is a full-featured benchmark CLI. Run
|
|
212
|
+
`python pelagos_benchmark.py --help` for the complete flag list; the
|
|
213
|
+
important ones are `--backend {rust,triton}`, `--circuit`, `--basis`,
|
|
214
|
+
`--distance`, `--rounds`, `--error-rate`, `--data-type`, and `--gpus`. It
|
|
215
|
+
needs `pandas`, which ships in the `bench` extra:
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
pip install "pelagos-decoder[gpu,bench]" # or: uv sync --extra gpu --extra bench
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
```bash
|
|
222
|
+
python pelagos_benchmark.py --backend triton \
|
|
223
|
+
--circuit bicycle_bivariate_144_12_12_memory_X --basis x \
|
|
224
|
+
--distance 12 --rounds 12 --error-rate 0.003 --data-type float32
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
There is no single `--compare-rust` flag; to cross-check against the Rust
|
|
228
|
+
reference, run the same command twice with `--backend rust` and
|
|
229
|
+
`--backend triton` (the `rust` extra must be installed for the former).
|
|
230
|
+
|
|
231
|
+
## Included circuits
|
|
232
|
+
|
|
233
|
+
`tests/testdata/bicycle_bivariate/` ships gzipped stim circuits for the
|
|
234
|
+
bivariate bicycle codes [[18,4,3]], [[72,12,6]], [[144,12,12]], and
|
|
235
|
+
[[288,12,18]], in `X` and `choi_XZ` bases, at physical error rates 0.002,
|
|
236
|
+
0.003, and 0.005 (24 files, 2.4 MB total).
|
|
237
|
+
|
|
238
|
+
`stim.Circuit.from_file` does not transparently decompress gzip, so the
|
|
239
|
+
bundled loader in `tests/testdata/circuits.py` handles both forms:
|
|
240
|
+
|
|
241
|
+
```python
|
|
242
|
+
import sys; sys.path.insert(0, "tests")
|
|
243
|
+
from testdata import get_test_circuit
|
|
244
|
+
|
|
245
|
+
circuit = get_test_circuit(
|
|
246
|
+
"bicycle_bivariate_144_12_12_memory_X", 0.003, distance=12, rounds=12
|
|
247
|
+
)
|
|
248
|
+
dem = circuit.detector_error_model(decompose_errors=False)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## Testing
|
|
252
|
+
|
|
253
|
+
Continuous integration runs on GitHub-hosted runners, which have **no GPU**. On every pull
|
|
254
|
+
request, CI checks packaging, imports, lint (syntax errors and undefined names), the
|
|
255
|
+
CPU-side code (input validation, bit packing, the conversion from a stim DEM to check
|
|
256
|
+
matrices) and the well-formedness of the tutorial notebooks. The decoder tests, including
|
|
257
|
+
the bit-exact comparison against the Rust reference, **are skipped in CI**.
|
|
258
|
+
|
|
259
|
+
Before each release, and for any pull request that touches the kernels or the decoder, a
|
|
260
|
+
maintainer runs the full suite on a GPU:
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
uv sync --extra gpu --extra rust --extra stim --extra test
|
|
264
|
+
uv run pytest tests/ -v -rs # nothing should be reported as skipped
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
## Known limitations
|
|
268
|
+
|
|
269
|
+
- **A GPU is required.** There is no CPU fallback; use the Rust
|
|
270
|
+
implementation (`relay-bp` on PyPI) for CPU decoding.
|
|
271
|
+
- **Multi-GPU support is limited to one node.** The default multi-device path
|
|
272
|
+
(`device=[0, 1, ...]`, `--gpus`) runs one thread per GPU in a single process and
|
|
273
|
+
does not scale linearly with the number of GPUs. The opt-in
|
|
274
|
+
[process-per-GPU backend](docs/process-backend.md) runs one worker process per GPU
|
|
275
|
+
instead; its smoke test checks results against the single-GPU decoder on two GPUs.
|
|
276
|
+
Scaling across nodes is not supported.
|
|
277
|
+
|
|
278
|
+
## Contributing
|
|
279
|
+
|
|
280
|
+
Contributions are welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for the development setup,
|
|
281
|
+
testing, and sign-off requirements. Everyone taking part is expected to follow the
|
|
282
|
+
[Code of Conduct](CODE_OF_CONDUCT.md). Please report security issues privately, as described in
|
|
283
|
+
[SECURITY.md](SECURITY.md). Release notes are in [CHANGELOG.md](CHANGELOG.md).
|
|
284
|
+
|
|
285
|
+
## Governance
|
|
286
|
+
|
|
287
|
+
Pelagos is maintained by contributors from IBM and AMD under a lightweight,
|
|
288
|
+
maintainer-led model. See [GOVERNANCE.md](GOVERNANCE.md) for how decisions are made and
|
|
289
|
+
[MAINTAINERS.md](MAINTAINERS.md) for the current maintainers.
|
|
290
|
+
|
|
291
|
+
## Citation
|
|
292
|
+
|
|
293
|
+
If you use Pelagos in your research, please cite:
|
|
294
|
+
|
|
295
|
+
> D. Diamantopoulos, L. von Niederhäusern, A. S. Anghel, A. Kayi, R. Pletka, T. Müller,
|
|
296
|
+
> N. Papandreou, J. Blanusa, S. Sarafijanovic, N. M. Gonzalez, F. Abel, C. Hagleitner,
|
|
297
|
+
> S. Seelam, B. Johnson, R. Haas, and H. Pozidis, "Pêlagos: An Adaptive GPU Decoder for
|
|
298
|
+
> Error Correction Simulations of Quantum LDPC Codes," in *2026 IEEE International
|
|
299
|
+
> Conference on Quantum Software (QSW)*, 2026, pp. 152–165.
|
|
300
|
+
> [IEEE Xplore](https://ieeexplore.ieee.org/document/11662198)
|
|
301
|
+
|
|
302
|
+
```bibtex
|
|
303
|
+
@INPROCEEDINGS{11662198,
|
|
304
|
+
author={Diamantopoulos, Dionysios and von Niederhäusern, Luc and Anghel, Andreea Simona and Pletka, Roman and Kayi, Apo and Müller, Tristan and Papandreou, Nikolaos and Blanusa, Jovan and Sarafijanovic, Slavisa and Gonzalez, Nelson Mimura and Abel, Francois and Hagleitner, Christoph and Seelam, Seetharami and Johnson, Blake and Haas, Robert and Pozidis, Haralampos},
|
|
305
|
+
booktitle={2026 IEEE International Conference on Quantum Software (QSW)},
|
|
306
|
+
title={Pêlαγos: An Adaptive GPU Decoder for Error Correction Simulations of Quantum LDPC Codes},
|
|
307
|
+
year={2026},
|
|
308
|
+
pages={152-165},
|
|
309
|
+
doi={10.1109/QSW72780.2026.00025}}
|
|
310
|
+
|
|
311
|
+
```
|
|
312
|
+
|
|
313
|
+
## License
|
|
314
|
+
|
|
315
|
+
Pelagos is jointly owned by IBM and AMD.
|
|
316
|
+
|
|
317
|
+
Licensed under the Apache License, Version 2.0. See [LICENSE](LICENSE).
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
pelagos/__init__.py,sha256=UrLwhc0XIrvw5MjxmVZWsCOVJL_FoHjJLLRGZjxmVOo,1471
|
|
2
|
+
pelagos/_process_worker.py,sha256=DQuQVdC38UrMQ2Y_Zy5aP-Bwl25ZmlTAWzi6dv8gwNs,2194
|
|
3
|
+
pelagos/adapter.py,sha256=9Z181r-6wvyOkUgt0mxcrQas9WlDyyyApNzw2qG2xgw,35571
|
|
4
|
+
pelagos/autotune.py,sha256=TWDbTPrrmXbip1eZshnIP-aqB8QsakTjR8nA2O4zilg,31928
|
|
5
|
+
pelagos/decoder.py,sha256=wzuEgPM6eMHaCDqODSjG4DXPjAbMZqVtUoD4wOUs3dQ,159820
|
|
6
|
+
pelagos/graph.py,sha256=nw1hUZFZksuaxHBu-Y_hJRktrQn3r5xpPiZo0lHutBc,21492
|
|
7
|
+
pelagos/kernels.py,sha256=oGNz_ag8ptPh8uuIBfHYZoCW9x3r5-tYaxI7fBtgtZ0,90517
|
|
8
|
+
pelagos/process.py,sha256=eqHGF6FAaMVG8Iw1ypf0mrwZX6MghKMSxiwdIVWKdU8,12325
|
|
9
|
+
pelagos/utils.py,sha256=RsX1orZMbDz4lIW2MTaQXd2aAzTBNC5t8dEEBqS6T3Q,35436
|
|
10
|
+
pelagos/stim/__init__.py,sha256=Gz0XH5vGImpgIGv7eIjwTlYAc3uL8ZH89QVBymkYUaE,465
|
|
11
|
+
pelagos/stim/sinter/__init__.py,sha256=Gz0XH5vGImpgIGv7eIjwTlYAc3uL8ZH89QVBymkYUaE,465
|
|
12
|
+
pelagos/stim/sinter/check_matrices.py,sha256=hATyHx711manIwX7NZI4edpytdSYmV7ndqm3Aw-3YjU,4569
|
|
13
|
+
pelagos_decoder-0.1.0.dist-info/METADATA,sha256=q_nbNgDVuygZmEwKWRKJQqAhqwCa6KigE2s8UaUqM6A,13307
|
|
14
|
+
pelagos_decoder-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
15
|
+
pelagos_decoder-0.1.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
16
|
+
pelagos_decoder-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|