arqera-math 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 (39) hide show
  1. arqera_math-0.1.0/.editorconfig +12 -0
  2. arqera_math-0.1.0/.github/dependabot.yml +10 -0
  3. arqera_math-0.1.0/.github/workflows/ci.yaml +37 -0
  4. arqera_math-0.1.0/.gitignore +55 -0
  5. arqera_math-0.1.0/CONTRIBUTING.md +128 -0
  6. arqera_math-0.1.0/CONVENTIONS.md +148 -0
  7. arqera_math-0.1.0/LICENSE +190 -0
  8. arqera_math-0.1.0/PKG-INFO +279 -0
  9. arqera_math-0.1.0/README.md +247 -0
  10. arqera_math-0.1.0/RELEASE_NOTES.md +64 -0
  11. arqera_math-0.1.0/pyproject.toml +68 -0
  12. arqera_math-0.1.0/src/arqera_math/__init__.py +220 -0
  13. arqera_math-0.1.0/src/arqera_math/bayesian.py +284 -0
  14. arqera_math-0.1.0/src/arqera_math/constants.py +332 -0
  15. arqera_math-0.1.0/src/arqera_math/control_theory.py +227 -0
  16. arqera_math-0.1.0/src/arqera_math/decision_theory.py +240 -0
  17. arqera_math-0.1.0/src/arqera_math/game_theory.py +211 -0
  18. arqera_math-0.1.0/src/arqera_math/graph_analysis.py +277 -0
  19. arqera_math-0.1.0/src/arqera_math/information_theory.py +366 -0
  20. arqera_math-0.1.0/src/arqera_math/multi_objective.py +204 -0
  21. arqera_math-0.1.0/src/arqera_math/preconditions.py +196 -0
  22. arqera_math-0.1.0/src/arqera_math/py.typed +0 -0
  23. arqera_math-0.1.0/src/arqera_math/queueing.py +264 -0
  24. arqera_math-0.1.0/src/arqera_math/quorum_sensing.py +105 -0
  25. arqera_math-0.1.0/src/arqera_math/stability.py +118 -0
  26. arqera_math-0.1.0/src/arqera_math/stigmergy.py +161 -0
  27. arqera_math-0.1.0/src/arqera_math/temporal_dynamics.py +225 -0
  28. arqera_math-0.1.0/tests/test_bayesian.py +128 -0
  29. arqera_math-0.1.0/tests/test_constants.py +49 -0
  30. arqera_math-0.1.0/tests/test_decision_theory.py +155 -0
  31. arqera_math-0.1.0/tests/test_graph_analysis.py +49 -0
  32. arqera_math-0.1.0/tests/test_information_theory.py +139 -0
  33. arqera_math-0.1.0/tests/test_multi_objective.py +138 -0
  34. arqera_math-0.1.0/tests/test_preconditions.py +124 -0
  35. arqera_math-0.1.0/tests/test_quorum_sensing.py +64 -0
  36. arqera_math-0.1.0/tests/test_stability.py +109 -0
  37. arqera_math-0.1.0/tests/test_stigmergy.py +86 -0
  38. arqera_math-0.1.0/tests/test_temporal_dynamics.py +140 -0
  39. arqera_math-0.1.0/uv.lock +131 -0
@@ -0,0 +1,12 @@
1
+ root = true
2
+
3
+ [*]
4
+ charset = utf-8
5
+ end_of_line = lf
6
+ indent_style = space
7
+ indent_size = 4
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
10
+
11
+ [*.md]
12
+ trim_trailing_whitespace = false
@@ -0,0 +1,10 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: github-actions
4
+ directory: /
5
+ schedule:
6
+ interval: weekly
7
+ - package-ecosystem: pip
8
+ directory: /
9
+ schedule:
10
+ interval: weekly
@@ -0,0 +1,37 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ permissions:
10
+ contents: read
11
+
12
+ jobs:
13
+ lint:
14
+ name: Lint & Format
15
+ runs-on: ubuntu-latest
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ - uses: astral-sh/setup-uv@v5
19
+ - run: |
20
+ uv venv .lint-venv --python 3.12
21
+ VIRTUAL_ENV=.lint-venv uv pip install -e ".[dev]"
22
+ .lint-venv/bin/ruff check src/
23
+ .lint-venv/bin/ruff format --check src/
24
+
25
+ test:
26
+ name: Test (Python ${{ matrix.python-version }})
27
+ runs-on: ubuntu-latest
28
+ strategy:
29
+ matrix:
30
+ python-version: ["3.11", "3.12", "3.13"]
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ - uses: astral-sh/setup-uv@v5
34
+ - run: |
35
+ uv venv .test-venv --python ${{ matrix.python-version }}
36
+ VIRTUAL_ENV=.test-venv uv pip install -e ".[dev]"
37
+ .test-venv/bin/pytest tests/ -v --tb=short
@@ -0,0 +1,55 @@
1
+ # Python
2
+ __pycache__/
3
+ *.pyc
4
+ *.pyo
5
+ *.pyd
6
+ *.egg-info/
7
+ *.egg
8
+ dist/
9
+ build/
10
+ .eggs/
11
+
12
+ # Virtual environments
13
+ .venv/
14
+ venv/
15
+ env/
16
+
17
+ # Environment files
18
+ .env
19
+ .env.local
20
+
21
+ # IDE
22
+ .idea/
23
+ .vscode/
24
+ *.swp
25
+ *.swo
26
+ *~
27
+
28
+ # OS
29
+ .DS_Store
30
+ Thumbs.db
31
+
32
+ # Testing
33
+ .pytest_cache/
34
+ .coverage
35
+ htmlcov/
36
+ .mypy_cache/
37
+
38
+ # Ruff
39
+ .ruff_cache/
40
+
41
+ # Build artifacts
42
+ *.whl
43
+ *.tar.gz
44
+
45
+ # Session/internal files (never commit)
46
+ .session-state.yaml
47
+ .secrets.yaml
48
+
49
+ # Internal development notes (not for public repo)
50
+ CLAUDE.md
51
+ AGENTS.md
52
+ codex.md
53
+ .cursorrules
54
+ .windsurfrules
55
+ .github/copilot-instructions.md
@@ -0,0 +1,128 @@
1
+ # Contributing to arqera-math
2
+
3
+ Thank you for your interest in contributing. This guide covers everything you need to get started.
4
+
5
+ ## Setup
6
+
7
+ ```bash
8
+ # Clone and enter the project
9
+ git clone https://github.com/Arqera-IO/arqera-math.git
10
+ cd arqera-math
11
+
12
+ # Create virtual environment and install
13
+ python -m venv .venv
14
+ source .venv/bin/activate # On Windows: .venv\Scripts\activate
15
+ pip install -e ".[dev]"
16
+ ```
17
+
18
+ Or with [uv](https://docs.astral.sh/uv/) (faster):
19
+
20
+ ```bash
21
+ uv venv --python 3.11 .venv
22
+ source .venv/bin/activate
23
+ uv pip install -e ".[dev]"
24
+ ```
25
+
26
+ ## Development Workflow
27
+
28
+ ### 1. Create a branch
29
+
30
+ ```bash
31
+ git checkout -b feat/your-feature
32
+ ```
33
+
34
+ ### 2. Make your changes
35
+
36
+ Edit source files in `src/arqera_math/`. Add tests in `tests/`.
37
+
38
+ ### 3. Lint
39
+
40
+ ```bash
41
+ ruff check src/
42
+ ```
43
+
44
+ ### 4. Test
45
+
46
+ ```bash
47
+ pytest tests/ -v
48
+ ```
49
+
50
+ ### 5. Quality gate (both must pass)
51
+
52
+ ```bash
53
+ ruff check src/ && pytest tests/ -v
54
+ ```
55
+
56
+ ### 6. Commit and open a PR
57
+
58
+ Use conventional prefixes: `feat:`, `fix:`, `refactor:`, `test:`, `docs:`
59
+
60
+ ```bash
61
+ git commit -m "feat: add new algorithm for X"
62
+ ```
63
+
64
+ ## Key Rules
65
+
66
+ - **Zero external dependencies.** stdlib only. No NumPy, SciPy, or anything outside Python's standard library. This is a core design principle.
67
+ - **All public API** must be listed in `__all__` in `__init__.py`.
68
+ - **Type hints and docstrings** required on all public functions.
69
+ - **Return dataclasses**, not raw dicts. Every structured return value should be a `@dataclass` with type annotations.
70
+ - **Deterministic.** No randomness without explicit seeds. Every function must be reproducible.
71
+ - **Tests required.** Every new public function needs at least one test. All tests must be deterministic (no flaky tests).
72
+
73
+ ## Code Style
74
+
75
+ - Line length: 100 characters
76
+ - Target: Python 3.11+
77
+ - Linter: [Ruff](https://docs.astral.sh/ruff/) with rules `E`, `F`, `I`, `W`, `UP`, `B`, `SIM`
78
+ - All `zip()` calls must use `strict=True` for dimension safety
79
+
80
+ ## Project Structure
81
+
82
+ ```
83
+ arqera-math/
84
+ src/
85
+ arqera_math/
86
+ __init__.py # Public API (74 exports in __all__)
87
+ bayesian.py # Beta-binomial trust model
88
+ graph_analysis.py # PageRank, centrality
89
+ information_theory.py # Entropy, KL divergence
90
+ decision_theory.py # Decision matrices
91
+ multi_objective.py # Pareto frontiers
92
+ stigmergy.py # Pheromone optimization
93
+ quorum_sensing.py # Hill function thresholds
94
+ stability.py # Lyapunov analysis
95
+ temporal_dynamics.py # Trend analysis, forecasting
96
+ control_theory.py # PID controllers
97
+ game_theory.py # Resource auctions
98
+ queueing.py # Queue analysis
99
+ preconditions.py # Bayesian priors
100
+ constants.py # 27 tuned constants
101
+ tests/
102
+ test_*.py # One test file per module
103
+ ```
104
+
105
+ ## Adding a New Module
106
+
107
+ 1. Create `src/arqera_math/your_module.py`
108
+ 2. Define typed dataclasses for all return values
109
+ 3. Export public symbols via `__all__` at module level
110
+ 4. Import and re-export in `src/arqera_math/__init__.py`
111
+ 5. Add the new symbols to `__init__.py`'s `__all__`
112
+ 6. Create `tests/test_your_module.py` with full coverage
113
+ 7. Run the quality gate: `ruff check src/ && pytest tests/ -v`
114
+
115
+ ## Reporting Issues
116
+
117
+ Open an issue at [github.com/Arqera-IO/arqera-math/issues](https://github.com/Arqera-IO/arqera-math/issues) with:
118
+
119
+ - Python version (`python --version`)
120
+ - arqera-math version (`python -c "import arqera_math; print(arqera_math.__version__)"`)
121
+ - Minimal reproduction code
122
+ - Expected vs actual behaviour
123
+
124
+ ## License
125
+
126
+ By contributing, you agree that your contributions will be licensed under the Apache License 2.0, consistent with the project's [LICENSE](LICENSE).
127
+
128
+ See [CONVENTIONS.md](CONVENTIONS.md) for full engineering standards.
@@ -0,0 +1,148 @@
1
+ # arqera-math — Engineering Conventions
2
+
3
+ ## Project Overview
4
+
5
+ arqera-math is a **pure Python 3.11+ mathematical foundations library** with zero runtime dependencies. It provides Bayesian inference, graph analysis, information theory, decision theory, control theory, game theory, multi-objective optimization, queueing models, and temporal dynamics.
6
+
7
+ ## Tech Stack
8
+
9
+ | Component | Tool | Notes |
10
+ |-----------|------|-------|
11
+ | Language | Python 3.11+ | Type hints required |
12
+ | Build | Hatchling | `pyproject.toml` config |
13
+ | Linter | Ruff | Line length 100, rules: E, F, I, W, UP, B, SIM |
14
+ | Tests | pytest + pytest-asyncio | `asyncio_mode = "strict"` |
15
+ | Package manager | uv (recommended) or pip | `uv pip install -e ".[dev]"` |
16
+ | Dependencies | **None** | Zero runtime dependencies. This is non-negotiable. |
17
+
18
+ ## Quality Gate
19
+
20
+ Run before every commit:
21
+
22
+ ```bash
23
+ ruff check src/ && pytest tests/ -v
24
+ ```
25
+
26
+ Both must pass clean. No exceptions.
27
+
28
+ ## Coding Standards
29
+
30
+ ### Style
31
+
32
+ - **Line length**: 100 characters max
33
+ - **Imports**: Sorted by ruff (isort rules)
34
+ - **Type hints**: Required on all public functions
35
+ - **Docstrings**: Required on all public functions and classes
36
+ - **Naming**: `snake_case` for functions/variables, `PascalCase` for classes, `UPPER_SNAKE` for constants
37
+
38
+ ### Architecture Rules
39
+
40
+ - **No external dependencies**. stdlib only. If you need something, implement it.
41
+ - **Return typed dataclasses**, not raw dicts. Every structured return value gets a dataclass.
42
+ - **Functions are pure where possible**. Minimize side effects. No global state mutation.
43
+ - **Modules are self-contained**. Each module covers one mathematical domain.
44
+
45
+ ## Key Patterns
46
+
47
+ ### Exports
48
+
49
+ All public API surfaces are listed in `__init__.py` via `__all__`. When adding a new public function or class:
50
+
51
+ 1. Define it in the appropriate module
52
+ 2. Add it to `__all__` in `__init__.py`
53
+ 3. Verify the export count: `python -c "import arqera_math; print(len(arqera_math.__all__))"`
54
+
55
+ ### Constants
56
+
57
+ Constants are registered with bounds validation: `(name, value, min, max, description)`. Every constant must have:
58
+
59
+ - A meaningful name
60
+ - A valid numeric value
61
+ - Min/max bounds that the value falls within
62
+ - A human-readable description
63
+
64
+ ### Bayesian Updates
65
+
66
+ The trust model uses Beta-binomial conjugate priors. Beta(alpha, beta) distributions are updated with evidence. Credible intervals are computed from the posterior.
67
+
68
+ ### Dataclasses
69
+
70
+ All structured return types use `@dataclass` with type annotations. No `TypedDict`, no raw dicts for structured data.
71
+
72
+ ## Testing
73
+
74
+ ### Running Tests
75
+
76
+ ```bash
77
+ # All tests
78
+ pytest tests/ -v
79
+
80
+ # Single module
81
+ pytest tests/test_bayesian.py -v
82
+
83
+ # With coverage (if installed)
84
+ pytest tests/ -v --cov=arqera_math
85
+ ```
86
+
87
+ ### Test Standards
88
+
89
+ - **Deterministic**: No randomness without fixed seeds. No network calls.
90
+ - **Fast**: Each test file should run in under 2 seconds.
91
+ - **Behavioral**: Test what the function does, not how it does it.
92
+ - **Named clearly**: `test_<function>_<scenario>_<expected>` pattern.
93
+ - **One assertion focus**: Each test should verify one behavior.
94
+
95
+ ### What to Test
96
+
97
+ - All public functions (everything in `__all__`)
98
+ - Edge cases: empty inputs, zero values, boundary conditions
99
+ - Constants: existence, type, bounds compliance
100
+ - Mathematical properties: convergence, monotonicity, symmetry where expected
101
+
102
+ ## Definition of Done
103
+
104
+ A change is complete when:
105
+
106
+ 1. `ruff check src/` passes clean
107
+ 2. `pytest tests/ -v` — all tests pass
108
+ 3. All items in `__all__` export correctly
109
+ 4. All constants remain within their declared bounds
110
+ 5. No external dependencies introduced
111
+ 6. New public functions have type hints and docstrings
112
+ 7. New functionality has corresponding tests
113
+
114
+ ## Git Protocol
115
+
116
+ ### Commit Messages
117
+
118
+ Use conventional prefixes:
119
+
120
+ - `feat:` — New functionality
121
+ - `fix:` — Bug fix
122
+ - `refactor:` — Code restructure without behavior change
123
+ - `test:` — Test additions or changes
124
+ - `docs:` — Documentation only
125
+
126
+ ### Co-Author
127
+
128
+ All AI-assisted commits include:
129
+
130
+ ```
131
+ Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
132
+ ```
133
+
134
+ ### Pre-Commit Checklist
135
+
136
+ 1. Run `ruff check src/`
137
+ 2. Run `pytest tests/ -v`
138
+ 3. Verify exports if `__init__.py` changed
139
+ 4. Verify constants if `constants.py` changed
140
+ 5. Check downstream impact on `digital-twin` for API changes
141
+
142
+ ## Downstream Consumers
143
+
144
+ This library is consumed by other projects. Breaking changes to public API require:
145
+
146
+ - Updating all downstream consumers
147
+ - Verifying downstream test suites still pass
148
+ - Coordinated version bumps if applicable
@@ -0,0 +1,190 @@
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 the 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 the 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 any 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
+ Copyright 2026 ARQERA Ltd
179
+
180
+ Licensed under the Apache License, Version 2.0 (the "License");
181
+ you may not use this file except in compliance with the License.
182
+ You may obtain a copy of the License at
183
+
184
+ http://www.apache.org/licenses/LICENSE-2.0
185
+
186
+ Unless required by applicable law or agreed to in writing, software
187
+ distributed under the License is distributed on an "AS IS" BASIS,
188
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
189
+ See the License for the specific language governing permissions and
190
+ limitations under the License.