radchain 1.0.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.
- radchain-1.0.0/LICENSE +202 -0
- radchain-1.0.0/NOTICE +13 -0
- radchain-1.0.0/PKG-INFO +215 -0
- radchain-1.0.0/README.md +186 -0
- radchain-1.0.0/pyproject.toml +40 -0
- radchain-1.0.0/setup.cfg +4 -0
- radchain-1.0.0/src/radchain/__init__.py +3 -0
- radchain-1.0.0/src/radchain/_data.py +47 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.3_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.3_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.3_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.3_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.5_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.5_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.5_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.5_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.725_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.725_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.725_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-flat_0.725_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.3_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.3_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.3_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.3_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.5_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.5_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.5_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.5_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.725_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.725_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.725_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-lines_0.725_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.3_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.3_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.3_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.3_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.3_5.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.3_6.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.5_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.5_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.5_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.5_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.5_5.json +1 -0
- radchain-1.0.0/src/radchain/data/env/gamma-scatter_0.5_6.json +1 -0
- radchain-1.0.0/src/radchain/data/env/muon_0.3.json +1 -0
- radchain-1.0.0/src/radchain/data/env/muon_0.5.json +1 -0
- radchain-1.0.0/src/radchain/data/env/muon_0.725.json +1 -0
- radchain-1.0.0/src/radchain/data/env/pilot_gamma-flat.json +1 -0
- radchain-1.0.0/src/radchain/data/env/pilot_gamma-lines.json +1 -0
- radchain-1.0.0/src/radchain/data/env/pilot_muon.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-flat_0.43_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-flat_0.43_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-flat_0.43_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-flat_0.43_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-flat_0.43_5.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-flat_0.43_6.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-lines_0.43_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-lines_0.43_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-lines_0.43_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-lines_0.43_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-lines_0.43_5.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-lines_0.43_6.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-scatter_0.43_1.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-scatter_0.43_2.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-scatter_0.43_3.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-scatter_0.43_4.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-scatter_0.43_5.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/gamma-scatter_0.43_6.json +1 -0
- radchain-1.0.0/src/radchain/data/env2/muon_0.43.json +1 -0
- radchain-1.0.0/src/radchain/data/env_grid/G4_ALUMINUM_OXIDE.npz +0 -0
- radchain-1.0.0/src/radchain/data/env_grid/G4_Si.npz +0 -0
- radchain-1.0.0/src/radchain/data/l3_kernel/runs.jsonl +3821 -0
- radchain-1.0.0/src/radchain/device2_li2025.py +168 -0
- radchain-1.0.0/src/radchain/env_grid.py +216 -0
- radchain-1.0.0/src/radchain/geant4/g4_chip_array.py +524 -0
- radchain-1.0.0/src/radchain/geant4/g4_cryostat_spectrum.py +379 -0
- radchain-1.0.0/src/radchain/geant4/g4_env_spectrum.py +232 -0
- radchain-1.0.0/src/radchain/geant4/g4_kid_stack.py +304 -0
- radchain-1.0.0/src/radchain/geant4/g4_l2_bench.py +271 -0
- radchain-1.0.0/src/radchain/geant4/g4_moshel_dies.py +482 -0
- radchain-1.0.0/src/radchain/geant4/g4_species_spectrum.py +280 -0
- radchain-1.0.0/src/radchain/geant4/g4_wu_modules.py +452 -0
- radchain-1.0.0/src/radchain/ingest_kernel_runs.py +154 -0
- radchain-1.0.0/src/radchain/kernel_runs.py +58 -0
- radchain-1.0.0/src/radchain/pack_env_grid.py +89 -0
- radchain-1.0.0/src/radchain/phonon.py +313 -0
- radchain-1.0.0/src/radchain/qp_recovery.py +218 -0
- radchain-1.0.0/src/radchain/qp_shift.py +155 -0
- radchain-1.0.0/src/radchain/qubit_footprint.py +520 -0
- radchain-1.0.0/src/radchain/rate_crosscheck.py +215 -0
- radchain-1.0.0/src/radchain/recovery_google2025.py +186 -0
- radchain-1.0.0/src/radchain/score_kernel.py +86 -0
- radchain-1.0.0/src/radchain.egg-info/PKG-INFO +215 -0
- radchain-1.0.0/src/radchain.egg-info/SOURCES.txt +102 -0
- radchain-1.0.0/src/radchain.egg-info/dependency_links.txt +1 -0
- radchain-1.0.0/src/radchain.egg-info/requires.txt +13 -0
- radchain-1.0.0/src/radchain.egg-info/top_level.txt +1 -0
- radchain-1.0.0/tests/test_phonon_backend.py +143 -0
- radchain-1.0.0/tests/test_rad_device2.py +45 -0
- radchain-1.0.0/tests/test_rad_env_grid.py +61 -0
- radchain-1.0.0/tests/test_rad_ingest.py +112 -0
- radchain-1.0.0/tests/test_rad_qp_shift.py +51 -0
- radchain-1.0.0/tests/test_rad_qubit_footprint.py +46 -0
- radchain-1.0.0/tests/test_rad_recovery_google.py +58 -0
radchain-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
radchain-1.0.0/NOTICE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
radchain
|
|
2
|
+
Copyright 2026 Cogitan
|
|
3
|
+
|
|
4
|
+
Code: Apache License 2.0 (LICENSE).
|
|
5
|
+
|
|
6
|
+
Data in src/radchain/data/ (Geant4 deposition spectra and the recorded G4CMP
|
|
7
|
+
kernel runs): Creative Commons Attribution 4.0 International,
|
|
8
|
+
https://creativecommons.org/licenses/by/4.0/. Credit: Cogitan, radchain,
|
|
9
|
+
https://github.com/Cogitan/radchain.
|
|
10
|
+
|
|
11
|
+
The source repository (not the Python package) includes a patch to G4CMP and
|
|
12
|
+
one G4CMP macro (https://github.com/G4CMP/G4CMP), distributed under GPL-3.0;
|
|
13
|
+
see g4cmp/NOTICE.
|
radchain-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: radchain
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: End-to-end radiation -> phonon -> quasiparticle -> logical-error simulation for superconducting qubit chips
|
|
5
|
+
Author: Cogitan
|
|
6
|
+
License-Expression: Apache-2.0 AND CC-BY-4.0
|
|
7
|
+
Project-URL: Homepage, https://github.com/Cogitan/radchain
|
|
8
|
+
Project-URL: Issues, https://github.com/Cogitan/radchain/issues
|
|
9
|
+
Keywords: superconducting qubits,radiation,cosmic rays,quasiparticles,phonons,Geant4,G4CMP,quantum error correction
|
|
10
|
+
Classifier: Development Status :: 4 - Beta
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
14
|
+
Requires-Python: >=3.11
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
License-File: NOTICE
|
|
18
|
+
Requires-Dist: numpy>=1.26
|
|
19
|
+
Requires-Dist: scipy>=1.11
|
|
20
|
+
Provides-Extra: analysis
|
|
21
|
+
Requires-Dist: stim>=1.13; extra == "analysis"
|
|
22
|
+
Requires-Dist: pymatching>=2.2; extra == "analysis"
|
|
23
|
+
Requires-Dist: matplotlib>=3.8; extra == "analysis"
|
|
24
|
+
Provides-Extra: geant4
|
|
25
|
+
Requires-Dist: geant4_pybind; extra == "geant4"
|
|
26
|
+
Provides-Extra: test
|
|
27
|
+
Requires-Dist: pytest>=8; extra == "test"
|
|
28
|
+
Dynamic: license-file
|
|
29
|
+
|
|
30
|
+
# radchain: from a particle strike to logical errors in superconducting qubit chips
|
|
31
|
+
|
|
32
|
+
`radchain` is an open, end-to-end simulation of how ionising radiation turns into
|
|
33
|
+
correlated errors on a superconducting quantum processor:
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
environment / cosmic rays Geant4 energy deposited per event
|
|
37
|
+
│ per die (keV, position)
|
|
38
|
+
▼
|
|
39
|
+
deposit ──► phonon transport G4CMP where pair-breaking lands
|
|
40
|
+
│ around the strike
|
|
41
|
+
▼
|
|
42
|
+
quasiparticles ──► qubit shift analytic per-qubit frequency shift,
|
|
43
|
+
│ and recovery (published eqs.) recovery over time
|
|
44
|
+
▼
|
|
45
|
+
burst errors ──► decoder Stim + PyMatching logical failure per event,
|
|
46
|
+
erasure / code-block analysis
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Every stage is physics you can run and change. Nothing in the default chain is
|
|
50
|
+
fitted to a target except where it says so, and every place it is says what it
|
|
51
|
+
was fitted to.
|
|
52
|
+
|
|
53
|
+
## What is in here
|
|
54
|
+
|
|
55
|
+
| Stage | Code | Needs |
|
|
56
|
+
|---|---|---|
|
|
57
|
+
| Radiation transport: cryostat, die stacks, chip arrays, carriers, muon/gamma/species sources | `src/radchain/geant4/g4_*.py` | `geant4_pybind` |
|
|
58
|
+
| Cached deposition spectra (Si, sapphire; several thicknesses) and thickness interpolation | `src/radchain/data/env*`, `env_grid.py` | none |
|
|
59
|
+
| Phonon transport: G4CMP build, run-time-configurable trap geometry patch, job script, kernel scorer | `g4cmp/`, `score_kernel.py`, `ingest_kernel_runs.py` | Geant4 11.4.1 + G4CMP |
|
|
60
|
+
| 3,821 recorded G4CMP runs: 3,681 in the 455 configurations the backend loads (450 trap configurations, thickness × back-side trap pitch × coverage × absorption, plus 5 no-trap thicknesses), and 140 placement and sensitivity runs | `src/radchain/data/l3_kernel/runs.jsonl` | none |
|
|
61
|
+
| Phonon backend interface + the G4CMP-kernel backend | `src/radchain/phonon.py` | none |
|
|
62
|
+
| Per-qubit absorbed energy on any layout | `qubit_footprint.py` | none |
|
|
63
|
+
| Quasiparticle (QP) frequency shift per device (Eq. 17 of arXiv:2506.18228; Catelani et al., PRB 84, 064517 (2011)) | `qp_shift.py` | none |
|
|
64
|
+
| Recovery: recombination (no traps) and trapping regimes | `recovery_google2025.py`, `qp_recovery.py` | none |
|
|
65
|
+
| Burst rate cross-checks, second-device test (Li et al., Nat. Commun. 16, 4677 (2025), arXiv:2402.04245) | `rate_crosscheck.py`, `device2_li2025.py` | none |
|
|
66
|
+
| Logical failure per event: surface-code memory under the burst, decoded | `analysis/rad_pfail_physics.py` | `stim`, `pymatching` |
|
|
67
|
+
| Cross-chip erasure, code blocks, erasure policies, bootstrap intervals | `analysis/rad_*.py` | per-event deposit data and `rad_pfail_*` results (below) |
|
|
68
|
+
| The sweep launchers that produced the data | `scripts/sweeps/` | WSL/Linux, Geant4 |
|
|
69
|
+
|
|
70
|
+
## Quick start
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
pip install "radchain[analysis]"
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
or, to run the tests, the analysis scripts and the sweeps, from a clone:
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
git clone https://github.com/Cogitan/radchain && cd radchain
|
|
80
|
+
pip install -e ".[analysis,test]"
|
|
81
|
+
pytest
|
|
82
|
+
python -m radchain.qubit_footprint # Willow-class footprint on G4CMP kernels (~5 min)
|
|
83
|
+
python analysis/rad_pfail_physics.py --d 5 --events 50 --shots 500 --workers 4 # ~6 min
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
In the footprint table, the last column names the fixed band(s) a row fails
|
|
87
|
+
("size", "large", "both"), or PASS. The bands are set in `qubit_footprint.py`; the
|
|
88
|
+
record of when they were fixed is not part of this release.
|
|
89
|
+
|
|
90
|
+
Phonon hits for any simulated configuration:
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
from radchain import phonon
|
|
94
|
+
b = phonon.get_backend() # "g4cmp-kernel"
|
|
95
|
+
hx, hy = b.film_hits(n_phonons=200_000, thickness_mm=0.381)
|
|
96
|
+
hx, hy = b.film_hits(n_phonons=200_000, thickness_mm=0.6,
|
|
97
|
+
trap_pitch_mm=0.5, trap_coverage=0.25, trap_absorption=1.0)
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
To simulate a geometry that is not in the record, build G4CMP with the patch
|
|
101
|
+
(`g4cmp/README.md`), run `g4cmp/l3_kernel_job.sh` (by default with
|
|
102
|
+
`g4cmp/base.mac`, the G4CMP macro the shipped record used; see the script header), and
|
|
103
|
+
add the result with `python -m radchain.ingest_kernel_runs --src <dir>`. That
|
|
104
|
+
writes into the package's own `data/l3_kernel/runs.jsonl`, so use an editable
|
|
105
|
+
install. The backend loads only the `g_*` (trap grid) and `kt_*` (no-trap) tag
|
|
106
|
+
families. A run you add must use the same G4CMP settings as its family (die
|
|
107
|
+
size, housing, film pattern; see `scripts/sweeps/run_trap_grid*.sh` and
|
|
108
|
+
`run_kernel_thickness.sh`), because those settings are not recorded in a run.
|
|
109
|
+
|
|
110
|
+
## Phonon backends
|
|
111
|
+
|
|
112
|
+
Downstream stages only need, for a strike at the origin, the positions where
|
|
113
|
+
pair-breaking energy lands (`phonon.py` documents the contract). The shipped
|
|
114
|
+
backend draws them from the recorded G4CMP kernels (binned in radius and
|
|
115
|
+
averaged over azimuth), with no interpolation, and it refuses configurations
|
|
116
|
+
that were not simulated. In the shipped record G4CMP took 0.4-3 s per primary
|
|
117
|
+
phonon with back-side traps and up to about 2 minutes without them. The
|
|
118
|
+
record's `pair_breaks` fields count quasiparticle births, two per broken pair;
|
|
119
|
+
the backend charges each one the film gap.
|
|
120
|
+
|
|
121
|
+
Other transport models can be registered with `phonon.register_backend(...)` or
|
|
122
|
+
the `radchain.phonon_backends` entry-point group, and every stage then uses them
|
|
123
|
+
by name. Cogitan's own transport model plugs in through this same interface;
|
|
124
|
+
it is not part of this repository.
|
|
125
|
+
|
|
126
|
+
## Known limits, stated before you find them
|
|
127
|
+
|
|
128
|
+
- **The trap grid was simulated on a 4 mm die** with a plain film and no
|
|
129
|
+
housing, so those kernels stop near 2 mm from the strike. The no-trap kernels
|
|
130
|
+
use G4CMP's example geometry (8 mm die with its housing). All five were run
|
|
131
|
+
on the patched binary; at 0.381 mm its default settings give the example's
|
|
132
|
+
own thickness.
|
|
133
|
+
Neither is a production qubit die.
|
|
134
|
+
- **The no-trap kernels do not reproduce Willow's burst-size distribution**
|
|
135
|
+
(arXiv:2506.18228). `python -m radchain.qubit_footprint` grades four of the
|
|
136
|
+
five thicknesses and shows median sizes of 4 to 20 of 60 qubits across
|
|
137
|
+
thickness and spectrum, against 15 measured, and
|
|
138
|
+
no row passes both fixed bands. The example geometry differs from
|
|
139
|
+
Willow's (no carrier chip, a different housing). The grade is printed rather
|
|
140
|
+
than tuned until it passes.
|
|
141
|
+
- **The response coefficient is tied to the transport that fitted it.**
|
|
142
|
+
`qp_shift.K_WILLOW_KHZ_PER_KEV` (44.89 kHz/keV) is fitted to Willow's 2 MHz
|
|
143
|
+
median peak with the shipped backend on the no-trap 0.381 mm kernel, using
|
|
144
|
+
Geant4 gamma-line deposits in a 0.3 mm die (8 seeds of 3000 strikes; see
|
|
145
|
+
`qp_shift.py`). It is the device's response and stays fixed when you change
|
|
146
|
+
the design (traps, thickness). Refit it only when you change the transport
|
|
147
|
+
model: pass `qubit_footprint.fit_k` the per-event absorbed energies from that
|
|
148
|
+
model's no-trap reference, never from a trapped design, or you scale the traps'
|
|
149
|
+
effect back out. `rad_pfail_physics.py --fit-k-reference` also refits it, but
|
|
150
|
+
with its own deposit mix (gamma lines plus 18.4% muons, 0.5 mm die), so it does
|
|
151
|
+
not return 44.89 on the shipped backend.
|
|
152
|
+
- **Willow's response does not transfer as-is to other devices.** In Cogitan's
|
|
153
|
+
own tests, made with its own transport model and not part of this release, a
|
|
154
|
+
Willow-calibrated response over-predicted the frequency shifts on Pinckney et
|
|
155
|
+
al.'s JJ-Only array (arXiv:2603.13460, Fig. 13(b): below 100 kHz at deposits
|
|
156
|
+
of 57 to 699 keV) by 16 to 80 times, depending on energy and statistic. The cause is unresolved, and nothing here shows the
|
|
157
|
+
shipped backend transfers either.
|
|
158
|
+
- The quasiparticle-birth kernel is axisymmetric (azimuth-averaged) and taken at
|
|
159
|
+
one strike depth and primary phonon energy. A few runs (`s3_*`, `s4_*` tags)
|
|
160
|
+
probe sensitivity.
|
|
161
|
+
- Births within 30 um of the strike are recorded by the scorer only as a count;
|
|
162
|
+
the backend places them uniformly within 30 um. They are 0.04-3.7% of births
|
|
163
|
+
in the no-trap kernels (the most at 0.1 mm) and up to ~18% in thin trapped
|
|
164
|
+
ones.
|
|
165
|
+
- The no-trap kernels include reflection at the simulated 8 mm die's edge, so
|
|
166
|
+
for strikes near the edge of a larger die the outer geometry is approximate.
|
|
167
|
+
- Some docstrings mention pre-registered tests and earlier file locations from
|
|
168
|
+
the research history. Those records are not part of this release; the paper
|
|
169
|
+
below covers the published results.
|
|
170
|
+
|
|
171
|
+
## Data not in git
|
|
172
|
+
|
|
173
|
+
The per-event Geant4 deposit files used by the erasure and code-block analysis
|
|
174
|
+
(about 1.3 GB, `bench/rad_data/` in the data record of the paper below) are not
|
|
175
|
+
in git. Copy them to `analysis/rad_data/` for the analysis scripts. The sweep
|
|
176
|
+
scripts take `RADCHAIN_REPO` (this repository), `RADCHAIN_DATA` (where to write
|
|
177
|
+
deposits) and `RADCHAIN_PY` (a Python with `geant4_pybind`).
|
|
178
|
+
|
|
179
|
+
`rad_apply_perase.py` and the scripts built on it (`rad_code_block`,
|
|
180
|
+
`rad_erasure_policy`, `rad_policy_threshold`, `rad_block_bootstrap`) also read
|
|
181
|
+
`analysis/results/rad_pfail_<tag>.json` for tags `d7_conv0.25_echo`,
|
|
182
|
+
`d7_conv0.5_echo`, `d7_conv1.0_echo` and `d7_conv0.5_noecho` (plus d5/d11 for
|
|
183
|
+
`--distance`). Produce them with `rad_pfail_physics.py --d 7 --conv ... [--noecho]`
|
|
184
|
+
(hours each at the default 150 events x 1000 shots), or copy the paper's from
|
|
185
|
+
`bench/results/` in the data record. The paper's were made with Cogitan's own
|
|
186
|
+
transport model, which is not in this repository, so they will not match runs
|
|
187
|
+
on the shipped backend.
|
|
188
|
+
|
|
189
|
+
## Papers and data
|
|
190
|
+
|
|
191
|
+
- D. Henderson, *Correlated radiation erasures limit cross-chip erasure codes in
|
|
192
|
+
modular superconducting processors: a simulation study* (2026).
|
|
193
|
+
doi:10.5281/zenodo.24412996
|
|
194
|
+
- Data and code: doi:10.5281/zenodo.24412856
|
|
195
|
+
|
|
196
|
+
## Status
|
|
197
|
+
|
|
198
|
+
1.0.0. The interfaces above (`phonon.get_backend`, `film_hits`,
|
|
199
|
+
`register_backend`, the `radchain.phonon_backends` entry point) are kept stable
|
|
200
|
+
within 1.x. The limits listed above are open questions, not bugs scheduled for a
|
|
201
|
+
fix.
|
|
202
|
+
|
|
203
|
+
## License
|
|
204
|
+
|
|
205
|
+
- Code: Apache-2.0 (`LICENSE`).
|
|
206
|
+
- `g4cmp/l3trap.patch` and `g4cmp/base.mac` modify files from G4CMP's
|
|
207
|
+
`examples/quasiparticle` and are distributed under GPL-3.0, the license of
|
|
208
|
+
G4CMP (`g4cmp/NOTICE`, full text in `g4cmp/COPYING`). Neither is in the Python
|
|
209
|
+
package. The rest of this repository reads G4CMP's output files and does not
|
|
210
|
+
link against it.
|
|
211
|
+
- Data in `src/radchain/data/`: CC BY 4.0
|
|
212
|
+
(https://creativecommons.org/licenses/by/4.0/); credit "Cogitan, radchain"
|
|
213
|
+
(`NOTICE`).
|
|
214
|
+
|
|
215
|
+
G4CMP: M.H. Kelsey et al., NIM A 1055, 168473 (2023).
|
radchain-1.0.0/README.md
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
# radchain: from a particle strike to logical errors in superconducting qubit chips
|
|
2
|
+
|
|
3
|
+
`radchain` is an open, end-to-end simulation of how ionising radiation turns into
|
|
4
|
+
correlated errors on a superconducting quantum processor:
|
|
5
|
+
|
|
6
|
+
```
|
|
7
|
+
environment / cosmic rays Geant4 energy deposited per event
|
|
8
|
+
│ per die (keV, position)
|
|
9
|
+
▼
|
|
10
|
+
deposit ──► phonon transport G4CMP where pair-breaking lands
|
|
11
|
+
│ around the strike
|
|
12
|
+
▼
|
|
13
|
+
quasiparticles ──► qubit shift analytic per-qubit frequency shift,
|
|
14
|
+
│ and recovery (published eqs.) recovery over time
|
|
15
|
+
▼
|
|
16
|
+
burst errors ──► decoder Stim + PyMatching logical failure per event,
|
|
17
|
+
erasure / code-block analysis
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Every stage is physics you can run and change. Nothing in the default chain is
|
|
21
|
+
fitted to a target except where it says so, and every place it is says what it
|
|
22
|
+
was fitted to.
|
|
23
|
+
|
|
24
|
+
## What is in here
|
|
25
|
+
|
|
26
|
+
| Stage | Code | Needs |
|
|
27
|
+
|---|---|---|
|
|
28
|
+
| Radiation transport: cryostat, die stacks, chip arrays, carriers, muon/gamma/species sources | `src/radchain/geant4/g4_*.py` | `geant4_pybind` |
|
|
29
|
+
| Cached deposition spectra (Si, sapphire; several thicknesses) and thickness interpolation | `src/radchain/data/env*`, `env_grid.py` | none |
|
|
30
|
+
| Phonon transport: G4CMP build, run-time-configurable trap geometry patch, job script, kernel scorer | `g4cmp/`, `score_kernel.py`, `ingest_kernel_runs.py` | Geant4 11.4.1 + G4CMP |
|
|
31
|
+
| 3,821 recorded G4CMP runs: 3,681 in the 455 configurations the backend loads (450 trap configurations, thickness × back-side trap pitch × coverage × absorption, plus 5 no-trap thicknesses), and 140 placement and sensitivity runs | `src/radchain/data/l3_kernel/runs.jsonl` | none |
|
|
32
|
+
| Phonon backend interface + the G4CMP-kernel backend | `src/radchain/phonon.py` | none |
|
|
33
|
+
| Per-qubit absorbed energy on any layout | `qubit_footprint.py` | none |
|
|
34
|
+
| Quasiparticle (QP) frequency shift per device (Eq. 17 of arXiv:2506.18228; Catelani et al., PRB 84, 064517 (2011)) | `qp_shift.py` | none |
|
|
35
|
+
| Recovery: recombination (no traps) and trapping regimes | `recovery_google2025.py`, `qp_recovery.py` | none |
|
|
36
|
+
| Burst rate cross-checks, second-device test (Li et al., Nat. Commun. 16, 4677 (2025), arXiv:2402.04245) | `rate_crosscheck.py`, `device2_li2025.py` | none |
|
|
37
|
+
| Logical failure per event: surface-code memory under the burst, decoded | `analysis/rad_pfail_physics.py` | `stim`, `pymatching` |
|
|
38
|
+
| Cross-chip erasure, code blocks, erasure policies, bootstrap intervals | `analysis/rad_*.py` | per-event deposit data and `rad_pfail_*` results (below) |
|
|
39
|
+
| The sweep launchers that produced the data | `scripts/sweeps/` | WSL/Linux, Geant4 |
|
|
40
|
+
|
|
41
|
+
## Quick start
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
pip install "radchain[analysis]"
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
or, to run the tests, the analysis scripts and the sweeps, from a clone:
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
git clone https://github.com/Cogitan/radchain && cd radchain
|
|
51
|
+
pip install -e ".[analysis,test]"
|
|
52
|
+
pytest
|
|
53
|
+
python -m radchain.qubit_footprint # Willow-class footprint on G4CMP kernels (~5 min)
|
|
54
|
+
python analysis/rad_pfail_physics.py --d 5 --events 50 --shots 500 --workers 4 # ~6 min
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
In the footprint table, the last column names the fixed band(s) a row fails
|
|
58
|
+
("size", "large", "both"), or PASS. The bands are set in `qubit_footprint.py`; the
|
|
59
|
+
record of when they were fixed is not part of this release.
|
|
60
|
+
|
|
61
|
+
Phonon hits for any simulated configuration:
|
|
62
|
+
|
|
63
|
+
```python
|
|
64
|
+
from radchain import phonon
|
|
65
|
+
b = phonon.get_backend() # "g4cmp-kernel"
|
|
66
|
+
hx, hy = b.film_hits(n_phonons=200_000, thickness_mm=0.381)
|
|
67
|
+
hx, hy = b.film_hits(n_phonons=200_000, thickness_mm=0.6,
|
|
68
|
+
trap_pitch_mm=0.5, trap_coverage=0.25, trap_absorption=1.0)
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
To simulate a geometry that is not in the record, build G4CMP with the patch
|
|
72
|
+
(`g4cmp/README.md`), run `g4cmp/l3_kernel_job.sh` (by default with
|
|
73
|
+
`g4cmp/base.mac`, the G4CMP macro the shipped record used; see the script header), and
|
|
74
|
+
add the result with `python -m radchain.ingest_kernel_runs --src <dir>`. That
|
|
75
|
+
writes into the package's own `data/l3_kernel/runs.jsonl`, so use an editable
|
|
76
|
+
install. The backend loads only the `g_*` (trap grid) and `kt_*` (no-trap) tag
|
|
77
|
+
families. A run you add must use the same G4CMP settings as its family (die
|
|
78
|
+
size, housing, film pattern; see `scripts/sweeps/run_trap_grid*.sh` and
|
|
79
|
+
`run_kernel_thickness.sh`), because those settings are not recorded in a run.
|
|
80
|
+
|
|
81
|
+
## Phonon backends
|
|
82
|
+
|
|
83
|
+
Downstream stages only need, for a strike at the origin, the positions where
|
|
84
|
+
pair-breaking energy lands (`phonon.py` documents the contract). The shipped
|
|
85
|
+
backend draws them from the recorded G4CMP kernels (binned in radius and
|
|
86
|
+
averaged over azimuth), with no interpolation, and it refuses configurations
|
|
87
|
+
that were not simulated. In the shipped record G4CMP took 0.4-3 s per primary
|
|
88
|
+
phonon with back-side traps and up to about 2 minutes without them. The
|
|
89
|
+
record's `pair_breaks` fields count quasiparticle births, two per broken pair;
|
|
90
|
+
the backend charges each one the film gap.
|
|
91
|
+
|
|
92
|
+
Other transport models can be registered with `phonon.register_backend(...)` or
|
|
93
|
+
the `radchain.phonon_backends` entry-point group, and every stage then uses them
|
|
94
|
+
by name. Cogitan's own transport model plugs in through this same interface;
|
|
95
|
+
it is not part of this repository.
|
|
96
|
+
|
|
97
|
+
## Known limits, stated before you find them
|
|
98
|
+
|
|
99
|
+
- **The trap grid was simulated on a 4 mm die** with a plain film and no
|
|
100
|
+
housing, so those kernels stop near 2 mm from the strike. The no-trap kernels
|
|
101
|
+
use G4CMP's example geometry (8 mm die with its housing). All five were run
|
|
102
|
+
on the patched binary; at 0.381 mm its default settings give the example's
|
|
103
|
+
own thickness.
|
|
104
|
+
Neither is a production qubit die.
|
|
105
|
+
- **The no-trap kernels do not reproduce Willow's burst-size distribution**
|
|
106
|
+
(arXiv:2506.18228). `python -m radchain.qubit_footprint` grades four of the
|
|
107
|
+
five thicknesses and shows median sizes of 4 to 20 of 60 qubits across
|
|
108
|
+
thickness and spectrum, against 15 measured, and
|
|
109
|
+
no row passes both fixed bands. The example geometry differs from
|
|
110
|
+
Willow's (no carrier chip, a different housing). The grade is printed rather
|
|
111
|
+
than tuned until it passes.
|
|
112
|
+
- **The response coefficient is tied to the transport that fitted it.**
|
|
113
|
+
`qp_shift.K_WILLOW_KHZ_PER_KEV` (44.89 kHz/keV) is fitted to Willow's 2 MHz
|
|
114
|
+
median peak with the shipped backend on the no-trap 0.381 mm kernel, using
|
|
115
|
+
Geant4 gamma-line deposits in a 0.3 mm die (8 seeds of 3000 strikes; see
|
|
116
|
+
`qp_shift.py`). It is the device's response and stays fixed when you change
|
|
117
|
+
the design (traps, thickness). Refit it only when you change the transport
|
|
118
|
+
model: pass `qubit_footprint.fit_k` the per-event absorbed energies from that
|
|
119
|
+
model's no-trap reference, never from a trapped design, or you scale the traps'
|
|
120
|
+
effect back out. `rad_pfail_physics.py --fit-k-reference` also refits it, but
|
|
121
|
+
with its own deposit mix (gamma lines plus 18.4% muons, 0.5 mm die), so it does
|
|
122
|
+
not return 44.89 on the shipped backend.
|
|
123
|
+
- **Willow's response does not transfer as-is to other devices.** In Cogitan's
|
|
124
|
+
own tests, made with its own transport model and not part of this release, a
|
|
125
|
+
Willow-calibrated response over-predicted the frequency shifts on Pinckney et
|
|
126
|
+
al.'s JJ-Only array (arXiv:2603.13460, Fig. 13(b): below 100 kHz at deposits
|
|
127
|
+
of 57 to 699 keV) by 16 to 80 times, depending on energy and statistic. The cause is unresolved, and nothing here shows the
|
|
128
|
+
shipped backend transfers either.
|
|
129
|
+
- The quasiparticle-birth kernel is axisymmetric (azimuth-averaged) and taken at
|
|
130
|
+
one strike depth and primary phonon energy. A few runs (`s3_*`, `s4_*` tags)
|
|
131
|
+
probe sensitivity.
|
|
132
|
+
- Births within 30 um of the strike are recorded by the scorer only as a count;
|
|
133
|
+
the backend places them uniformly within 30 um. They are 0.04-3.7% of births
|
|
134
|
+
in the no-trap kernels (the most at 0.1 mm) and up to ~18% in thin trapped
|
|
135
|
+
ones.
|
|
136
|
+
- The no-trap kernels include reflection at the simulated 8 mm die's edge, so
|
|
137
|
+
for strikes near the edge of a larger die the outer geometry is approximate.
|
|
138
|
+
- Some docstrings mention pre-registered tests and earlier file locations from
|
|
139
|
+
the research history. Those records are not part of this release; the paper
|
|
140
|
+
below covers the published results.
|
|
141
|
+
|
|
142
|
+
## Data not in git
|
|
143
|
+
|
|
144
|
+
The per-event Geant4 deposit files used by the erasure and code-block analysis
|
|
145
|
+
(about 1.3 GB, `bench/rad_data/` in the data record of the paper below) are not
|
|
146
|
+
in git. Copy them to `analysis/rad_data/` for the analysis scripts. The sweep
|
|
147
|
+
scripts take `RADCHAIN_REPO` (this repository), `RADCHAIN_DATA` (where to write
|
|
148
|
+
deposits) and `RADCHAIN_PY` (a Python with `geant4_pybind`).
|
|
149
|
+
|
|
150
|
+
`rad_apply_perase.py` and the scripts built on it (`rad_code_block`,
|
|
151
|
+
`rad_erasure_policy`, `rad_policy_threshold`, `rad_block_bootstrap`) also read
|
|
152
|
+
`analysis/results/rad_pfail_<tag>.json` for tags `d7_conv0.25_echo`,
|
|
153
|
+
`d7_conv0.5_echo`, `d7_conv1.0_echo` and `d7_conv0.5_noecho` (plus d5/d11 for
|
|
154
|
+
`--distance`). Produce them with `rad_pfail_physics.py --d 7 --conv ... [--noecho]`
|
|
155
|
+
(hours each at the default 150 events x 1000 shots), or copy the paper's from
|
|
156
|
+
`bench/results/` in the data record. The paper's were made with Cogitan's own
|
|
157
|
+
transport model, which is not in this repository, so they will not match runs
|
|
158
|
+
on the shipped backend.
|
|
159
|
+
|
|
160
|
+
## Papers and data
|
|
161
|
+
|
|
162
|
+
- D. Henderson, *Correlated radiation erasures limit cross-chip erasure codes in
|
|
163
|
+
modular superconducting processors: a simulation study* (2026).
|
|
164
|
+
doi:10.5281/zenodo.24412996
|
|
165
|
+
- Data and code: doi:10.5281/zenodo.24412856
|
|
166
|
+
|
|
167
|
+
## Status
|
|
168
|
+
|
|
169
|
+
1.0.0. The interfaces above (`phonon.get_backend`, `film_hits`,
|
|
170
|
+
`register_backend`, the `radchain.phonon_backends` entry point) are kept stable
|
|
171
|
+
within 1.x. The limits listed above are open questions, not bugs scheduled for a
|
|
172
|
+
fix.
|
|
173
|
+
|
|
174
|
+
## License
|
|
175
|
+
|
|
176
|
+
- Code: Apache-2.0 (`LICENSE`).
|
|
177
|
+
- `g4cmp/l3trap.patch` and `g4cmp/base.mac` modify files from G4CMP's
|
|
178
|
+
`examples/quasiparticle` and are distributed under GPL-3.0, the license of
|
|
179
|
+
G4CMP (`g4cmp/NOTICE`, full text in `g4cmp/COPYING`). Neither is in the Python
|
|
180
|
+
package. The rest of this repository reads G4CMP's output files and does not
|
|
181
|
+
link against it.
|
|
182
|
+
- Data in `src/radchain/data/`: CC BY 4.0
|
|
183
|
+
(https://creativecommons.org/licenses/by/4.0/); credit "Cogitan, radchain"
|
|
184
|
+
(`NOTICE`).
|
|
185
|
+
|
|
186
|
+
G4CMP: M.H. Kelsey et al., NIM A 1055, 168473 (2023).
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "radchain"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
description = "End-to-end radiation -> phonon -> quasiparticle -> logical-error simulation for superconducting qubit chips"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.11"
|
|
11
|
+
license = "Apache-2.0 AND CC-BY-4.0"
|
|
12
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
13
|
+
authors = [{name = "Cogitan"}]
|
|
14
|
+
keywords = ["superconducting qubits", "radiation", "cosmic rays", "quasiparticles", "phonons", "Geant4", "G4CMP", "quantum error correction"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 4 - Beta",
|
|
17
|
+
"Intended Audience :: Science/Research",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Topic :: Scientific/Engineering :: Physics",
|
|
20
|
+
]
|
|
21
|
+
dependencies = ["numpy>=1.26", "scipy>=1.11"]
|
|
22
|
+
|
|
23
|
+
[project.urls]
|
|
24
|
+
Homepage = "https://github.com/Cogitan/radchain"
|
|
25
|
+
Issues = "https://github.com/Cogitan/radchain/issues"
|
|
26
|
+
|
|
27
|
+
[project.optional-dependencies]
|
|
28
|
+
analysis = ["stim>=1.13", "pymatching>=2.2", "matplotlib>=3.8"]
|
|
29
|
+
geant4 = ["geant4_pybind"]
|
|
30
|
+
test = ["pytest>=8"]
|
|
31
|
+
|
|
32
|
+
[tool.setuptools.packages.find]
|
|
33
|
+
where = ["src"]
|
|
34
|
+
|
|
35
|
+
[tool.setuptools.package-data]
|
|
36
|
+
radchain = ["data/**/*"]
|
|
37
|
+
|
|
38
|
+
[tool.pytest.ini_options]
|
|
39
|
+
testpaths = ["tests"]
|
|
40
|
+
markers = ["slow: long-running test"]
|
radchain-1.0.0/setup.cfg
ADDED