xtim 4.2.1__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 (571) hide show
  1. xtim-4.2.1/CHANGELOG.md +4913 -0
  2. xtim-4.2.1/CITATION.cff +15 -0
  3. xtim-4.2.1/LICENSE +23 -0
  4. xtim-4.2.1/LICENSES/Apache-2.0.txt +202 -0
  5. xtim-4.2.1/MANIFEST.in +35 -0
  6. xtim-4.2.1/PKG-INFO +108 -0
  7. xtim-4.2.1/README.md +66 -0
  8. xtim-4.2.1/THIRD_PARTY_NOTICES.md +43 -0
  9. xtim-4.2.1/benchmarks/cultivation_d3_rate.stim +214 -0
  10. xtim-4.2.1/cpp/bindings/common_py.hpp +106 -0
  11. xtim-4.2.1/cpp/bindings/family_sampler.hpp +2334 -0
  12. xtim-4.2.1/cpp/bindings/framed_py.hpp +532 -0
  13. xtim-4.2.1/cpp/bindings/injection.hpp +397 -0
  14. xtim-4.2.1/cpp/bindings/output_state_py.hpp +199 -0
  15. xtim-4.2.1/cpp/bindings/record_api.hpp +471 -0
  16. xtim-4.2.1/cpp/bindings/record_buffer.hpp +620 -0
  17. xtim-4.2.1/cpp/bindings/refusal_text.hpp +121 -0
  18. xtim-4.2.1/cpp/bindings/twirl_binding_access.hpp +76 -0
  19. xtim-4.2.1/cpp/bindings/twirl_front.hpp +99 -0
  20. xtim-4.2.1/cpp/bindings/xtim_py.cpp +1760 -0
  21. xtim-4.2.1/cpp/include/qeccore/amplitudes.hpp +588 -0
  22. xtim-4.2.1/cpp/include/qeccore/bare_state_errors.hpp +43 -0
  23. xtim-4.2.1/cpp/include/qeccore/bare_state_memo.hpp +94 -0
  24. xtim-4.2.1/cpp/include/qeccore/bitmat.hpp +35 -0
  25. xtim-4.2.1/cpp/include/qeccore/born_law_coset.hpp +106 -0
  26. xtim-4.2.1/cpp/include/qeccore/branch_hint.hpp +9 -0
  27. xtim-4.2.1/cpp/include/qeccore/branch_scaffold.hpp +133 -0
  28. xtim-4.2.1/cpp/include/qeccore/branch_table.hpp +78 -0
  29. xtim-4.2.1/cpp/include/qeccore/canonical_stab_sum.hpp +162 -0
  30. xtim-4.2.1/cpp/include/qeccore/carried_compose.hpp +47 -0
  31. xtim-4.2.1/cpp/include/qeccore/circuit_ir.hpp +229 -0
  32. xtim-4.2.1/cpp/include/qeccore/clifford_conjugate.hpp +137 -0
  33. xtim-4.2.1/cpp/include/qeccore/clifford_frames.hpp +42 -0
  34. xtim-4.2.1/cpp/include/qeccore/clifford_op.hpp +50 -0
  35. xtim-4.2.1/cpp/include/qeccore/clifford_tableau.hpp +191 -0
  36. xtim-4.2.1/cpp/include/qeccore/coherentize_feedback.hpp +104 -0
  37. xtim-4.2.1/cpp/include/qeccore/compiler_builtins.hpp +82 -0
  38. xtim-4.2.1/cpp/include/qeccore/deferral.hpp +61 -0
  39. xtim-4.2.1/cpp/include/qeccore/dem_classify.hpp +43 -0
  40. xtim-4.2.1/cpp/include/qeccore/dem_decompose.hpp +146 -0
  41. xtim-4.2.1/cpp/include/qeccore/dem_export.hpp +485 -0
  42. xtim-4.2.1/cpp/include/qeccore/dem_pe_per_shot.hpp +179 -0
  43. xtim-4.2.1/cpp/include/qeccore/dem_preamble.hpp +66 -0
  44. xtim-4.2.1/cpp/include/qeccore/diag_conjugate.hpp +38 -0
  45. xtim-4.2.1/cpp/include/qeccore/diag_error_sampler.hpp +124 -0
  46. xtim-4.2.1/cpp/include/qeccore/engine_version.hpp +76 -0
  47. xtim-4.2.1/cpp/include/qeccore/errors.hpp +11 -0
  48. xtim-4.2.1/cpp/include/qeccore/exact_phase.hpp +44 -0
  49. xtim-4.2.1/cpp/include/qeccore/exact_scope.hpp +27 -0
  50. xtim-4.2.1/cpp/include/qeccore/factored_stab.hpp +121 -0
  51. xtim-4.2.1/cpp/include/qeccore/fast_todd.hpp +28 -0
  52. xtim-4.2.1/cpp/include/qeccore/fault_record_law.hpp +72 -0
  53. xtim-4.2.1/cpp/include/qeccore/feedback.hpp +118 -0
  54. xtim-4.2.1/cpp/include/qeccore/frame.hpp +240 -0
  55. xtim-4.2.1/cpp/include/qeccore/frame_cosets.hpp +485 -0
  56. xtim-4.2.1/cpp/include/qeccore/framed_sampler.hpp +537 -0
  57. xtim-4.2.1/cpp/include/qeccore/framed_superposition.hpp +407 -0
  58. xtim-4.2.1/cpp/include/qeccore/free_dir.hpp +62 -0
  59. xtim-4.2.1/cpp/include/qeccore/gf2_gauss.hpp +451 -0
  60. xtim-4.2.1/cpp/include/qeccore/keyed_rng.hpp +119 -0
  61. xtim-4.2.1/cpp/include/qeccore/noise_chain.hpp +186 -0
  62. xtim-4.2.1/cpp/include/qeccore/normal_form.hpp +109 -0
  63. xtim-4.2.1/cpp/include/qeccore/normalize.hpp +97 -0
  64. xtim-4.2.1/cpp/include/qeccore/output_state.hpp +46 -0
  65. xtim-4.2.1/cpp/include/qeccore/parity_assemble.hpp +62 -0
  66. xtim-4.2.1/cpp/include/qeccore/parity_support.hpp +61 -0
  67. xtim-4.2.1/cpp/include/qeccore/pauli.hpp +45 -0
  68. xtim-4.2.1/cpp/include/qeccore/pauli_diagonalize.hpp +49 -0
  69. xtim-4.2.1/cpp/include/qeccore/pauli_kernels.hpp +236 -0
  70. xtim-4.2.1/cpp/include/qeccore/pauli_rotation_form.hpp +106 -0
  71. xtim-4.2.1/cpp/include/qeccore/plan_arena.hpp +220 -0
  72. xtim-4.2.1/cpp/include/qeccore/plan_class.hpp +40 -0
  73. xtim-4.2.1/cpp/include/qeccore/port_contract.hpp +59 -0
  74. xtim-4.2.1/cpp/include/qeccore/ppr_residual.hpp +48 -0
  75. xtim-4.2.1/cpp/include/qeccore/propagation_table.hpp +212 -0
  76. xtim-4.2.1/cpp/include/qeccore/ray_stab_bits.hpp +58 -0
  77. xtim-4.2.1/cpp/include/qeccore/record_fidelity.hpp +250 -0
  78. xtim-4.2.1/cpp/include/qeccore/record_general.hpp +77 -0
  79. xtim-4.2.1/cpp/include/qeccore/record_signs.hpp +54 -0
  80. xtim-4.2.1/cpp/include/qeccore/record_space_b.hpp +84 -0
  81. xtim-4.2.1/cpp/include/qeccore/record_table.hpp +288 -0
  82. xtim-4.2.1/cpp/include/qeccore/ref_io.hpp +194 -0
  83. xtim-4.2.1/cpp/include/qeccore/residue_projection.hpp +108 -0
  84. xtim-4.2.1/cpp/include/qeccore/resolve_branches.hpp +78 -0
  85. xtim-4.2.1/cpp/include/qeccore/rf_pauli_expansion.hpp +81 -0
  86. xtim-4.2.1/cpp/include/qeccore/run_stim.hpp +120 -0
  87. xtim-4.2.1/cpp/include/qeccore/sampler.hpp +207 -0
  88. xtim-4.2.1/cpp/include/qeccore/scratch.hpp +48 -0
  89. xtim-4.2.1/cpp/include/qeccore/stab_affine.hpp +304 -0
  90. xtim-4.2.1/cpp/include/qeccore/stab_disentangle.hpp +60 -0
  91. xtim-4.2.1/cpp/include/qeccore/stab_generators.hpp +10 -0
  92. xtim-4.2.1/cpp/include/qeccore/stab_overlap.hpp +50 -0
  93. xtim-4.2.1/cpp/include/qeccore/stab_state.hpp +36 -0
  94. xtim-4.2.1/cpp/include/qeccore/state_budget.hpp +219 -0
  95. xtim-4.2.1/cpp/include/qeccore/stim_parse.hpp +69 -0
  96. xtim-4.2.1/cpp/include/qeccore/term_residual.hpp +241 -0
  97. xtim-4.2.1/cpp/include/qeccore/thread_pool.hpp +61 -0
  98. xtim-4.2.1/cpp/include/qeccore/twirl_kernel.hpp +632 -0
  99. xtim-4.2.1/cpp/include/qeccore/twirl_planes.hpp +387 -0
  100. xtim-4.2.1/cpp/include/qeccore/twirl_rotation.hpp +284 -0
  101. xtim-4.2.1/cpp/include/qeccore/twirl_sampler.hpp +905 -0
  102. xtim-4.2.1/cpp/include/qeccore/visibility.hpp +16 -0
  103. xtim-4.2.1/cpp/include/qeccore/xdem_file.hpp +102 -0
  104. xtim-4.2.1/cpp/include/qeccore/xdem_lean.hpp +141 -0
  105. xtim-4.2.1/cpp/include/qeccore/xdem_sampler.hpp +761 -0
  106. xtim-4.2.1/cpp/include/qeccore/xdem_writer.hpp +349 -0
  107. xtim-4.2.1/cpp/src/bare_state_memo.cpp +371 -0
  108. xtim-4.2.1/cpp/src/bitmat.cpp +42 -0
  109. xtim-4.2.1/cpp/src/born_law_coset.cpp +545 -0
  110. xtim-4.2.1/cpp/src/branch_scaffold.cpp +265 -0
  111. xtim-4.2.1/cpp/src/branch_table.cpp +103 -0
  112. xtim-4.2.1/cpp/src/canonical_stab_sum.cpp +908 -0
  113. xtim-4.2.1/cpp/src/carried_compose.cpp +723 -0
  114. xtim-4.2.1/cpp/src/clifford_conjugate.cpp +14 -0
  115. xtim-4.2.1/cpp/src/clifford_frames.cpp +984 -0
  116. xtim-4.2.1/cpp/src/clifford_op.cpp +140 -0
  117. xtim-4.2.1/cpp/src/clifford_tableau.cpp +799 -0
  118. xtim-4.2.1/cpp/src/coherentize_feedback.cpp +835 -0
  119. xtim-4.2.1/cpp/src/deferral.cpp +254 -0
  120. xtim-4.2.1/cpp/src/dem_decompose.cpp +187 -0
  121. xtim-4.2.1/cpp/src/dem_export.cpp +3991 -0
  122. xtim-4.2.1/cpp/src/dem_pe_per_shot.cpp +698 -0
  123. xtim-4.2.1/cpp/src/dem_solve_channel.cpp +424 -0
  124. xtim-4.2.1/cpp/src/diag_error_sampler.cpp +189 -0
  125. xtim-4.2.1/cpp/src/exact_scope.cpp +23 -0
  126. xtim-4.2.1/cpp/src/factored_active_block.cpp +276 -0
  127. xtim-4.2.1/cpp/src/factored_stab.cpp +371 -0
  128. xtim-4.2.1/cpp/src/fast_todd.cpp +346 -0
  129. xtim-4.2.1/cpp/src/fault_record_law.cpp +95 -0
  130. xtim-4.2.1/cpp/src/feedback.cpp +308 -0
  131. xtim-4.2.1/cpp/src/frame.cpp +596 -0
  132. xtim-4.2.1/cpp/src/framed_sampler.cpp +2106 -0
  133. xtim-4.2.1/cpp/src/framed_superposition.cpp +1378 -0
  134. xtim-4.2.1/cpp/src/noise_chain.cpp +188 -0
  135. xtim-4.2.1/cpp/src/normal_form.cpp +351 -0
  136. xtim-4.2.1/cpp/src/normalize.cpp +150 -0
  137. xtim-4.2.1/cpp/src/output_state.cpp +441 -0
  138. xtim-4.2.1/cpp/src/parity_assemble.cpp +416 -0
  139. xtim-4.2.1/cpp/src/parity_support.cpp +96 -0
  140. xtim-4.2.1/cpp/src/pauli.cpp +56 -0
  141. xtim-4.2.1/cpp/src/pauli_diagonalize.cpp +250 -0
  142. xtim-4.2.1/cpp/src/pauli_rotation_form.cpp +533 -0
  143. xtim-4.2.1/cpp/src/plan_arena.cpp +403 -0
  144. xtim-4.2.1/cpp/src/plan_class.cpp +26 -0
  145. xtim-4.2.1/cpp/src/port_contract.cpp +206 -0
  146. xtim-4.2.1/cpp/src/ppr_residual.cpp +362 -0
  147. xtim-4.2.1/cpp/src/propagation_table.cpp +855 -0
  148. xtim-4.2.1/cpp/src/record_fidelity.cpp +3955 -0
  149. xtim-4.2.1/cpp/src/record_general.cpp +174 -0
  150. xtim-4.2.1/cpp/src/record_signs.cpp +103 -0
  151. xtim-4.2.1/cpp/src/record_space_b.cpp +467 -0
  152. xtim-4.2.1/cpp/src/record_table.cpp +280 -0
  153. xtim-4.2.1/cpp/src/record_table_internal.hpp +250 -0
  154. xtim-4.2.1/cpp/src/ref_io.cpp +823 -0
  155. xtim-4.2.1/cpp/src/ref_overlap.cpp +145 -0
  156. xtim-4.2.1/cpp/src/reference_records.cpp +147 -0
  157. xtim-4.2.1/cpp/src/residue_projection.cpp +134 -0
  158. xtim-4.2.1/cpp/src/resolve_branches.cpp +521 -0
  159. xtim-4.2.1/cpp/src/rf_pauli_expansion.cpp +377 -0
  160. xtim-4.2.1/cpp/src/run_stim.cpp +301 -0
  161. xtim-4.2.1/cpp/src/sampler.cpp +1086 -0
  162. xtim-4.2.1/cpp/src/stab_affine.cpp +1186 -0
  163. xtim-4.2.1/cpp/src/stab_affine_internal.hpp +25 -0
  164. xtim-4.2.1/cpp/src/stab_disentangle.cpp +284 -0
  165. xtim-4.2.1/cpp/src/stab_generators.cpp +259 -0
  166. xtim-4.2.1/cpp/src/stab_overlap.cpp +118 -0
  167. xtim-4.2.1/cpp/src/state_budget.cpp +148 -0
  168. xtim-4.2.1/cpp/src/stim_emit.cpp +1127 -0
  169. xtim-4.2.1/cpp/src/stim_emit_internal.hpp +42 -0
  170. xtim-4.2.1/cpp/src/stim_parse.cpp +355 -0
  171. xtim-4.2.1/cpp/src/term_residual.cpp +852 -0
  172. xtim-4.2.1/cpp/src/thread_pool.cpp +171 -0
  173. xtim-4.2.1/cpp/src/twirl_kernel_sampler.cpp +964 -0
  174. xtim-4.2.1/cpp/src/twirl_law.cpp +819 -0
  175. xtim-4.2.1/cpp/src/twirl_law_internal.hpp +185 -0
  176. xtim-4.2.1/cpp/src/twirl_normal_form.cpp +170 -0
  177. xtim-4.2.1/cpp/src/twirl_planes.cpp +1121 -0
  178. xtim-4.2.1/cpp/src/twirl_rotation.cpp +725 -0
  179. xtim-4.2.1/cpp/src/twirl_sampler.cpp +1475 -0
  180. xtim-4.2.1/cpp/src/twirl_sampler_er.cpp +140 -0
  181. xtim-4.2.1/cpp/src/twirl_sampler_fam.cpp +3198 -0
  182. xtim-4.2.1/cpp/src/twirl_sampler_impl.inc.hpp +1622 -0
  183. xtim-4.2.1/cpp/src/twirl_sampler_rot.cpp +327 -0
  184. xtim-4.2.1/cpp/src/twirl_sampler_rotloop.inc.hpp +125 -0
  185. xtim-4.2.1/cpp/src/twirl_sampler_rotw.cpp +280 -0
  186. xtim-4.2.1/cpp/src/twirl_sampler_runw.inc.hpp +569 -0
  187. xtim-4.2.1/cpp/src/twirl_sampler_threads.cpp +876 -0
  188. xtim-4.2.1/cpp/src/twirl_signs.cpp +98 -0
  189. xtim-4.2.1/cpp/src/xdem_file.cpp +1083 -0
  190. xtim-4.2.1/cpp/src/xdem_lean.cpp +809 -0
  191. xtim-4.2.1/cpp/src/xdem_sampler.cpp +5246 -0
  192. xtim-4.2.1/cpp/src/xdem_writer.cpp +1504 -0
  193. xtim-4.2.1/docs/README.md +18 -0
  194. xtim-4.2.1/docs/branch_frames.md +297 -0
  195. xtim-4.2.1/docs/frame_cosets_cpp.md +142 -0
  196. xtim-4.2.1/docs/performance.md +452 -0
  197. xtim-4.2.1/docs/twirl_record_sampler.md +78 -0
  198. xtim-4.2.1/docs/usage.md +373 -0
  199. xtim-4.2.1/docs/xdem.md +642 -0
  200. xtim-4.2.1/docs/xtim_forced_faults.md +205 -0
  201. xtim-4.2.1/docs/xtim_postselected_logical_error_rate.md +57 -0
  202. xtim-4.2.1/docs/xtim_simulable_class.md +88 -0
  203. xtim-4.2.1/examples/01_quickstart_distillation.py +38 -0
  204. xtim-4.2.1/examples/02_cultivation_d3.py +32 -0
  205. xtim-4.2.1/examples/03_color5_postselected.py +35 -0
  206. xtim-4.2.1/examples/04_h_cultivation.py +32 -0
  207. xtim-4.2.1/examples/05_ccz_cube.py +45 -0
  208. xtim-4.2.1/examples/06_code_switching.py +36 -0
  209. xtim-4.2.1/examples/07_refusals.py +64 -0
  210. xtim-4.2.1/examples/08_bring_your_own.py +60 -0
  211. xtim-4.2.1/examples/09_decoded_fidelity.py +56 -0
  212. xtim-4.2.1/examples/10_gpu_estimate.py +35 -0
  213. xtim-4.2.1/examples/README.md +37 -0
  214. xtim-4.2.1/examples/ch_cultivation.stim +40 -0
  215. xtim-4.2.1/examples/code_switching_faithful.stim +274 -0
  216. xtim-4.2.1/examples/code_switching_rate.stim +268 -0
  217. xtim-4.2.1/examples/color5_cultivation.stim +505 -0
  218. xtim-4.2.1/examples/cube_ccz.stim +49 -0
  219. xtim-4.2.1/examples/cultivation_d3_faithful.stim +218 -0
  220. xtim-4.2.1/examples/cultivation_d3_rate.stim +216 -0
  221. xtim-4.2.1/examples/cultivation_d5.stim +561 -0
  222. xtim-4.2.1/examples/distillation_15_1_3.stim +53 -0
  223. xtim-4.2.1/examples/miniature_oracle.stim +68 -0
  224. xtim-4.2.1/examples/xdem/README.md +68 -0
  225. xtim-4.2.1/examples/xdem/ccz_toy.stim +13 -0
  226. xtim-4.2.1/examples/xdem/ccz_toy.xdem +14 -0
  227. xtim-4.2.1/examples/xdem/ccz_toy_obs.stim +13 -0
  228. xtim-4.2.1/examples/xdem/ccz_toy_obs.xdem +14 -0
  229. xtim-4.2.1/examples/xdem/ccz_toy_obs_p5.stim +13 -0
  230. xtim-4.2.1/examples/xdem/ccz_toy_obs_p5.xdem +14 -0
  231. xtim-4.2.1/examples/xdem/ch_cultivation.stim +40 -0
  232. xtim-4.2.1/examples/xdem/ch_cultivation.xdem +14 -0
  233. xtim-4.2.1/examples/xdem/code_switching_faithful_noobs.stim +274 -0
  234. xtim-4.2.1/examples/xdem/code_switching_faithful_noobs.xdem +686 -0
  235. xtim-4.2.1/examples/xdem/code_switching_rate_noobs.stim +268 -0
  236. xtim-4.2.1/examples/xdem/code_switching_rate_noobs.xdem +318 -0
  237. xtim-4.2.1/examples/xdem/color5_cultivation.stim +505 -0
  238. xtim-4.2.1/examples/xdem/color5_cultivation.xdem +3316 -0
  239. xtim-4.2.1/examples/xdem/cultivation_d3_faithful.stim +218 -0
  240. xtim-4.2.1/examples/xdem/cultivation_d3_faithful.xdem +487 -0
  241. xtim-4.2.1/examples/xdem/cultivation_d3_rate.stim +216 -0
  242. xtim-4.2.1/examples/xdem/cultivation_d3_rate.xdem +366 -0
  243. xtim-4.2.1/examples/xdem/cultivation_d5.stim +561 -0
  244. xtim-4.2.1/examples/xdem/cultivation_d5.xdem +3316 -0
  245. xtim-4.2.1/examples/xdem/distillation_15_1_3.stim +53 -0
  246. xtim-4.2.1/examples/xdem/distillation_15_1_3.xdem +15 -0
  247. xtim-4.2.1/examples/xdem/distillation_15_1_3_gatenoise.stim +69 -0
  248. xtim-4.2.1/examples/xdem/distillation_15_1_3_gatenoise.xdem +167 -0
  249. xtim-4.2.1/examples/xdem/ex422_obs.stim +71 -0
  250. xtim-4.2.1/examples/xdem/ex422_obs.xdem +12 -0
  251. xtim-4.2.1/examples/xdem/miniature_oracle.stim +68 -0
  252. xtim-4.2.1/examples/xdem/miniature_oracle.xdem +33 -0
  253. xtim-4.2.1/examples/xdem/regenerate.py +26 -0
  254. xtim-4.2.1/examples/xdem/rm15rep.stim +73 -0
  255. xtim-4.2.1/examples/xdem/rm15rep.xdem +75 -0
  256. xtim-4.2.1/examples/xdem/tdag_cycle.stim +12 -0
  257. xtim-4.2.1/examples/xdem/tdag_cycle.xdem +6 -0
  258. xtim-4.2.1/examples/xdem/toy2obs.stim +34 -0
  259. xtim-4.2.1/examples/xdem/toy2obs.xdem +29 -0
  260. xtim-4.2.1/pyproject.toml +181 -0
  261. xtim-4.2.1/setup.cfg +4 -0
  262. xtim-4.2.1/setup.py +176 -0
  263. xtim-4.2.1/smoke_test.py +47 -0
  264. xtim-4.2.1/tests/_branch_oracle.py +270 -0
  265. xtim-4.2.1/tests/_carried_oracle.py +114 -0
  266. xtim-4.2.1/tests/_dem_compare.py +83 -0
  267. xtim-4.2.1/tests/_dem_parse.py +24 -0
  268. xtim-4.2.1/tests/_dense_oracle.py +468 -0
  269. xtim-4.2.1/tests/_exact.py +10 -0
  270. xtim-4.2.1/tests/_exact_engine.py +261 -0
  271. xtim-4.2.1/tests/_exact_forced.py +289 -0
  272. xtim-4.2.1/tests/_exact_law.py +167 -0
  273. xtim-4.2.1/tests/_exact_reference.py +200 -0
  274. xtim-4.2.1/tests/_fake_cupy.py +247 -0
  275. xtim-4.2.1/tests/_forced_oracle.py +347 -0
  276. xtim-4.2.1/tests/_frames.py +753 -0
  277. xtim-4.2.1/tests/_frames_contract.py +534 -0
  278. xtim-4.2.1/tests/_gpu_compare.py +175 -0
  279. xtim-4.2.1/tests/_gpu_ref.py +182 -0
  280. xtim-4.2.1/tests/_ja_fixtures.py +338 -0
  281. xtim-4.2.1/tests/_n1_reference.py +179 -0
  282. xtim-4.2.1/tests/_nc_oracle.py +235 -0
  283. xtim-4.2.1/tests/_orig_examples.py +23 -0
  284. xtim-4.2.1/tests/_output_state_oracle.py +181 -0
  285. xtim-4.2.1/tests/_private.py +40 -0
  286. xtim-4.2.1/tests/_public.py +96 -0
  287. xtim-4.2.1/tests/_record_law_x.py +248 -0
  288. xtim-4.2.1/tests/_record_oracle.py +331 -0
  289. xtim-4.2.1/tests/_record_oracle_mixed.py +204 -0
  290. xtim-4.2.1/tests/_register_oracle.py +67 -0
  291. xtim-4.2.1/tests/_traj_oracle.py +154 -0
  292. xtim-4.2.1/tests/_xdem_circuits.py +111 -0
  293. xtim-4.2.1/tests/_xdem_engine.py +687 -0
  294. xtim-4.2.1/tests/_xdem_fuzz_gen.py +560 -0
  295. xtim-4.2.1/tests/_xdem_lean_fuzz.py +263 -0
  296. xtim-4.2.1/tests/_xdem_model.py +534 -0
  297. xtim-4.2.1/tests/_xdem_synth.py +162 -0
  298. xtim-4.2.1/tests/conftest.py +119 -0
  299. xtim-4.2.1/tests/data/ladder_settle/gen_cases.py +99 -0
  300. xtim-4.2.1/tests/data/ladder_settle/gen_pairs.py +98 -0
  301. xtim-4.2.1/tests/exact_sv.py +709 -0
  302. xtim-4.2.1/tests/s2b/test_sigma_joint_law.py +199 -0
  303. xtim-4.2.1/tests/test_api.py +282 -0
  304. xtim-4.2.1/tests/test_audit_frontend.py +269 -0
  305. xtim-4.2.1/tests/test_bare_state_coset_family.py +90 -0
  306. xtim-4.2.1/tests/test_bare_state_memo.py +272 -0
  307. xtim-4.2.1/tests/test_barrier_refusal.py +137 -0
  308. xtim-4.2.1/tests/test_bench_replay_hook_absent.py +10 -0
  309. xtim-4.2.1/tests/test_bloat_removed_names.py +115 -0
  310. xtim-4.2.1/tests/test_born_fastpath.py +113 -0
  311. xtim-4.2.1/tests/test_born_trie.py +215 -0
  312. xtim-4.2.1/tests/test_branch_frames.py +546 -0
  313. xtim-4.2.1/tests/test_caps1_widths.py +219 -0
  314. xtim-4.2.1/tests/test_caps2_widths.py +42 -0
  315. xtim-4.2.1/tests/test_carried_compose_frame_pin.py +91 -0
  316. xtim-4.2.1/tests/test_channel_support_atoms.py +185 -0
  317. xtim-4.2.1/tests/test_coin_stream_continuation.py +131 -0
  318. xtim-4.2.1/tests/test_compile_chi_guard.py +92 -0
  319. xtim-4.2.1/tests/test_compile_peak_memory.py +39 -0
  320. xtim-4.2.1/tests/test_compile_scaling.py +202 -0
  321. xtim-4.2.1/tests/test_compile_speed.py +118 -0
  322. xtim-4.2.1/tests/test_correlated_error.py +608 -0
  323. xtim-4.2.1/tests/test_coset_family_pauli.py +137 -0
  324. xtim-4.2.1/tests/test_deferral_liveness.py +131 -0
  325. xtim-4.2.1/tests/test_dem_ch.py +259 -0
  326. xtim-4.2.1/tests/test_dem_correlated_reads.py +468 -0
  327. xtim-4.2.1/tests/test_dem_diagonal_fallback.py +219 -0
  328. xtim-4.2.1/tests/test_dem_erasure.py +323 -0
  329. xtim-4.2.1/tests/test_dem_erasure_out.py +210 -0
  330. xtim-4.2.1/tests/test_dem_exact_oracle.py +70 -0
  331. xtim-4.2.1/tests/test_dem_expectation_frames.py +940 -0
  332. xtim-4.2.1/tests/test_dem_factored_law_golden.py +90 -0
  333. xtim-4.2.1/tests/test_dem_feedback.py +369 -0
  334. xtim-4.2.1/tests/test_dem_measurement_noise.py +396 -0
  335. xtim-4.2.1/tests/test_dem_output_frame_refusal.py +144 -0
  336. xtim-4.2.1/tests/test_dem_pe_per_shot.py +531 -0
  337. xtim-4.2.1/tests/test_dem_refusal_message.py +78 -0
  338. xtim-4.2.1/tests/test_determinism_signs.py +183 -0
  339. xtim-4.2.1/tests/test_diagnose_state_route.py +63 -0
  340. xtim-4.2.1/tests/test_early_reject.py +311 -0
  341. xtim-4.2.1/tests/test_env_levers_read_once.py +37 -0
  342. xtim-4.2.1/tests/test_exact_engine_audit_fixes.py +247 -0
  343. xtim-4.2.1/tests/test_exact_out_removed_names.py +127 -0
  344. xtim-4.2.1/tests/test_example_scripts.py +30 -0
  345. xtim-4.2.1/tests/test_expfix_dem_law.py +237 -0
  346. xtim-4.2.1/tests/test_expfix_frame_cosets.py +232 -0
  347. xtim-4.2.1/tests/test_expfix_python_caps.py +35 -0
  348. xtim-4.2.1/tests/test_expfix_removed_names.py +79 -0
  349. xtim-4.2.1/tests/test_explaw.py +312 -0
  350. xtim-4.2.1/tests/test_fcs_fixed_cost.py +112 -0
  351. xtim-4.2.1/tests/test_feedback_after_t.py +688 -0
  352. xtim-4.2.1/tests/test_feedback_oracle.py +110 -0
  353. xtim-4.2.1/tests/test_fid_speed.py +167 -0
  354. xtim-4.2.1/tests/test_fidelity_refusals.py +82 -0
  355. xtim-4.2.1/tests/test_fidorth.py +104 -0
  356. xtim-4.2.1/tests/test_forced_branches.py +281 -0
  357. xtim-4.2.1/tests/test_forced_golden.py +64 -0
  358. xtim-4.2.1/tests/test_forced_law.py +196 -0
  359. xtim-4.2.1/tests/test_forced_provenance.py +249 -0
  360. xtim-4.2.1/tests/test_forced_vs_sampler.py +245 -0
  361. xtim-4.2.1/tests/test_fp_contract.py +28 -0
  362. xtim-4.2.1/tests/test_frame_cosets_cpp.py +287 -0
  363. xtim-4.2.1/tests/test_frame_no_expand.py +90 -0
  364. xtim-4.2.1/tests/test_framed_harness_bindings.py +136 -0
  365. xtim-4.2.1/tests/test_frames_born_dec_refusal.py +36 -0
  366. xtim-4.2.1/tests/test_frames_contract.py +182 -0
  367. xtim-4.2.1/tests/test_gpu_api.py +217 -0
  368. xtim-4.2.1/tests/test_gpu_backend.py +503 -0
  369. xtim-4.2.1/tests/test_gpu_cuda.py +433 -0
  370. xtim-4.2.1/tests/test_gpu_docs.py +126 -0
  371. xtim-4.2.1/tests/test_gpu_estimate.py +479 -0
  372. xtim-4.2.1/tests/test_gpu_geo.py +347 -0
  373. xtim-4.2.1/tests/test_gpu_kernels.py +569 -0
  374. xtim-4.2.1/tests/test_gpu_launchloop.py +497 -0
  375. xtim-4.2.1/tests/test_gpu_lawfast.py +97 -0
  376. xtim-4.2.1/tests/test_gpu_lawtable.py +218 -0
  377. xtim-4.2.1/tests/test_gpu_metal.py +200 -0
  378. xtim-4.2.1/tests/test_gpu_multiword.py +217 -0
  379. xtim-4.2.1/tests/test_gpu_nostatus.py +178 -0
  380. xtim-4.2.1/tests/test_gpu_postselect.py +508 -0
  381. xtim-4.2.1/tests/test_gpu_robustness.py +526 -0
  382. xtim-4.2.1/tests/test_gpu_structure.py +379 -0
  383. xtim-4.2.1/tests/test_gpu_structure_mw.py +347 -0
  384. xtim-4.2.1/tests/test_gpu_tables.py +419 -0
  385. xtim-4.2.1/tests/test_if_refusal.py +133 -0
  386. xtim-4.2.1/tests/test_injection_prebake.py +58 -0
  387. xtim-4.2.1/tests/test_input_frame_mirror.py +244 -0
  388. xtim-4.2.1/tests/test_ja_branch.py +590 -0
  389. xtim-4.2.1/tests/test_ja_dual_run.py +376 -0
  390. xtim-4.2.1/tests/test_ja_family_law.py +285 -0
  391. xtim-4.2.1/tests/test_ja_frames.py +227 -0
  392. xtim-4.2.1/tests/test_ja_ppr_records.py +653 -0
  393. xtim-4.2.1/tests/test_ja_record_space_b.py +115 -0
  394. xtim-4.2.1/tests/test_ja_retention.py +641 -0
  395. xtim-4.2.1/tests/test_ja_term_key.py +562 -0
  396. xtim-4.2.1/tests/test_jb1_barrier_buffer.py +208 -0
  397. xtim-4.2.1/tests/test_jb1_branch_frame.py +208 -0
  398. xtim-4.2.1/tests/test_jb1_branch_identity.py +174 -0
  399. xtim-4.2.1/tests/test_jb1_branch_law.py +71 -0
  400. xtim-4.2.1/tests/test_jb1_branch_law_e0.py +377 -0
  401. xtim-4.2.1/tests/test_jb1_branch_readers.py +113 -0
  402. xtim-4.2.1/tests/test_jb1_c0hat.py +126 -0
  403. xtim-4.2.1/tests/test_jb1_carried_compose.py +239 -0
  404. xtim-4.2.1/tests/test_jb1_comdat_owner.py +62 -0
  405. xtim-4.2.1/tests/test_jb1_consumer_ladder.py +57 -0
  406. xtim-4.2.1/tests/test_jb1_engine_selection.py +313 -0
  407. xtim-4.2.1/tests/test_jb1_exact_counter.py +94 -0
  408. xtim-4.2.1/tests/test_jb1_fidelity_vs_production.py +84 -0
  409. xtim-4.2.1/tests/test_jb1_k2_arena.py +69 -0
  410. xtim-4.2.1/tests/test_jb1_materialize_speed.py +123 -0
  411. xtim-4.2.1/tests/test_jb1_noncommuting.py +460 -0
  412. xtim-4.2.1/tests/test_jb1_p2.py +35 -0
  413. xtim-4.2.1/tests/test_jb1_p4.py +182 -0
  414. xtim-4.2.1/tests/test_jb1_port_reference.py +161 -0
  415. xtim-4.2.1/tests/test_jb1_recb_fam.py +70 -0
  416. xtim-4.2.1/tests/test_jb1_record_api.py +231 -0
  417. xtim-4.2.1/tests/test_jb1_record_fidelity_l3.py +135 -0
  418. xtim-4.2.1/tests/test_jb1_removed_names.py +153 -0
  419. xtim-4.2.1/tests/test_jb1_tools.py +160 -0
  420. xtim-4.2.1/tests/test_jb2_absent.py +205 -0
  421. xtim-4.2.1/tests/test_jb2_kappa_rec_law.py +143 -0
  422. xtim-4.2.1/tests/test_jb2_tools.py +105 -0
  423. xtim-4.2.1/tests/test_keyed_streams.py +267 -0
  424. xtim-4.2.1/tests/test_ladder_settle.py +143 -0
  425. xtim-4.2.1/tests/test_lean_d1s1.py +365 -0
  426. xtim-4.2.1/tests/test_lean_d1s2.py +346 -0
  427. xtim-4.2.1/tests/test_lean_d1s3.py +124 -0
  428. xtim-4.2.1/tests/test_lean_l1.py +226 -0
  429. xtim-4.2.1/tests/test_lean_l2.py +36 -0
  430. xtim-4.2.1/tests/test_lean_l3.py +151 -0
  431. xtim-4.2.1/tests/test_lean_l4.py +136 -0
  432. xtim-4.2.1/tests/test_lean_l5.py +379 -0
  433. xtim-4.2.1/tests/test_lean_l6.py +50 -0
  434. xtim-4.2.1/tests/test_lean_l7.py +155 -0
  435. xtim-4.2.1/tests/test_lean_n1.py +478 -0
  436. xtim-4.2.1/tests/test_lean_p3sab.py +286 -0
  437. xtim-4.2.1/tests/test_lm1_lazy_bare.py +258 -0
  438. xtim-4.2.1/tests/test_lm2_lean_nondet.py +221 -0
  439. xtim-4.2.1/tests/test_lm3_sparse_sweep.py +305 -0
  440. xtim-4.2.1/tests/test_noframe_removed_names.py +18 -0
  441. xtim-4.2.1/tests/test_noise_frame_commutation.py +460 -0
  442. xtim-4.2.1/tests/test_output_qubits_grammar.py +46 -0
  443. xtim-4.2.1/tests/test_output_state_api.py +230 -0
  444. xtim-4.2.1/tests/test_output_state_oracle.py +313 -0
  445. xtim-4.2.1/tests/test_overlap_binding.py +78 -0
  446. xtim-4.2.1/tests/test_parser_stim_edges.py +139 -0
  447. xtim-4.2.1/tests/test_pauli_channel_order.py +194 -0
  448. xtim-4.2.1/tests/test_perf_glue.py +250 -0
  449. xtim-4.2.1/tests/test_plan_cache_ownership.py +42 -0
  450. xtim-4.2.1/tests/test_plan_class.py +44 -0
  451. xtim-4.2.1/tests/test_plan_payload_budget.py +260 -0
  452. xtim-4.2.1/tests/test_port_basic.py +423 -0
  453. xtim-4.2.1/tests/test_port_groups.py +463 -0
  454. xtim-4.2.1/tests/test_public_examples.py +42 -0
  455. xtim-4.2.1/tests/test_qw_d_lazy.py +108 -0
  456. xtim-4.2.1/tests/test_qw_e_dem.py +213 -0
  457. xtim-4.2.1/tests/test_qwc_rot_chunk.py +97 -0
  458. xtim-4.2.1/tests/test_readme_quickstart.py +57 -0
  459. xtim-4.2.1/tests/test_readme_snippets.py +47 -0
  460. xtim-4.2.1/tests/test_record_fidelity.py +260 -0
  461. xtim-4.2.1/tests/test_record_law_oracle.py +223 -0
  462. xtim-4.2.1/tests/test_record_layout.py +101 -0
  463. xtim-4.2.1/tests/test_record_report.py +232 -0
  464. xtim-4.2.1/tests/test_ref_battery_sizing.py +208 -0
  465. xtim-4.2.1/tests/test_refusal_design_inputs.py +98 -0
  466. xtim-4.2.1/tests/test_rf_retention.py +215 -0
  467. xtim-4.2.1/tests/test_rfref_correction.py +133 -0
  468. xtim-4.2.1/tests/test_rfref_route.py +344 -0
  469. xtim-4.2.1/tests/test_rotation_form_oracle.py +107 -0
  470. xtim-4.2.1/tests/test_s2_fillin_switch.py +98 -0
  471. xtim-4.2.1/tests/test_s2b_mechanisms.py +180 -0
  472. xtim-4.2.1/tests/test_s2b_r7.py +63 -0
  473. xtim-4.2.1/tests/test_s2b_readers.py +67 -0
  474. xtim-4.2.1/tests/test_s2b_record_law.py +200 -0
  475. xtim-4.2.1/tests/test_s2b_record_table.py +315 -0
  476. xtim-4.2.1/tests/test_s2b_removed_names.py +122 -0
  477. xtim-4.2.1/tests/test_s2b_route_identity.py +91 -0
  478. xtim-4.2.1/tests/test_s2b_state_equals_bits.py +80 -0
  479. xtim-4.2.1/tests/test_s2t10a_accounting.py +103 -0
  480. xtim-4.2.1/tests/test_s2t6_record_columns.py +207 -0
  481. xtim-4.2.1/tests/test_s2t7_wire_rows.py +260 -0
  482. xtim-4.2.1/tests/test_s5a_fast_retention.py +154 -0
  483. xtim-4.2.1/tests/test_s7_grep_gates.py +89 -0
  484. xtim-4.2.1/tests/test_s8_born_memo.py +62 -0
  485. xtim-4.2.1/tests/test_s8_busy.py +236 -0
  486. xtim-4.2.1/tests/test_s8_prep.py +57 -0
  487. xtim-4.2.1/tests/test_s8_rf_lambda.py +132 -0
  488. xtim-4.2.1/tests/test_s8_rf_route.py +107 -0
  489. xtim-4.2.1/tests/test_sampler_stream.py +59 -0
  490. xtim-4.2.1/tests/test_scale_noise_measurements.py +106 -0
  491. xtim-4.2.1/tests/test_selfcheck_once.py +154 -0
  492. xtim-4.2.1/tests/test_set_seed_equivalence.py +245 -0
  493. xtim-4.2.1/tests/test_small_items.py +296 -0
  494. xtim-4.2.1/tests/test_state_budget.py +483 -0
  495. xtim-4.2.1/tests/test_termroute_a.py +178 -0
  496. xtim-4.2.1/tests/test_threads.py +900 -0
  497. xtim-4.2.1/tests/test_tlc_scratch_lifetime.py +28 -0
  498. xtim-4.2.1/tests/test_twirl.py +51 -0
  499. xtim-4.2.1/tests/test_twirl_audit_sampling.py +404 -0
  500. xtim-4.2.1/tests/test_twirl_decision_detector_sampler.py +435 -0
  501. xtim-4.2.1/tests/test_twirl_diagnostics.py +311 -0
  502. xtim-4.2.1/tests/test_twirl_factory_kappa.py +77 -0
  503. xtim-4.2.1/tests/test_twirl_feedback_semantics.py +536 -0
  504. xtim-4.2.1/tests/test_twirl_retained_records.py +291 -0
  505. xtim-4.2.1/tests/test_twirl_routes.py +98 -0
  506. xtim-4.2.1/tests/test_version_consistency.py +69 -0
  507. xtim-4.2.1/tests/test_wide_channel_rows.py +93 -0
  508. xtim-4.2.1/tests/test_without_noise.py +62 -0
  509. xtim-4.2.1/tests/test_xdem_api.py +749 -0
  510. xtim-4.2.1/tests/test_xdem_canonical.py +189 -0
  511. xtim-4.2.1/tests/test_xdem_ch.py +237 -0
  512. xtim-4.2.1/tests/test_xdem_cross_route.py +194 -0
  513. xtim-4.2.1/tests/test_xdem_engine_loop.py +324 -0
  514. xtim-4.2.1/tests/test_xdem_examples.py +139 -0
  515. xtim-4.2.1/tests/test_xdem_export.py +513 -0
  516. xtim-4.2.1/tests/test_xdem_file.py +278 -0
  517. xtim-4.2.1/tests/test_xdem_fuzz.py +495 -0
  518. xtim-4.2.1/tests/test_xdem_graph_law.py +286 -0
  519. xtim-4.2.1/tests/test_xdem_lean.py +637 -0
  520. xtim-4.2.1/tests/test_xdem_lines.py +307 -0
  521. xtim-4.2.1/tests/test_xdem_model_oracle.py +112 -0
  522. xtim-4.2.1/tests/test_xdem_multiword.py +174 -0
  523. xtim-4.2.1/tests/test_xdem_optimal.py +600 -0
  524. xtim-4.2.1/tests/test_xdem_oracle_configs.py +541 -0
  525. xtim-4.2.1/tests/test_xdem_safety.py +23 -0
  526. xtim-4.2.1/tests/test_xdem_sampler.py +556 -0
  527. xtim-4.2.1/tests/test_xdem_scaling.py +229 -0
  528. xtim-4.2.1/tests/test_xdem_status_c.py +157 -0
  529. xtim-4.2.1/tests/test_xdem_writer.py +98 -0
  530. xtim-4.2.1/tests/test_zero_alloc_per_shot.py +147 -0
  531. xtim-4.2.1/xtim/__init__.py +144 -0
  532. xtim-4.2.1/xtim/__main__.py +260 -0
  533. xtim-4.2.1/xtim/_diagnostics.py +119 -0
  534. xtim-4.2.1/xtim/_exact_scope.py +38 -0
  535. xtim-4.2.1/xtim/_examples/ch_cultivation.stim +40 -0
  536. xtim-4.2.1/xtim/_examples/code_switching_faithful.stim +274 -0
  537. xtim-4.2.1/xtim/_examples/code_switching_rate.stim +268 -0
  538. xtim-4.2.1/xtim/_examples/color5_cultivation.stim +505 -0
  539. xtim-4.2.1/xtim/_examples/cube_ccz.stim +49 -0
  540. xtim-4.2.1/xtim/_examples/cultivation_d3_faithful.stim +218 -0
  541. xtim-4.2.1/xtim/_examples/cultivation_d3_rate.stim +216 -0
  542. xtim-4.2.1/xtim/_examples/cultivation_d5.stim +561 -0
  543. xtim-4.2.1/xtim/_examples/distillation_15_1_3.stim +53 -0
  544. xtim-4.2.1/xtim/_examples/miniature_oracle.stim +68 -0
  545. xtim-4.2.1/xtim/_noise.py +94 -0
  546. xtim-4.2.1/xtim/_record_groups.py +88 -0
  547. xtim-4.2.1/xtim/circuit.py +1056 -0
  548. xtim-4.2.1/xtim/errors.py +472 -0
  549. xtim-4.2.1/xtim/examples.py +87 -0
  550. xtim-4.2.1/xtim/fidelity_helpers.py +184 -0
  551. xtim-4.2.1/xtim/gpu/__init__.py +81 -0
  552. xtim-4.2.1/xtim/gpu/_stubs.py +119 -0
  553. xtim-4.2.1/xtim/gpu/backend.py +596 -0
  554. xtim-4.2.1/xtim/gpu/cuda.py +225 -0
  555. xtim-4.2.1/xtim/gpu/launch.py +51 -0
  556. xtim-4.2.1/xtim/gpu/metal.py +213 -0
  557. xtim-4.2.1/xtim/gpu/structure.py +406 -0
  558. xtim-4.2.1/xtim/gpu/tables.py +891 -0
  559. xtim-4.2.1/xtim/gpu/xdem_kernels.h +3210 -0
  560. xtim-4.2.1/xtim/ler.py +280 -0
  561. xtim-4.2.1/xtim/output_helpers.py +131 -0
  562. xtim-4.2.1/xtim/port.py +707 -0
  563. xtim-4.2.1/xtim/py.typed +1 -0
  564. xtim-4.2.1/xtim/record_fidelity.py +148 -0
  565. xtim-4.2.1/xtim/twirl.py +796 -0
  566. xtim-4.2.1/xtim/xdem.py +816 -0
  567. xtim-4.2.1/xtim.egg-info/PKG-INFO +108 -0
  568. xtim-4.2.1/xtim.egg-info/SOURCES.txt +569 -0
  569. xtim-4.2.1/xtim.egg-info/dependency_links.txt +1 -0
  570. xtim-4.2.1/xtim.egg-info/requires.txt +24 -0
  571. xtim-4.2.1/xtim.egg-info/top_level.txt +1 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.