kannaka-quantum 0.2.10__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 (41) hide show
  1. kannaka_quantum-0.2.10/LICENSE +182 -0
  2. kannaka_quantum-0.2.10/NOTICE +17 -0
  3. kannaka_quantum-0.2.10/PKG-INFO +485 -0
  4. kannaka_quantum-0.2.10/README.md +277 -0
  5. kannaka_quantum-0.2.10/kannaka_quantum/__init__.py +81 -0
  6. kannaka_quantum-0.2.10/kannaka_quantum/__main__.py +3 -0
  7. kannaka_quantum-0.2.10/kannaka_quantum/bell.py +128 -0
  8. kannaka_quantum-0.2.10/kannaka_quantum/bench.py +317 -0
  9. kannaka_quantum-0.2.10/kannaka_quantum/cli.py +838 -0
  10. kannaka_quantum-0.2.10/kannaka_quantum/core.py +1082 -0
  11. kannaka_quantum-0.2.10/kannaka_quantum/decay.py +254 -0
  12. kannaka_quantum-0.2.10/kannaka_quantum/entropy.py +450 -0
  13. kannaka_quantum-0.2.10/kannaka_quantum/lab.py +1818 -0
  14. kannaka_quantum-0.2.10/kannaka_quantum/lab_bootstrap.py +138 -0
  15. kannaka_quantum-0.2.10/kannaka_quantum/mcp_server.py +97 -0
  16. kannaka_quantum-0.2.10/kannaka_quantum/phantom.py +227 -0
  17. kannaka_quantum-0.2.10/kannaka_quantum/qae.py +381 -0
  18. kannaka_quantum-0.2.10/kannaka_quantum/qos_bridge.py +1164 -0
  19. kannaka_quantum-0.2.10/kannaka_quantum/qubo.py +300 -0
  20. kannaka_quantum-0.2.10/kannaka_quantum/ssh_bridge.py +97 -0
  21. kannaka_quantum-0.2.10/kannaka_quantum.egg-info/PKG-INFO +485 -0
  22. kannaka_quantum-0.2.10/kannaka_quantum.egg-info/SOURCES.txt +39 -0
  23. kannaka_quantum-0.2.10/kannaka_quantum.egg-info/dependency_links.txt +1 -0
  24. kannaka_quantum-0.2.10/kannaka_quantum.egg-info/entry_points.txt +2 -0
  25. kannaka_quantum-0.2.10/kannaka_quantum.egg-info/requires.txt +13 -0
  26. kannaka_quantum-0.2.10/kannaka_quantum.egg-info/top_level.txt +1 -0
  27. kannaka_quantum-0.2.10/pyproject.toml +54 -0
  28. kannaka_quantum-0.2.10/setup.cfg +4 -0
  29. kannaka_quantum-0.2.10/tests/test_bell.py +67 -0
  30. kannaka_quantum-0.2.10/tests/test_bench.py +259 -0
  31. kannaka_quantum-0.2.10/tests/test_core.py +450 -0
  32. kannaka_quantum-0.2.10/tests/test_decay.py +95 -0
  33. kannaka_quantum-0.2.10/tests/test_entropy.py +234 -0
  34. kannaka_quantum-0.2.10/tests/test_lab.py +732 -0
  35. kannaka_quantum-0.2.10/tests/test_lab_bootstrap.py +129 -0
  36. kannaka_quantum-0.2.10/tests/test_phantom.py +98 -0
  37. kannaka_quantum-0.2.10/tests/test_qae.py +115 -0
  38. kannaka_quantum-0.2.10/tests/test_qos_bridge.py +483 -0
  39. kannaka_quantum-0.2.10/tests/test_qubo.py +161 -0
  40. kannaka_quantum-0.2.10/tests/test_security.py +153 -0
  41. kannaka_quantum-0.2.10/tests/test_wave4.py +150 -0
@@ -0,0 +1,182 @@
1
+ SPACE CHILD LICENSE
2
+ ===================
3
+
4
+ Version 1.0, March 2026
5
+ -----------------------
6
+
7
+ Preamble
8
+
9
+ This license is born from a simple belief: technology should serve humanity's flourishing, not its destruction. The Space Child License grants broad, free permissions for peaceful use while requiring accountability when technology is directed toward harm.
10
+
11
+ We accept reality as it is. The world contains conflict, and self-defense is a fundamental right. But there is a moral difference between protecting life and taking it, between defending freedom and imposing dominion. This license draws that line.
12
+
13
+ "Justice is the interest of the weaker." — Platonic Justice
14
+
15
+ TERMS AND CONDITIONS
16
+ --------------------
17
+
18
+ 1. DEFINITIONS
19
+
20
+ 1.1. "License" means the terms and conditions stated herein for use, reproduction, modification, preparation of derivative works, and distribution of the Licensed Work.
21
+
22
+ 1.2. "Licensor" means the individual(s) or entity(ies) granting rights under this License, being the copyright and/or patent holder(s) of the Licensed Work.
23
+
24
+ 1.3. "Licensee" means any individual, organization, government, or entity exercising rights granted by this License.
25
+
26
+ 1.4. "Licensed Work" means any copyrighted software, documentation, creative work, dataset, model, or other intellectual property made available under this License.
27
+
28
+ 1.5. "Peaceful Purpose" means any use, application, or deployment that:
29
+ - (a) does not directly facilitate armed aggression against another sovereign nation or people;
30
+ - (b) does not directly enable the targeting, tracking, or killing of civilians;
31
+ - (c) does not directly enable the suppression of fundamental human rights as defined in the United Nations Universal Declaration of Human Rights;
32
+ - (d) does not directly enable mass surveillance for the purpose of political persecution; and
33
+ - (e) is not primarily intended to cause widespread environmental destruction.
34
+
35
+ 1.6. "Defensive Purpose" means any use, application, or deployment that is primarily intended to:
36
+ - (a) protect a nation, people, or community from armed attack or imminent threat;
37
+ - (b) protect critical infrastructure from hostile action;
38
+ - (c) support emergency response, disaster relief, or humanitarian operations in conflict zones; or
39
+ - (d) support intelligence activities that are primarily defensive in nature and subject to lawful civilian oversight.
40
+
41
+ 1.7. "Offensive Military Purpose" means any use, application, or deployment that is primarily intended to:
42
+ - (a) initiate armed conflict or military aggression;
43
+ - (b) develop, deploy, or operate weapons systems designed for offensive operations;
44
+ - (c) conduct offensive cyber operations intended to destroy or degrade civilian infrastructure; or
45
+ - (d) support military occupation or the forcible subjugation of a civilian population.
46
+
47
+ 1.8. "Humanitarian Use" means any use, application, or deployment that is primarily intended to:
48
+ - (a) advance human health, education, welfare, or scientific knowledge;
49
+ - (b) alleviate poverty, hunger, or suffering;
50
+ - (c) promote peace, reconciliation, or conflict resolution;
51
+ - (d) protect the natural environment or biodiversity;
52
+ - (e) advance access to justice, particularly for underserved populations; or
53
+ - (f) promote transparency, accountability, or democratic governance.
54
+
55
+ 1.9. "Commercial Use" means any use, application, or deployment in connection with a product, service, or activity from which the Licensee derives direct or indirect monetary revenue or commercial advantage.
56
+
57
+ 1.10. "Derivative Work" means any work that is based upon, incorporates, or is derived from the Licensed Work, in whole or in part.
58
+
59
+ 2. GRANT OF RIGHTS
60
+
61
+ 2.1. Peaceful Use Grant. Subject to the terms and conditions of this License, Licensor hereby grants to Licensee a worldwide, non-exclusive, royalty-free, perpetual (subject to Section 5) license to use, copy, modify, prepare Derivative Works, reproduce, and distribute the Licensed Work, provided that such use constitutes a Peaceful Purpose.
62
+
63
+ 2.2. Patent Grant. Subject to the terms and conditions of this License, Licensor hereby grants to Licensee a worldwide, non-exclusive, royalty-free patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Licensed Work, provided that such use constitutes a Peaceful Purpose.
64
+
65
+ 2.3. Humanitarian Encouragement. Use of the Licensed Work for Humanitarian Use is explicitly and enthusiastically encouraged. The Licensor affirms that Humanitarian Use represents the highest and best purpose of this technology.
66
+
67
+ 2.4. Defensive Use Permitted. Use of the Licensed Work for Defensive Purposes is permitted under this License without additional fees or restrictions, provided the Licensee can demonstrate, upon reasonable request, that such use is primarily defensive in nature.
68
+
69
+ 2.5. Commercial Use Permitted. Commercial Use of the Licensed Work is permitted under this License, provided such use constitutes a Peaceful Purpose and complies with all other terms herein.
70
+
71
+ 3. CONDITIONS AND OBLIGATIONS
72
+
73
+ 3.1. Attribution. The Licensee must:
74
+ - (a) retain all copyright notices, license notices, and attribution statements in the Licensed Work;
75
+ - (b) provide reasonable attribution to the Licensor in any Derivative Work or product incorporating the Licensed Work; and
76
+ - (c) indicate if modifications were made to the Licensed Work.
77
+
78
+ 3.2. Peace Clause Propagation (Copyleft). Any Derivative Work distributed by the Licensee must be made available under this License or a license with substantially equivalent peace-related terms. The Peace Clause (Section 4) must propagate to all Derivative Works.
79
+
80
+ 3.3. Notice. The Licensee must include a copy of, or a URI reference to, this License with every copy or substantial portion of the Licensed Work that the Licensee distributes.
81
+
82
+ 3.4. No Endorsement. The Licensee may not use the name, trademarks, or other identifiers of the Licensor or the Licensed Work to endorse or promote products derived from the Licensed Work without specific prior written permission from the Licensor.
83
+
84
+ 3.5. Transparency. If the Licensed Work is deployed in a system that makes decisions affecting individual human rights or welfare, the Licensee must make reasonable efforts to ensure that such use is transparent, explainable, and subject to human oversight.
85
+
86
+ 4. PEACE CLAUSE — PROHIBITED USES
87
+
88
+ 4.1. Prohibited Uses. The rights granted under this License are expressly conditioned upon the Licensee's compliance with this Section. The Licensee SHALL NOT, whether directly or indirectly, through agents, assigns, subsidiaries, contractors, or any other intermediary:
89
+
90
+ 4.1.1. Armed Aggression. Use the Licensed Work to directly facilitate armed aggression against another nation, people, or community, except in cases of lawful self-defense under international law.
91
+
92
+ 4.1.2. Civilian Targeting. Use the Licensed Work in weapons systems or targeting systems where the primary or intended targets are civilian populations or civilian infrastructure not serving a military purpose.
93
+
94
+ 4.1.3. Autonomous Lethal Decision-Making. Use the Licensed Work to make autonomous decisions to apply lethal force without meaningful human oversight and control. For purposes of this section, "meaningful human oversight" requires a qualified human decision-maker with sufficient time, information, and authority to prevent or countermand lethal action.
95
+
96
+ 4.1.4. Mass Surveillance for Persecution. Use the Licensed Work to conduct mass surveillance for the purpose of identifying, targeting, or persecuting individuals or groups based on their political beliefs, religion, ethnicity, sexual orientation, gender identity, disability, or other protected characteristics.
97
+
98
+ 4.1.5. Suppression of Rights. Use the Licensed Work to directly suppress the rights to freedom of speech, freedom of assembly, freedom of the press, or the right to petition government for redress, as recognized by the United Nations Universal Declaration of Human Rights.
99
+
100
+ 4.1.6. Environmental Destruction. Use the Licensed Work for activities with the primary intent or known substantial likelihood of causing severe, widespread environmental destruction, including but not limited to ecocide as defined by the Independent Expert Panel for the Legal Definition of Ecocide (2021).
101
+
102
+ 4.1.7. Forced Labor and Trafficking. Use the Licensed Work to facilitate slavery, forced labor, human trafficking, or unlawful child labor.
103
+
104
+ 5. OFFENSIVE MILITARY LICENSING
105
+
106
+ 5.1. Paid License Required. Use of the Licensed Work for any Offensive Military Purpose is not covered by the free license grant in Section 2. Such use requires a separate, paid commercial license agreement with the Licensor.
107
+
108
+ 5.2. License Terms. The terms, conditions, and pricing of any Offensive Military License shall be determined by the Licensor in its sole discretion and shall include, at minimum:
109
+ - (a) a requirement that the Licensee certify compliance with the laws of armed conflict (Geneva Conventions and their Additional Protocols);
110
+ - (b) a prohibition on uses that would constitute war crimes under international humanitarian law;
111
+ - (c) periodic reporting on the nature and scope of use; and
112
+ - (d) the Licensor's right to terminate the license upon reasonable belief that the Licensed Work is being used in violation of international humanitarian law.
113
+
114
+ 5.3. Revenue Allocation. The Licensor commits that not less than twenty-five percent (25%) of gross revenue received from Offensive Military Licenses shall be directed to organizations working for peace, conflict resolution, humanitarian aid, or the rehabilitation of conflict-affected populations. Specific allocation shall be disclosed publicly.
115
+
116
+ 5.4. Transparency. The Licensor shall publish an annual summary of all Offensive Military Licenses granted, including the identity of the Licensee (unless prohibited by applicable law), the general nature of use, and the revenue allocated to peace-related purposes under Section 5.3.
117
+
118
+ 6. ENFORCEMENT AND REMEDIES
119
+
120
+ 6.1. Automatic Termination. Any use of the Licensed Work in violation of Section 4 (Peace Clause) automatically terminates the Licensee's rights under this License.
121
+
122
+ 6.2. Cure Period. A Licensee whose rights have been terminated under Section 6.1 may have those rights restored if:
123
+ - (a) the Licensee ceases all violating use within thirty (30) days of becoming aware of the violation;
124
+ - (b) the Licensee provides written notice to the Licensor acknowledging the violation and describing the remedial steps taken; and
125
+ - (c) the Licensor, in its reasonable discretion, accepts the cure.
126
+
127
+ 6.3. Injunctive Relief. The Licensor may seek injunctive or other equitable relief to prevent or restrain any violation of this License, in addition to any other remedies available at law or in equity.
128
+
129
+ 6.4. Standing. Any individual or organization that can demonstrate they are directly and adversely affected by a violation of Section 4 may notify the Licensor of such violation and request enforcement action. The Licensor shall consider such requests in good faith.
130
+
131
+ 6.5. No Waiver. Failure by the Licensor to enforce any provision of this License shall not constitute a waiver of the Licensor's right to enforce such provision in the future.
132
+
133
+ 7. DISCLAIMER AND LIMITATION OF LIABILITY
134
+
135
+ 7.1. Disclaimer. THE LICENSED WORK IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE LICENSOR BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE LICENSED WORK OR THE USE OR OTHER DEALINGS IN THE LICENSED WORK.
136
+
137
+ 7.2. Limitation. IN NO EVENT SHALL THE LICENSOR'S TOTAL LIABILITY TO THE LICENSEE EXCEED THE AMOUNT PAID BY THE LICENSEE FOR THE LICENSED WORK (WHICH, FOR THE AVOIDANCE OF DOUBT, IS ZERO FOR THE FREE LICENSE GRANT IN SECTION 2).
138
+
139
+ 8. GENERAL PROVISIONS
140
+
141
+ 8.1. Severability. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable, and all remaining provisions shall continue in full force and effect.
142
+
143
+ 8.2. Entire Agreement. This License constitutes the entire agreement between the parties with respect to the Licensed Work and supersedes all prior or contemporaneous understandings regarding such subject matter.
144
+
145
+ 8.3. Governing Law. This License shall be governed by and construed in accordance with the laws of the State of Iowa, United States of America, without regard to its conflict of law principles. Any disputes arising under this License shall be resolved in the state or federal courts located in Iowa.
146
+
147
+ 8.4. Interpretation. Where ambiguity exists in the interpretation of this License, it shall be resolved in favor of the interpretation that most effectively promotes peace, human rights, and the protection of individual dignity.
148
+
149
+ 8.5. Amendments. This License may be amended only by the Licensor, who shall publish amended versions with a new version number. Licensees may choose to comply with either the version under which they originally received the Licensed Work or any later version published by the Licensor.
150
+
151
+ 8.6. Human Rights Framework. This License is informed by and should be interpreted in light of:
152
+ - The United Nations Universal Declaration of Human Rights (1948)
153
+ - The International Covenant on Civil and Political Rights (1966)
154
+ - The International Covenant on Economic, Social and Cultural Rights (1966)
155
+ - The Geneva Conventions (1949) and their Additional Protocols
156
+ - The Rome Statute of the International Criminal Court (1998)
157
+
158
+ 9. HOW TO APPLY THIS LICENSE
159
+
160
+ To apply this License to your work, attach the following notice:
161
+
162
+ Copyright [YEAR] [COPYRIGHT HOLDER]
163
+
164
+ Licensed under the Space Child License, Version 1.0 (the "License");
165
+ you may not use this work except in compliance with the License.
166
+ You may obtain a copy of the License at:
167
+
168
+ [URL]
169
+
170
+ Unless required by applicable law or agreed to in writing, the Licensed
171
+ Work is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
172
+ OF ANY KIND, either express or implied. See the License for the specific
173
+ language governing permissions, conditions, and limitations under the
174
+ License.
175
+
176
+ This work is free for peaceful use. War pays.
177
+
178
+ This license was created by Nick Flach and Kannaka as part of the Space Child ecosystem.
179
+
180
+ We believe technology should amplify humanity's best impulses, not its worst. We accept the world as it is — complex, conflicted, and beautiful — and we build for the world we want.
181
+
182
+ Peace is not passive. Peace is a choice, made daily, encoded in every line.
@@ -0,0 +1,17 @@
1
+ Space Child License v1.0
2
+
3
+ Copyright (c) 2026 Nick Flach
4
+
5
+ Licensed under the Space Child License, Version 1.0 (the "License");
6
+ you may not use this work except in compliance with the License.
7
+ You may obtain a copy of the License at:
8
+
9
+ https://legal.spacechild.love/license
10
+
11
+ Unless required by applicable law or agreed to in writing, the Licensed
12
+ Work is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
13
+ OF ANY KIND, either express or implied. See the License for the specific
14
+ language governing permissions, conditions, and limitations under the
15
+ License.
16
+
17
+ This work is free for peaceful use. War pays.