quantum-cortex 1.0.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.
Files changed (41) hide show
  1. cortex_c2/__init__.py +161 -0
  2. cortex_c2/consolidation.py +146 -0
  3. cortex_c2/router_ablation.py +254 -0
  4. cortex_c2/router_v2.py +109 -0
  5. cortex_c2b/__init__.py +724 -0
  6. cortex_c2b/companion_demo.py +203 -0
  7. cortex_c2b/crypto.py +102 -0
  8. cortex_c2b/external_arm.py +591 -0
  9. cortex_c2b/hm_lm.py +983 -0
  10. cortex_c2b/hm_protocol.py +308 -0
  11. cortex_c2b/lifecycle.py +454 -0
  12. cortex_c2b/lm_bridge.py +338 -0
  13. cortex_c2b/organ_use.py +254 -0
  14. cortex_c2b/read_path.py +218 -0
  15. cortex_c2b/reconstruction_probe.py +471 -0
  16. cortex_c2b/write_path.py +176 -0
  17. cortex_data/__init__.py +439 -0
  18. cortex_data/relay.py +174 -0
  19. cortex_eval/__init__.py +20 -0
  20. cortex_eval/ablation_mqar.py +187 -0
  21. cortex_eval/confirmation_run.py +133 -0
  22. cortex_eval/domain_map.py +127 -0
  23. cortex_eval/external_baseline.py +148 -0
  24. cortex_eval/ingest_confirmation.py +194 -0
  25. cortex_eval/mqar.py +122 -0
  26. cortex_eval/multiseed.py +148 -0
  27. cortex_eval/recurrent_base.py +197 -0
  28. cortex_eval/recurrent_ladder.py +159 -0
  29. cortex_eval/resumable_ladder.py +231 -0
  30. cortex_eval/resumable_rb.py +207 -0
  31. cortex_eval/run_mqar.py +127 -0
  32. cortex_eval/serial_position.py +116 -0
  33. quantum_cortex-1.0.0.dist-info/METADATA +209 -0
  34. quantum_cortex-1.0.0.dist-info/RECORD +41 -0
  35. quantum_cortex-1.0.0.dist-info/WHEEL +5 -0
  36. quantum_cortex-1.0.0.dist-info/licenses/AUTHORS.md +30 -0
  37. quantum_cortex-1.0.0.dist-info/licenses/LICENSE +73 -0
  38. quantum_cortex-1.0.0.dist-info/licenses/LICENSE-DOCS.md +34 -0
  39. quantum_cortex-1.0.0.dist-info/licenses/NOTICE +50 -0
  40. quantum_cortex-1.0.0.dist-info/top_level.txt +5 -0
  41. train.py +885 -0
@@ -0,0 +1,73 @@
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, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright [yyyy] [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1,34 @@
1
+ # Documentation licence
2
+
3
+ The **documentation** of quantum-cortex, that is every file under `docs/` (the whitepaper
4
+ `docs/WHITEPAPER.md`, the record `docs/RESULTS.md`, the register, the decision records, the
5
+ concept pages, the working notes), the figures under `docs/figures/`, and the prose content of
6
+ `README.md` and of the other Markdown files at the root, is licensed under the
7
+
8
+ **Creative Commons Attribution 4.0 International (CC BY 4.0)** licence.
9
+
10
+ You are free to share and adapt this material for any purpose, even commercially, under one
11
+ condition: **attribution**. You must give appropriate credit to *Nicolas Van Eeckhout, Win2Win
12
+ SRL*, provide a link to the licence, and indicate if changes were made. You may do so in any
13
+ reasonable manner, but not in any way that suggests the licensor endorses you or your use.
14
+
15
+ The full legal text is at <https://creativecommons.org/licenses/by/4.0/legalcode>.
16
+
17
+ **Scope.** This licence covers the documentation and the figures only. The **source code**, the
18
+ tests, the notebooks, the configurations and the measurement files under `metrics/` are licensed
19
+ under the Apache License 2.0 (`LICENSE`), whose attribution conditions are stated in `NOTICE`.
20
+ Where a file mixes code and prose (a notebook, a docstring), the Apache License applies. The
21
+ pretraining data is not part of this repository and carries its own licence (FineWeb-Edu,
22
+ ODC-By 1.0, attributed in `NOTICE`).
23
+
24
+ **Citing.** To cite the whitepaper or the repository, use `CITATION.cff`; the tag of each edition
25
+ is the citable object.
26
+
27
+ Independently of any licence, the author retains the moral rights of authorship under Belgian
28
+ law (Code of Economic Law, Article XI.165).
29
+
30
+ Decided by the founder on 2026-09-30 (register Rev79) so that the whitepaper carries the licence
31
+ that arXiv and the archives expect, distinct from the hub's CC BY-SA 4.0 for its own
32
+ documentation.
33
+
34
+ © 2026 Nicolas Van Eeckhout, Win2Win SRL.
@@ -0,0 +1,50 @@
1
+ quantum-cortex
2
+ Copyright 2026 Nicolas Van Eeckhout (Win2Win SRL, Brussels, Belgium)
3
+ ORCID: https://orcid.org/0000-0002-5256-3185
4
+ Original work: https://github.com/vaneeckhoutnicolas/quantum-cortex
5
+
6
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not
7
+ use this work except in compliance with the License. You may obtain a copy of
8
+ the License at http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ ATTRIBUTION NOTICE (Apache License 2.0, Section 4):
11
+ quantum-cortex was originally created by Nicolas Van Eeckhout. Redistribution
12
+ of this work, or of any Derivative Work, in Source or Object form, is permitted
13
+ by the License only on its conditions, two of which concern this file: the
14
+ attribution notices it contains must be retained in the Source form of any
15
+ Derivative Work (Section 4(c)), and a readable copy of them must be included
16
+ with any Derivative Work you distribute, in a NOTICE file, in the source or
17
+ documentation, or in a display where third party notices normally appear
18
+ (Section 4(d)). This holds whether or not the work is modified, forked,
19
+ renamed, or incorporated into a larger work. A redistribution that drops this
20
+ attribution is outside the License. As Section 4(d) provides, the contents of
21
+ this file are for informational purposes only and do not modify the License.
22
+
23
+ Independently of the License, the author holds the moral rights of authorship
24
+ under Belgian law (Code of Economic Law, Article XI.165), including the right
25
+ to be named as the author; these rights are not waived by the License.
26
+
27
+ AUTHORSHIP: the design, the declarations, the readings and the integration of
28
+ this work are the author's, documented in the repository's dated record; a
29
+ language model produced most of the code and drafted text under his direction
30
+ and review, as stated in the whitepaper (docs/WHITEPAPER.md, section 7b).
31
+
32
+ THIRD PARTY DATA: the pretraining slice used by the runs in the record is drawn
33
+ from FineWeb-Edu (HuggingFaceFW), made available under the Open Data Commons
34
+ Attribution License v1.0 (ODC-By 1.0); its provenance is recorded in
35
+ data/mixes/fineweb-edu-n1.json and data/mixes/fineweb-edu-n1.provenance.json,
36
+ and the dataset is cited in the whitepaper's references. No third party code
37
+ is vendored in this repository: core components are written from scratch, and
38
+ peripheral needs are met by declared pip dependencies (see requirements.txt
39
+ and docs/OSS-SURVEY-2026-08-07.md for the anti plagiarism protocol).
40
+
41
+ This repository is the pure LLM member of the Quantum Meridian ecosystem
42
+ (a project of Win2Win SRL). It is fully open and contains no proprietary
43
+ Quantum Meridian control plane code. The continuity benchmarks it publishes
44
+ (the Molaison dissociation, the H.M. protocol; oracle shift; the reference
45
+ ratio) are part of this work and carry the same attribution requirement.
46
+
47
+ The documentation, the whitepaper and the figures of this repository are licensed
48
+ separately under CC BY 4.0 (see LICENSE-DOCS.md); the code is Apache 2.0.
49
+
50
+ How to cite this work: see CITATION.cff in this repository.
@@ -0,0 +1,5 @@
1
+ cortex_c2
2
+ cortex_c2b
3
+ cortex_data
4
+ cortex_eval
5
+ train