pelagos-decoder 0.1.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.
Files changed (75) hide show
  1. pelagos_decoder-0.1.0/.github/ISSUE_TEMPLATE/bug_report.yml +42 -0
  2. pelagos_decoder-0.1.0/.github/ISSUE_TEMPLATE/config.yml +5 -0
  3. pelagos_decoder-0.1.0/.github/ISSUE_TEMPLATE/feature_request.yml +19 -0
  4. pelagos_decoder-0.1.0/.github/PULL_REQUEST_TEMPLATE.md +12 -0
  5. pelagos_decoder-0.1.0/.github/dependabot.yml +8 -0
  6. pelagos_decoder-0.1.0/.github/workflows/ci.yml +57 -0
  7. pelagos_decoder-0.1.0/.github/workflows/release.yml +46 -0
  8. pelagos_decoder-0.1.0/.gitignore +20 -0
  9. pelagos_decoder-0.1.0/CHANGELOG.md +49 -0
  10. pelagos_decoder-0.1.0/CITATION.cff +90 -0
  11. pelagos_decoder-0.1.0/CODE_OF_CONDUCT.md +84 -0
  12. pelagos_decoder-0.1.0/CONTRIBUTING.md +69 -0
  13. pelagos_decoder-0.1.0/GOVERNANCE.md +41 -0
  14. pelagos_decoder-0.1.0/LICENSE +201 -0
  15. pelagos_decoder-0.1.0/MAINTAINERS.md +13 -0
  16. pelagos_decoder-0.1.0/PKG-INFO +317 -0
  17. pelagos_decoder-0.1.0/README.md +257 -0
  18. pelagos_decoder-0.1.0/SECURITY.md +19 -0
  19. pelagos_decoder-0.1.0/docs/logo-dark.svg +41 -0
  20. pelagos_decoder-0.1.0/docs/logo-light.svg +41 -0
  21. pelagos_decoder-0.1.0/docs/process-backend.md +68 -0
  22. pelagos_decoder-0.1.0/pelagos_benchmark.py +2148 -0
  23. pelagos_decoder-0.1.0/pyproject.toml +92 -0
  24. pelagos_decoder-0.1.0/src/pelagos/__init__.py +34 -0
  25. pelagos_decoder-0.1.0/src/pelagos/_process_worker.py +56 -0
  26. pelagos_decoder-0.1.0/src/pelagos/adapter.py +858 -0
  27. pelagos_decoder-0.1.0/src/pelagos/autotune.py +793 -0
  28. pelagos_decoder-0.1.0/src/pelagos/decoder.py +3891 -0
  29. pelagos_decoder-0.1.0/src/pelagos/graph.py +479 -0
  30. pelagos_decoder-0.1.0/src/pelagos/kernels.py +2208 -0
  31. pelagos_decoder-0.1.0/src/pelagos/process.py +287 -0
  32. pelagos_decoder-0.1.0/src/pelagos/stim/__init__.py +11 -0
  33. pelagos_decoder-0.1.0/src/pelagos/stim/sinter/__init__.py +11 -0
  34. pelagos_decoder-0.1.0/src/pelagos/stim/sinter/check_matrices.py +112 -0
  35. pelagos_decoder-0.1.0/src/pelagos/utils.py +995 -0
  36. pelagos_decoder-0.1.0/tests/process_gpu_smoke.py +126 -0
  37. pelagos_decoder-0.1.0/tests/test_cpu_units.py +150 -0
  38. pelagos_decoder-0.1.0/tests/test_decoder_fixes.py +450 -0
  39. pelagos_decoder-0.1.0/tests/test_gamma_sampling.py +103 -0
  40. pelagos_decoder-0.1.0/tests/test_package_integrity.py +62 -0
  41. pelagos_decoder-0.1.0/tests/test_process.py +115 -0
  42. pelagos_decoder-0.1.0/tests/test_smoke.py +134 -0
  43. pelagos_decoder-0.1.0/tests/test_triton_against_rust.py +823 -0
  44. pelagos_decoder-0.1.0/tests/test_unconverged_correction.py +248 -0
  45. pelagos_decoder-0.1.0/tests/testdata/__init__.py +25 -0
  46. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_144_12_12_memory_X,distance=12,rounds=12,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  47. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_144_12_12_memory_X,distance=12,rounds=12,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  48. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_144_12_12_memory_X,distance=12,rounds=12,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  49. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_144_12_12_memory_choi_XZ,distance=12,rounds=12,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  50. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_144_12_12_memory_choi_XZ,distance=12,rounds=12,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  51. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_144_12_12_memory_choi_XZ,distance=12,rounds=12,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  52. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_18_4_3_memory_X,distance=3,rounds=3,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x+1+y,B=x+1+xy^2.stim.gz +0 -0
  53. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_18_4_3_memory_X,distance=3,rounds=3,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x+1+y,B=x+1+xy^2.stim.gz +0 -0
  54. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_18_4_3_memory_X,distance=3,rounds=3,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x+1+y,B=x+1+xy^2.stim.gz +0 -0
  55. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_18_4_3_memory_choi_XZ,distance=3,rounds=3,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x+1+y,B=x+1+xy^2.stim.gz +0 -0
  56. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_18_4_3_memory_choi_XZ,distance=3,rounds=3,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x+1+y,B=x+1+xy^2.stim.gz +0 -0
  57. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_18_4_3_memory_choi_XZ,distance=3,rounds=3,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x+1+y,B=x+1+xy^2.stim.gz +0 -0
  58. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_288_12_18_memory_X,distance=18,rounds=18,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x^3+y^2+y^7,B=y^3+x+x^2.stim.gz +0 -0
  59. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_288_12_18_memory_X,distance=18,rounds=18,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x^3+y^2+y^7,B=y^3+x+x^2.stim.gz +0 -0
  60. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_288_12_18_memory_X,distance=18,rounds=18,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x^3+y^2+y^7,B=y^3+x+x^2.stim.gz +0 -0
  61. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_288_12_18_memory_choi_XZ,distance=18,rounds=18,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x^3+y^2+y^7,B=y^3+x+x^2.stim.gz +0 -0
  62. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_288_12_18_memory_choi_XZ,distance=18,rounds=18,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x^3+y^2+y^7,B=y^3+x+x^2.stim.gz +0 -0
  63. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_288_12_18_memory_choi_XZ,distance=18,rounds=18,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x^3+y^2+y^7,B=y^3+x+x^2.stim.gz +0 -0
  64. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_72_12_6_memory_X,distance=6,rounds=6,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  65. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_72_12_6_memory_X,distance=6,rounds=6,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  66. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_72_12_6_memory_X,distance=6,rounds=6,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  67. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_72_12_6_memory_choi_XZ,distance=6,rounds=6,error_rate=0.002,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  68. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_72_12_6_memory_choi_XZ,distance=6,rounds=6,error_rate=0.003,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  69. pelagos_decoder-0.1.0/tests/testdata/bicycle_bivariate/circuit=bicycle_bivariate_72_12_6_memory_choi_XZ,distance=6,rounds=6,error_rate=0.005,noise_model=uniform_circuit,basis=CX,A=x^3+y+y^2,B=y^3+x+x^2.stim.gz +0 -0
  70. pelagos_decoder-0.1.0/tests/testdata/circuits.py +135 -0
  71. pelagos_decoder-0.1.0/tests/testdata/utils.py +160 -0
  72. pelagos_decoder-0.1.0/tutorials/01_single_gpu_quickstart.ipynb +740 -0
  73. pelagos_decoder-0.1.0/tutorials/02_multi_gpu_quickstart.ipynb +324 -0
  74. pelagos_decoder-0.1.0/tutorials/README.md +24 -0
  75. pelagos_decoder-0.1.0/uv.lock +3104 -0
@@ -0,0 +1,42 @@
1
+ name: Bug report
2
+ description: Something does not work as documented, or gives wrong results.
3
+ labels: ["bug"]
4
+ body:
5
+ - type: markdown
6
+ attributes:
7
+ value: |
8
+ Thanks for reporting! Please report security vulnerabilities privately; see SECURITY.md.
9
+ - type: textarea
10
+ id: what-happened
11
+ attributes:
12
+ label: What happened?
13
+ description: What you expected, what happened instead, and the full error message if there is one.
14
+ validations:
15
+ required: true
16
+ - type: textarea
17
+ id: reproducer
18
+ attributes:
19
+ label: Minimal reproducer
20
+ description: The smallest code or command that shows the problem.
21
+ render: python
22
+ validations:
23
+ required: true
24
+ - type: dropdown
25
+ id: backend
26
+ attributes:
27
+ label: GPU backend
28
+ options:
29
+ - CUDA (NVIDIA)
30
+ - ROCm (AMD)
31
+ - Other / not applicable
32
+ validations:
33
+ required: true
34
+ - type: textarea
35
+ id: environment
36
+ attributes:
37
+ label: Environment
38
+ description: Paste the output of the command below.
39
+ value: |
40
+ python -c "import pelagos, torch, triton, platform; print(platform.platform()); print('python', platform.python_version()); print('torch', torch.__version__, 'cuda', torch.version.cuda, 'hip', torch.version.hip); print('triton', triton.__version__); print('gpu', torch.cuda.get_device_name(0) if torch.cuda.is_available() else None)"
41
+ validations:
42
+ required: true
@@ -0,0 +1,5 @@
1
+ blank_issues_enabled: false
2
+ contact_links:
3
+ - name: Report a security vulnerability
4
+ url: https://github.com/quantum-supercomputing/pelagos/security/advisories/new
5
+ about: Please report vulnerabilities privately, not in a public issue.
@@ -0,0 +1,19 @@
1
+ name: Feature request
2
+ description: Suggest a new feature or an improvement.
3
+ labels: ["enhancement"]
4
+ body:
5
+ - type: textarea
6
+ id: problem
7
+ attributes:
8
+ label: What problem would this solve?
9
+ validations:
10
+ required: true
11
+ - type: textarea
12
+ id: proposal
13
+ attributes:
14
+ label: Proposed solution
15
+ description: How you imagine it working, including any API sketch.
16
+ - type: textarea
17
+ id: alternatives
18
+ attributes:
19
+ label: Alternatives considered
@@ -0,0 +1,12 @@
1
+ ## Summary
2
+
3
+ <!-- What does this change, and why? Link related issues, e.g. "Fixes #123". -->
4
+
5
+ ## Checklist
6
+
7
+ - [ ] Commits are signed off (`git commit -s`); see [CONTRIBUTING.md](../CONTRIBUTING.md).
8
+ - [ ] Tests added or updated where it makes sense.
9
+ - [ ] `uv run pytest tests/ -v -rs` passes locally.
10
+ - [ ] **If kernels, decoder, or adapter changed:** full suite run on a GPU with no skips.
11
+ GPU used: <!-- e.g. NVIDIA A100 / AMD MI300X, or "none, maintainer please run" -->
12
+ - [ ] Tutorial notebooks re-run and committed with outputs (if changed).
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ # Keep GitHub Actions versions up to date. Python dependencies are pinned in uv.lock and
4
+ # updated by hand, since torch/triton upgrades need a GPU test run.
5
+ - package-ecosystem: github-actions
6
+ directory: /
7
+ schedule:
8
+ interval: monthly
@@ -0,0 +1,57 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+
8
+ jobs:
9
+ cpu:
10
+ name: CPU checks (Python ${{ matrix.python-version }})
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ fail-fast: false
14
+ matrix:
15
+ python-version: ["3.11", "3.12", "3.13"]
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+
19
+ - name: Install uv
20
+ uses: astral-sh/setup-uv@v7
21
+ with:
22
+ enable-cache: true
23
+
24
+ # `import pelagos` pulls in the Triton kernels, which import torch at
25
+ # module scope, so the import-surface tests need the `gpu` extra even on a
26
+ # CPU runner. torch installs fine without a GPU; the decode tests then
27
+ # skip on `torch.cuda.is_available()`.
28
+ # The stim extra lets the DEM -> check-matrix conversion be tested on CPU. The rust
29
+ # extra is left out: relay-bp only publishes wheels for some Python versions.
30
+ - name: Sync (gpu extra for torch; no GPU hardware needed)
31
+ run: uv sync --extra gpu --extra stim --extra test
32
+
33
+ # Syntax errors and undefined names only: the lint rules that catch real bugs.
34
+ - name: Lint
35
+ run: uvx ruff check --isolated --select E9,F63,F7,F82 src tests tutorials pelagos_benchmark.py
36
+
37
+ # Decode tests and the Rust comparison skip without a GPU; -rs lists what was skipped.
38
+ - name: Tests (CPU)
39
+ run: uv run pytest tests/ -v -rs
40
+
41
+ build:
42
+ name: Build wheel
43
+ runs-on: ubuntu-latest
44
+ steps:
45
+ - uses: actions/checkout@v7
46
+ - uses: astral-sh/setup-uv@v7
47
+ - run: uv build
48
+ - run: ls -la dist/
49
+
50
+ # The GPU lane is intentionally absent here: Triton kernels need a CUDA or
51
+ # ROCm runtime, which the free GitHub-hosted runners do not provide. The
52
+ # numerical gates below are run by a maintainer on a GPU before each release
53
+ # (see "Testing" in README.md), with
54
+ # `uv sync --extra gpu --extra rust --extra stim --extra test`:
55
+ #
56
+ # uv run pytest tests/test_triton_against_rust.py -v # bit-exactness vs. the Rust reference
57
+ # uv run pytest tests/ -q # full suite
@@ -0,0 +1,46 @@
1
+ name: Release
2
+
3
+ # Publishes to PyPI when a GitHub release is published (tag it vX.Y.Z to match the version
4
+ # in pyproject.toml). Uses PyPI trusted publishing, so no API token is stored in the repo.
5
+ # One-time setup: on PyPI, add this repository and workflow (release.yml) as a trusted
6
+ # publisher for the "pelagos-decoder" project, using the "pypi" environment.
7
+
8
+ on:
9
+ release:
10
+ types: [published]
11
+
12
+ jobs:
13
+ build:
14
+ name: Build distributions
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v7
18
+ - uses: astral-sh/setup-uv@v7
19
+
20
+ - name: Check the tag matches the package version
21
+ run: |
22
+ version=$(grep -m1 '^version = ' pyproject.toml | cut -d'"' -f2)
23
+ if [ "${GITHUB_REF_NAME}" != "v${version}" ]; then
24
+ echo "Tag ${GITHUB_REF_NAME} does not match pyproject.toml version v${version}"
25
+ exit 1
26
+ fi
27
+
28
+ - run: uv build
29
+ - uses: actions/upload-artifact@v7
30
+ with:
31
+ name: dist
32
+ path: dist/
33
+
34
+ publish:
35
+ name: Publish to PyPI
36
+ needs: build
37
+ runs-on: ubuntu-latest
38
+ environment: pypi
39
+ permissions:
40
+ id-token: write # required for trusted publishing
41
+ steps:
42
+ - uses: actions/download-artifact@v8
43
+ with:
44
+ name: dist
45
+ path: dist/
46
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,20 @@
1
+ __pycache__/
2
+ *.py[cod]
3
+ *.so
4
+ .venv/
5
+ venv/
6
+ build/
7
+ dist/
8
+ *.egg-info/
9
+ .pytest_cache/
10
+ .ruff_cache/
11
+ .mypy_cache/
12
+ *.ncu-rep
13
+ *.nsys-rep
14
+ *.sqlite
15
+ autotuner_*.csv
16
+
17
+
18
+ # Editor and notebook clutter
19
+ .ipynb_checkpoints/
20
+ .~lock.*#
@@ -0,0 +1,49 @@
1
+ <!-- Modified 2026 by AMD to document process-per-GPU execution. -->
2
+
3
+ # Changelog
4
+
5
+ All notable changes to Pelagos are documented in this file. The format is based on
6
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project follows
7
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
8
+
9
+ ## [Unreleased]
10
+
11
+ ### Added
12
+
13
+ - Opt-in process-per-GPU execution (`backend_config={"execution": "process"}` in
14
+ `RelayDecoder`, or `pelagos.process.ProcessRelayBPDecoder`), with one persistent worker per
15
+ GPU, parallel host-side preparation of syndromes and observables, and decoded errors
16
+ returned through shared memory. The default backend and the decoding kernels are unchanged.
17
+ See [docs/process-backend.md](docs/process-backend.md).
18
+
19
+ ## [0.1.0] - Unreleased
20
+
21
+ First public release.
22
+
23
+ ### Added
24
+
25
+ - Relay-BP-S and plain min-sum BP decoders for qLDPC codes, as fused Triton kernels
26
+ (`RelayBPDecoder`), batched across syndromes, with `float16`, `float32` and `float64` data types.
27
+ - CUDA and ROCm support through Triton; the backend is detected at construction time.
28
+ - Batch-independent results: each shot stops on its own `stop_nconv`, and the `gamma_draw`
29
+ option (default `"broadcast"`) shares each relay leg's memory strengths across the batch, so
30
+ a shot decodes the same regardless of batch size or position. `gamma_draw="per_row"` draws
31
+ per shot instead.
32
+ - Iteration counts and explicit-gamma rows that match the `relay-bp` Rust reference, and a
33
+ `valid_mask` that is True exactly where `found_count >= stop_nconv`.
34
+ - `unconverged_correction` option for shots that find no solution: `"first_leg"` (default,
35
+ as in the Rust reference) returns the hard decision at the end of the pre-iter leg, or of
36
+ relay leg 1 when `pre_iter=0`; `"last_leg"` returns the one from the last leg that ran.
37
+ - `DecodeResult.found_count`: the number of solutions found for each shot, reported by both
38
+ `RelayDecoder` detailed-batch methods.
39
+ - `RelayDecoder` and `ObservableDecoderRunner` adapters with an interface compatible with the
40
+ `relay-bp` Rust package.
41
+ - `CheckMatrices.from_dem` for building decoding problems from stim detector error models.
42
+ - `pelagos_benchmark.py` benchmark CLI, with a Rust backend for side-by-side comparison.
43
+ - Bundled stim circuits for the [[18,4,3]], [[72,12,6]], [[144,12,12]] and [[288,12,18]]
44
+ bivariate bicycle codes.
45
+ - Tutorial 1: a single-GPU quickstart notebook.
46
+ - Tests, including bit-exact comparison against the Rust reference (GPU), and CPU-only CI.
47
+
48
+ [Unreleased]: https://github.com/quantum-supercomputing/pelagos/compare/v0.1.0...HEAD
49
+ [0.1.0]: https://github.com/quantum-supercomputing/pelagos/releases/tag/v0.1.0
@@ -0,0 +1,90 @@
1
+ cff-version: 1.2.0
2
+ message: "If you use Pelagos in your research, please cite the paper below."
3
+ title: "Pelagos: GPU-accelerated Relay-BP decoder for qLDPC codes"
4
+ type: software
5
+ license: Apache-2.0
6
+ version: 0.1.0
7
+ repository-code: "https://github.com/quantum-supercomputing/pelagos"
8
+ keywords:
9
+ - quantum error correction
10
+ - qLDPC codes
11
+ - belief propagation
12
+ - Relay-BP
13
+ - GPU
14
+ - Triton
15
+ authors:
16
+ - family-names: "Diamantopoulos"
17
+ given-names: "D."
18
+ - family-names: "von Niederhäusern"
19
+ given-names: "L."
20
+ - family-names: "Anghel"
21
+ given-names: "A. S."
22
+ - family-names: "Kayi"
23
+ given-names: "A."
24
+ - family-names: "Pletka"
25
+ given-names: "R."
26
+ - family-names: "Müller"
27
+ given-names: "T."
28
+ - family-names: "Papandreou"
29
+ given-names: "N."
30
+ - family-names: "Blanusa"
31
+ given-names: "J."
32
+ - family-names: "Sarafijanovic"
33
+ given-names: "S."
34
+ - family-names: "Gonzalez"
35
+ given-names: "N. M."
36
+ - family-names: "Abel"
37
+ given-names: "F."
38
+ - family-names: "Hagleitner"
39
+ given-names: "C."
40
+ - family-names: "Seelam"
41
+ given-names: "S."
42
+ - family-names: "Johnson"
43
+ given-names: "B."
44
+ - family-names: "Haas"
45
+ given-names: "R."
46
+ - family-names: "Pozidis"
47
+ given-names: "H."
48
+ preferred-citation:
49
+ type: conference-paper
50
+ title: "Pêlagos: An Adaptive GPU Decoder for Error Correction Simulations of Quantum LDPC Codes"
51
+ collection-title: "2026 IEEE International Conference on Quantum Software (QSW)"
52
+ publisher:
53
+ name: "IEEE"
54
+ year: 2026
55
+ start: 152
56
+ end: 165
57
+ url: "https://ieeexplore.ieee.org/document/11662198"
58
+ authors:
59
+ - family-names: "Diamantopoulos"
60
+ given-names: "D."
61
+ - family-names: "von Niederhäusern"
62
+ given-names: "L."
63
+ - family-names: "Anghel"
64
+ given-names: "A. S."
65
+ - family-names: "Kayi"
66
+ given-names: "A."
67
+ - family-names: "Pletka"
68
+ given-names: "R."
69
+ - family-names: "Müller"
70
+ given-names: "T."
71
+ - family-names: "Papandreou"
72
+ given-names: "N."
73
+ - family-names: "Blanusa"
74
+ given-names: "J."
75
+ - family-names: "Sarafijanovic"
76
+ given-names: "S."
77
+ - family-names: "Gonzalez"
78
+ given-names: "N. M."
79
+ - family-names: "Abel"
80
+ given-names: "F."
81
+ - family-names: "Hagleitner"
82
+ given-names: "C."
83
+ - family-names: "Seelam"
84
+ given-names: "S."
85
+ - family-names: "Johnson"
86
+ given-names: "B."
87
+ - family-names: "Haas"
88
+ given-names: "R."
89
+ - family-names: "Pozidis"
90
+ given-names: "H."
@@ -0,0 +1,84 @@
1
+
2
+ # Contributor Covenant Code of Conduct
3
+
4
+ ## Our Pledge
5
+
6
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
7
+
8
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
9
+
10
+ ## Our Standards
11
+
12
+ Examples of behavior that contributes to a positive environment for our community include:
13
+
14
+ * Demonstrating empathy and kindness toward other people
15
+ * Being respectful of differing opinions, viewpoints, and experiences
16
+ * Giving and gracefully accepting constructive feedback
17
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
18
+ * Focusing on what is best not just for us as individuals, but for the overall community
19
+
20
+ Examples of unacceptable behavior include:
21
+
22
+ * The use of sexualized language or imagery, and sexual attention or advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email address, without their explicit permission
26
+ * Other conduct which could reasonably be considered inappropriate in a professional setting
27
+
28
+ ## Enforcement Responsibilities
29
+
30
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
31
+
32
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
33
+
34
+ ## Scope
35
+
36
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
37
+
38
+ ## Enforcement
39
+
40
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement by contacting any of the active maintainers listed in [MAINTAINERS.md](MAINTAINERS.md). All complaints will be reviewed and investigated promptly and fairly.
41
+
42
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
43
+
44
+ ## Enforcement Guidelines
45
+
46
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
47
+
48
+ ### 1. Correction
49
+
50
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
51
+
52
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
53
+
54
+ ### 2. Warning
55
+
56
+ **Community Impact**: A violation through a single incident or series of actions.
57
+
58
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
59
+
60
+ ### 3. Temporary Ban
61
+
62
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
63
+
64
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
65
+
66
+ ### 4. Permanent Ban
67
+
68
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
69
+
70
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
71
+
72
+ ## Attribution
73
+
74
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
75
+
76
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][Mozilla CoC].
77
+
78
+ For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][FAQ]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
79
+
80
+ [homepage]: https://www.contributor-covenant.org
81
+ [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
82
+ [Mozilla CoC]: https://github.com/mozilla/diversity
83
+ [FAQ]: https://www.contributor-covenant.org/faq
84
+ [translations]: https://www.contributor-covenant.org/translations
@@ -0,0 +1,69 @@
1
+ # Contributing to Pelagos
2
+
3
+ Thank you for your interest in Pelagos! Bug reports, fixes, new tutorials, and performance
4
+ improvements are all welcome. By taking part you agree to follow our
5
+ [Code of Conduct](CODE_OF_CONDUCT.md). How decisions are made is described in
6
+ [GOVERNANCE.md](GOVERNANCE.md).
7
+
8
+ ## Reporting issues
9
+
10
+ Please open a [GitHub issue](https://github.com/quantum-supercomputing/pelagos/issues)
11
+ using one of the templates. For a bug, include the GPU model, the driver version, the
12
+ backend (CUDA or ROCm), and a minimal reproducer. Report security vulnerabilities privately,
13
+ as described in [SECURITY.md](SECURITY.md), not in a public issue.
14
+
15
+ ## Development setup
16
+
17
+ Pelagos uses [uv](https://docs.astral.sh/uv/):
18
+
19
+ ```bash
20
+ git clone https://github.com/quantum-supercomputing/pelagos.git
21
+ cd pelagos
22
+ uv sync --extra all
23
+ ```
24
+
25
+ ## Testing
26
+
27
+ CI runs on GitHub-hosted runners, which have no GPU. It runs the lint step and the CPU tests;
28
+ the decoder tests are skipped there. Before you open a pull request, run the checks CI runs:
29
+
30
+ ```bash
31
+ uvx ruff check --isolated --select E9,F63,F7,F82 src tests tutorials pelagos_benchmark.py
32
+ uv run pytest tests/ -v -rs
33
+ ```
34
+
35
+ If your change touches the kernels, the decoder, or the adapter, also run the full suite on a
36
+ GPU (CUDA or ROCm) with the `gpu`, `rust`, `stim` and `test` extras installed. Nothing should
37
+ be reported as skipped. Say in the pull request which GPU you used. If you do not have a GPU,
38
+ say so, and a maintainer will run it.
39
+
40
+ If you change a tutorial notebook, re-run it top to bottom and commit it with its outputs.
41
+
42
+ ## Pull requests
43
+
44
+ * Keep each pull request focused on one change, and add or update tests where possible.
45
+ * Match the style of the surrounding code.
46
+ * New source files carry an Apache 2.0 license header, either the IBM header used throughout
47
+ the repository or your own organization's copyright line with
48
+ `SPDX-License-Identifier: Apache-2.0`. When you modify a file, add a line to its header
49
+ noting the change.
50
+ * Every commit must be signed off (see below).
51
+ * A maintainer reviews every pull request. CI must pass before merging.
52
+
53
+ ## Developer Certificate of Origin
54
+
55
+ Pelagos uses the [Developer Certificate of Origin](https://developercertificate.org/)
56
+ (DCO). By signing off a commit, you certify that you wrote the change, or otherwise have the
57
+ right to submit it under the project's [Apache 2.0 license](LICENSE). To sign off, add a
58
+ `Signed-off-by` line to each commit message, which `git commit -s` does for you:
59
+
60
+ ```
61
+ Signed-off-by: Jane Doe <jane.doe@example.com>
62
+ ```
63
+
64
+ The name and email must match the commit author. To sign off commits you already made, run
65
+ `git rebase --signoff main` and force-push your branch.
66
+
67
+ ## License
68
+
69
+ Contributions are licensed under the [Apache License, Version 2.0](LICENSE).
@@ -0,0 +1,41 @@
1
+ # Governance
2
+
3
+ Pelagos uses a lightweight, maintainer-led governance model. The current maintainers are
4
+ listed in [MAINTAINERS.md](MAINTAINERS.md).
5
+
6
+ ## Maintainers
7
+
8
+ Maintainers are trusted contributors responsible for project direction, releases, and
9
+ contribution review.
10
+
11
+ An *active maintainer* is anyone listed under "Active maintainers" in
12
+ [MAINTAINERS.md](MAINTAINERS.md). A maintainer may step down at any time by opening a pull
13
+ request that moves their name to "Emeritus maintainers." Emeritus maintainers do not vote,
14
+ and they may return by the same process as a new maintainer.
15
+
16
+ ## Decision-making
17
+
18
+ Routine decisions, such as reviewing and merging pull requests or triaging issues, are
19
+ delegated to the relevant maintainers.
20
+
21
+ Significant decisions are discussed publicly in a GitHub issue or pull request and decided
22
+ by maintainer consensus. Significant decisions include changes to the public API, the
23
+ release process, the license, or the project's scope. If consensus cannot be reached, a
24
+ majority of active maintainers decides.
25
+
26
+ ## Membership
27
+
28
+ New maintainers are nominated on the basis of sustained contributions to the project. A
29
+ nomination is made by opening a pull request that adds the nominee to
30
+ [MAINTAINERS.md](MAINTAINERS.md). The nomination is approved by a majority of active
31
+ maintainers.
32
+
33
+ ## Disagreements
34
+
35
+ Disputes should first be resolved through good-faith discussion. If a dispute remains
36
+ unresolved, maintainers who are not involved in it make the final decision.
37
+
38
+ ## Changes to governance
39
+
40
+ Changes to this document require public notice, given as a pull request that stays open for
41
+ at least 14 days, and approval by a two-thirds supermajority of active maintainers.