fatqat 0.1.0a1__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 (440) hide show
  1. fatqat-0.1.0a1/.github/PULL_REQUEST_TEMPLATE.md +29 -0
  2. fatqat-0.1.0a1/.github/workflows/build.yaml +70 -0
  3. fatqat-0.1.0a1/.github/workflows/lint.yml +43 -0
  4. fatqat-0.1.0a1/.github/workflows/tests.yml +52 -0
  5. fatqat-0.1.0a1/.gitignore +28 -0
  6. fatqat-0.1.0a1/.readthedocs.yaml +16 -0
  7. fatqat-0.1.0a1/AGENTS.md +31 -0
  8. fatqat-0.1.0a1/CHANGELOG.md +19 -0
  9. fatqat-0.1.0a1/CODE_OF_CONDUCT.md +128 -0
  10. fatqat-0.1.0a1/CONTRIBUTING.md +198 -0
  11. fatqat-0.1.0a1/LICENSE +201 -0
  12. fatqat-0.1.0a1/PKG-INFO +164 -0
  13. fatqat-0.1.0a1/README.md +132 -0
  14. fatqat-0.1.0a1/conftest.py +12 -0
  15. fatqat-0.1.0a1/docs/compiler-executable-interface-design.md +189 -0
  16. fatqat-0.1.0a1/docs/compiler-executable-interface-plan.md +329 -0
  17. fatqat-0.1.0a1/docs/compiler-v0.3-design.md +297 -0
  18. fatqat-0.1.0a1/docs/mkdocs/README.md +186 -0
  19. fatqat-0.1.0a1/docs/mkdocs/en/api/atom-emulators.md +223 -0
  20. fatqat-0.1.0a1/docs/mkdocs/en/api/compiler.md +116 -0
  21. fatqat-0.1.0a1/docs/mkdocs/en/api/emulators/index.md +15 -0
  22. fatqat-0.1.0a1/docs/mkdocs/en/api/estimator.md +147 -0
  23. fatqat-0.1.0a1/docs/mkdocs/en/api/exceptions.md +66 -0
  24. fatqat-0.1.0a1/docs/mkdocs/en/api/experimental.md +36 -0
  25. fatqat-0.1.0a1/docs/mkdocs/en/api/implementation.md +114 -0
  26. fatqat-0.1.0a1/docs/mkdocs/en/api/index.md +37 -0
  27. fatqat-0.1.0a1/docs/mkdocs/en/api/interoperability/index.md +13 -0
  28. fatqat-0.1.0a1/docs/mkdocs/en/api/interoperability/openqasm.md +92 -0
  29. fatqat-0.1.0a1/docs/mkdocs/en/api/interoperability/qiskit.md +165 -0
  30. fatqat-0.1.0a1/docs/mkdocs/en/api/job.md +24 -0
  31. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/amplitude-damping.md +80 -0
  32. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/backend-support.md +100 -0
  33. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/custom-implementations.md +152 -0
  34. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/depolarizing.md +84 -0
  35. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/loss.md +63 -0
  36. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/model.md +245 -0
  37. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/pauli-channel.md +75 -0
  38. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/phase-damping.md +83 -0
  39. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/readout-confusion.md +99 -0
  40. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/thermal-relaxation.md +116 -0
  41. fatqat-0.1.0a1/docs/mkdocs/en/api/noise/transition-relaxation.md +122 -0
  42. fatqat-0.1.0a1/docs/mkdocs/en/api/noise.md +115 -0
  43. fatqat-0.1.0a1/docs/mkdocs/en/api/operations/atom-gates.md +53 -0
  44. fatqat-0.1.0a1/docs/mkdocs/en/api/operations/qubit-gates.md +421 -0
  45. fatqat-0.1.0a1/docs/mkdocs/en/api/operations/qudit-gates.md +214 -0
  46. fatqat-0.1.0a1/docs/mkdocs/en/api/operations/structural.md +62 -0
  47. fatqat-0.1.0a1/docs/mkdocs/en/api/operations.md +85 -0
  48. fatqat-0.1.0a1/docs/mkdocs/en/api/program.md +203 -0
  49. fatqat-0.1.0a1/docs/mkdocs/en/api/pulse-control/gate-realization.md +79 -0
  50. fatqat-0.1.0a1/docs/mkdocs/en/api/pulse-control/index.md +83 -0
  51. fatqat-0.1.0a1/docs/mkdocs/en/api/pulse-control/pulse-control.md +42 -0
  52. fatqat-0.1.0a1/docs/mkdocs/en/api/pulse-control/pulse-operation.md +52 -0
  53. fatqat-0.1.0a1/docs/mkdocs/en/api/pulse-control/sampled-waveform.md +42 -0
  54. fatqat-0.1.0a1/docs/mkdocs/en/api/pulse-emulator.md +430 -0
  55. fatqat-0.1.0a1/docs/mkdocs/en/api/registers.md +172 -0
  56. fatqat-0.1.0a1/docs/mkdocs/en/api/result.md +95 -0
  57. fatqat-0.1.0a1/docs/mkdocs/en/api/simulator.md +216 -0
  58. fatqat-0.1.0a1/docs/mkdocs/en/api/simulators/atom-array.md +121 -0
  59. fatqat-0.1.0a1/docs/mkdocs/en/api/simulators/index.md +39 -0
  60. fatqat-0.1.0a1/docs/mkdocs/en/api/simulators/sc-qubit.md +114 -0
  61. fatqat-0.1.0a1/docs/mkdocs/en/guide/compiler.md +143 -0
  62. fatqat-0.1.0a1/docs/mkdocs/en/guide/execution-models.md +189 -0
  63. fatqat-0.1.0a1/docs/mkdocs/en/guide/hamiltonian-emulation.md +123 -0
  64. fatqat-0.1.0a1/docs/mkdocs/en/guide/hardware-profile-simulation.md +221 -0
  65. fatqat-0.1.0a1/docs/mkdocs/en/guide/ideal-and-noisy.md +181 -0
  66. fatqat-0.1.0a1/docs/mkdocs/en/guide/index.md +90 -0
  67. fatqat-0.1.0a1/docs/mkdocs/en/guide/interoperability.md +157 -0
  68. fatqat-0.1.0a1/docs/mkdocs/en/guide/interpret-results.md +160 -0
  69. fatqat-0.1.0a1/docs/mkdocs/en/guide/neutral-atom-emulation.md +113 -0
  70. fatqat-0.1.0a1/docs/mkdocs/en/guide/performance.md +205 -0
  71. fatqat-0.1.0a1/docs/mkdocs/en/guide/program.md +298 -0
  72. fatqat-0.1.0a1/docs/mkdocs/en/guide/quickstart.md +191 -0
  73. fatqat-0.1.0a1/docs/mkdocs/en/guide/simulation.md +191 -0
  74. fatqat-0.1.0a1/docs/mkdocs/en/guide/transmon-emulation.md +327 -0
  75. fatqat-0.1.0a1/docs/mkdocs/en/guide/troubleshooting.md +166 -0
  76. fatqat-0.1.0a1/docs/mkdocs/en/guide/visualization.md +142 -0
  77. fatqat-0.1.0a1/docs/mkdocs/en/index.md +279 -0
  78. fatqat-0.1.0a1/docs/mkdocs/extensions/docstring_roles.py +67 -0
  79. fatqat-0.1.0a1/docs/mkdocs/figure-sources/_home_grover_plot.py +138 -0
  80. fatqat-0.1.0a1/docs/mkdocs/figure-sources/atom_loss_lifecycle.py +115 -0
  81. fatqat-0.1.0a1/docs/mkdocs/figure-sources/atom_pairing_lifecycle.py +122 -0
  82. fatqat-0.1.0a1/docs/mkdocs/figure-sources/guide_cards.py +295 -0
  83. fatqat-0.1.0a1/docs/mkdocs/figure-sources/home_grover_general.py +62 -0
  84. fatqat-0.1.0a1/docs/mkdocs/figure-sources/home_grover_program.py +87 -0
  85. fatqat-0.1.0a1/docs/mkdocs/figure-sources/home_grover_sc.py +105 -0
  86. fatqat-0.1.0a1/docs/mkdocs/figure-sources/home_grover_transmon.py +143 -0
  87. fatqat-0.1.0a1/docs/mkdocs/hooks.py +55 -0
  88. fatqat-0.1.0a1/docs/mkdocs/overrides/assets/stylesheets/home.css +189 -0
  89. fatqat-0.1.0a1/docs/mkdocs/overrides/assets/stylesheets/site.css +63 -0
  90. fatqat-0.1.0a1/docs/mkdocs/overrides/home.html +78 -0
  91. fatqat-0.1.0a1/docs/mkdocs/overrides/main.html +39 -0
  92. fatqat-0.1.0a1/docs/mkdocs/requirements.in +10 -0
  93. fatqat-0.1.0a1/docs/mkdocs/requirements.txt +142 -0
  94. fatqat-0.1.0a1/docs/mkdocs/tools/__init__.py +0 -0
  95. fatqat-0.1.0a1/docs/mkdocs/tools/build_tutorials.py +614 -0
  96. fatqat-0.1.0a1/docs/mkdocs/tools/render_guide_figures.py +310 -0
  97. fatqat-0.1.0a1/docs/mkdocs/tools/validate_content.py +184 -0
  98. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/algorithms/qnn-digits.md +292 -0
  99. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/algorithms/qubo-qaoa.md +568 -0
  100. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/algorithms/vqe-h2.md +388 -0
  101. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/foundations/bell-state.md +186 -0
  102. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/foundations/pulse-calibration.md +531 -0
  103. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/foundations/qutrit-assisted-toffoli.md +533 -0
  104. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/neutral-atom-physics/antiferromagnetic-chain.md +457 -0
  105. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/neutral-atom-physics/atom-array-ghz8.md +318 -0
  106. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/neutral-atom-physics/pxp-z2-revival.md +499 -0
  107. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/power-systems/islanding-model.md +654 -0
  108. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/en/power-systems/islanding-qaoa.md +892 -0
  109. fatqat-0.1.0a1/docs/mkdocs/tutorial-sources/gallery.yml +57 -0
  110. fatqat-0.1.0a1/mkdocs.yml +211 -0
  111. fatqat-0.1.0a1/pyproject.toml +135 -0
  112. fatqat-0.1.0a1/src/fatqat/__init__.py +79 -0
  113. fatqat-0.1.0a1/src/fatqat/_backends/__init__.py +16 -0
  114. fatqat-0.1.0a1/src/fatqat/_backends/_execution_analysis.py +52 -0
  115. fatqat-0.1.0a1/src/fatqat/_backends/backend_utils.py +265 -0
  116. fatqat-0.1.0a1/src/fatqat/_backends/engine_contract.py +116 -0
  117. fatqat-0.1.0a1/src/fatqat/_backends/steps.py +289 -0
  118. fatqat-0.1.0a1/src/fatqat/_backends/view_normalization.py +49 -0
  119. fatqat-0.1.0a1/src/fatqat/_expectation.py +361 -0
  120. fatqat-0.1.0a1/src/fatqat/_expectation_nb.py +118 -0
  121. fatqat-0.1.0a1/src/fatqat/_index_allocation.py +118 -0
  122. fatqat-0.1.0a1/src/fatqat/_parameter_binding.py +351 -0
  123. fatqat-0.1.0a1/src/fatqat/_program_graph.py +402 -0
  124. fatqat-0.1.0a1/src/fatqat/_pulse_values.py +82 -0
  125. fatqat-0.1.0a1/src/fatqat/_waveforms.py +124 -0
  126. fatqat-0.1.0a1/src/fatqat/compiler/__init__.py +65 -0
  127. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/__init__.py +38 -0
  128. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/sabre.py +421 -0
  129. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/sc_dag.py +99 -0
  130. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/LICENSE +21 -0
  131. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/__init__.py +12 -0
  132. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/api.py +116 -0
  133. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/architecture.py +34 -0
  134. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/architectures/default.json +54 -0
  135. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/architectures/scale_to_100.json +54 -0
  136. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/architectures/scale_to_500.json +54 -0
  137. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/placer.py +739 -0
  138. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/router.py +567 -0
  139. fatqat-0.1.0a1/src/fatqat/compiler/algorithms/zap/scheduler.py +143 -0
  140. fatqat-0.1.0a1/src/fatqat/compiler/core.py +182 -0
  141. fatqat-0.1.0a1/src/fatqat/compiler/dialects/__init__.py +88 -0
  142. fatqat-0.1.0a1/src/fatqat/compiler/dialects/logical_gate.py +123 -0
  143. fatqat-0.1.0a1/src/fatqat/compiler/dialects/na_gate.py +142 -0
  144. fatqat-0.1.0a1/src/fatqat/compiler/dialects/na_zoned.py +349 -0
  145. fatqat-0.1.0a1/src/fatqat/compiler/dialects/qasm.py +27 -0
  146. fatqat-0.1.0a1/src/fatqat/compiler/dialects/sc_gate.py +212 -0
  147. fatqat-0.1.0a1/src/fatqat/compiler/dialects/sc_native.py +220 -0
  148. fatqat-0.1.0a1/src/fatqat/compiler/errors.py +35 -0
  149. fatqat-0.1.0a1/src/fatqat/compiler/ir.py +58 -0
  150. fatqat-0.1.0a1/src/fatqat/compiler/passes/__init__.py +37 -0
  151. fatqat-0.1.0a1/src/fatqat/compiler/passes/na.py +196 -0
  152. fatqat-0.1.0a1/src/fatqat/compiler/passes/na_zap.py +419 -0
  153. fatqat-0.1.0a1/src/fatqat/compiler/passes/qasm.py +111 -0
  154. fatqat-0.1.0a1/src/fatqat/compiler/passes/sc.py +306 -0
  155. fatqat-0.1.0a1/src/fatqat/compiler/passes/sc_target.py +285 -0
  156. fatqat-0.1.0a1/src/fatqat/compiler/pipelines.py +310 -0
  157. fatqat-0.1.0a1/src/fatqat/compiler/simulator_bridge.py +145 -0
  158. fatqat-0.1.0a1/src/fatqat/compiler/visualization/__init__.py +5 -0
  159. fatqat-0.1.0a1/src/fatqat/compiler/visualization/na_zoned.py +369 -0
  160. fatqat-0.1.0a1/src/fatqat/emulator/__init__.py +69 -0
  161. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/__init__.py +19 -0
  162. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/backend.py +135 -0
  163. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/calibration.py +232 -0
  164. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/data/default_calibration.json +30 -0
  165. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/model.py +234 -0
  166. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/qutip_adapter.py +470 -0
  167. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/realization.py +133 -0
  168. fatqat-0.1.0a1/src/fatqat/emulator/_atom_3level/target.py +150 -0
  169. fatqat-0.1.0a1/src/fatqat/emulator/_core/__init__.py +5 -0
  170. fatqat-0.1.0a1/src/fatqat/emulator/_core/adapter_common.py +50 -0
  171. fatqat-0.1.0a1/src/fatqat/emulator/_core/backend.py +1086 -0
  172. fatqat-0.1.0a1/src/fatqat/emulator/_core/config.py +45 -0
  173. fatqat-0.1.0a1/src/fatqat/emulator/_core/control_discovery.py +42 -0
  174. fatqat-0.1.0a1/src/fatqat/emulator/_core/document_validation.py +64 -0
  175. fatqat-0.1.0a1/src/fatqat/emulator/_core/engine.py +498 -0
  176. fatqat-0.1.0a1/src/fatqat/emulator/_core/lindblad.py +154 -0
  177. fatqat-0.1.0a1/src/fatqat/emulator/_core/model_document.py +116 -0
  178. fatqat-0.1.0a1/src/fatqat/emulator/_core/outcome.py +51 -0
  179. fatqat-0.1.0a1/src/fatqat/emulator/_core/planning.py +419 -0
  180. fatqat-0.1.0a1/src/fatqat/emulator/_core/pulse.py +543 -0
  181. fatqat-0.1.0a1/src/fatqat/emulator/_core/scheduling.py +160 -0
  182. fatqat-0.1.0a1/src/fatqat/emulator/_core/target.py +171 -0
  183. fatqat-0.1.0a1/src/fatqat/emulator/_core/value_validation.py +38 -0
  184. fatqat-0.1.0a1/src/fatqat/emulator/_core/waveform.py +117 -0
  185. fatqat-0.1.0a1/src/fatqat/emulator/_model_catalog.py +60 -0
  186. fatqat-0.1.0a1/src/fatqat/emulator/_model_documents/__init__.py +3 -0
  187. fatqat-0.1.0a1/src/fatqat/emulator/_model_documents/atom2level_reference.json +31 -0
  188. fatqat-0.1.0a1/src/fatqat/emulator/_model_documents/atom3level_reference.json +25 -0
  189. fatqat-0.1.0a1/src/fatqat/emulator/_model_documents/transmon_reference.json +21 -0
  190. fatqat-0.1.0a1/src/fatqat/emulator/_model_documents/transmon_single.json +18 -0
  191. fatqat-0.1.0a1/src/fatqat/emulator/_qutip_boundaries.py +111 -0
  192. fatqat-0.1.0a1/src/fatqat/emulator/_qutip_runtime.py +89 -0
  193. fatqat-0.1.0a1/src/fatqat/emulator/atom_2level/__init__.py +13 -0
  194. fatqat-0.1.0a1/src/fatqat/emulator/atom_2level/backend.py +208 -0
  195. fatqat-0.1.0a1/src/fatqat/emulator/atom_2level/config.py +45 -0
  196. fatqat-0.1.0a1/src/fatqat/emulator/atom_2level/model.py +256 -0
  197. fatqat-0.1.0a1/src/fatqat/emulator/atom_2level/qutip_adapter.py +539 -0
  198. fatqat-0.1.0a1/src/fatqat/emulator/atom_2level/target.py +213 -0
  199. fatqat-0.1.0a1/src/fatqat/emulator/atom_arrangement.py +124 -0
  200. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/__init__.py +21 -0
  201. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/backend.py +141 -0
  202. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/calibration.py +245 -0
  203. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/data/default_calibration.json +38 -0
  204. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/grid_reference.py +312 -0
  205. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/model.py +343 -0
  206. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/qutip_adapter.py +607 -0
  207. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/realization.py +358 -0
  208. fatqat-0.1.0a1/src/fatqat/emulator/superconducting/target.py +189 -0
  209. fatqat-0.1.0a1/src/fatqat/errors.py +39 -0
  210. fatqat-0.1.0a1/src/fatqat/estimator.py +300 -0
  211. fatqat-0.1.0a1/src/fatqat/execution.py +23 -0
  212. fatqat-0.1.0a1/src/fatqat/implementation/__init__.py +27 -0
  213. fatqat-0.1.0a1/src/fatqat/implementation/_operation_registry.py +228 -0
  214. fatqat-0.1.0a1/src/fatqat/implementation/base.py +392 -0
  215. fatqat-0.1.0a1/src/fatqat/implementation/matrices.py +272 -0
  216. fatqat-0.1.0a1/src/fatqat/implementation/registry.py +111 -0
  217. fatqat-0.1.0a1/src/fatqat/job.py +59 -0
  218. fatqat-0.1.0a1/src/fatqat/logical_program.py +117 -0
  219. fatqat-0.1.0a1/src/fatqat/noise/__init__.py +45 -0
  220. fatqat-0.1.0a1/src/fatqat/noise/base.py +257 -0
  221. fatqat-0.1.0a1/src/fatqat/noise/catalog.py +646 -0
  222. fatqat-0.1.0a1/src/fatqat/noise/lindblad.py +171 -0
  223. fatqat-0.1.0a1/src/fatqat/noise/loss.py +50 -0
  224. fatqat-0.1.0a1/src/fatqat/noise/model.py +655 -0
  225. fatqat-0.1.0a1/src/fatqat/noise/nb.py +336 -0
  226. fatqat-0.1.0a1/src/fatqat/noise/readout.py +86 -0
  227. fatqat-0.1.0a1/src/fatqat/noise/registry.py +39 -0
  228. fatqat-0.1.0a1/src/fatqat/noise/relaxation.py +89 -0
  229. fatqat-0.1.0a1/src/fatqat/noise/transition_relaxation.py +194 -0
  230. fatqat-0.1.0a1/src/fatqat/observable.py +325 -0
  231. fatqat-0.1.0a1/src/fatqat/operations/__init__.py +97 -0
  232. fatqat-0.1.0a1/src/fatqat/operations/barrier.py +38 -0
  233. fatqat-0.1.0a1/src/fatqat/operations/base.py +114 -0
  234. fatqat-0.1.0a1/src/fatqat/operations/fixed_gates.py +273 -0
  235. fatqat-0.1.0a1/src/fatqat/operations/measurement.py +56 -0
  236. fatqat-0.1.0a1/src/fatqat/operations/pairing.py +70 -0
  237. fatqat-0.1.0a1/src/fatqat/operations/parametric_gates.py +263 -0
  238. fatqat-0.1.0a1/src/fatqat/operations/pulse.py +99 -0
  239. fatqat-0.1.0a1/src/fatqat/operations/put.py +45 -0
  240. fatqat-0.1.0a1/src/fatqat/operations/qudit_gates.py +355 -0
  241. fatqat-0.1.0a1/src/fatqat/operations/reset.py +44 -0
  242. fatqat-0.1.0a1/src/fatqat/parameters.py +144 -0
  243. fatqat-0.1.0a1/src/fatqat/program.py +684 -0
  244. fatqat-0.1.0a1/src/fatqat/qasm.py +1275 -0
  245. fatqat-0.1.0a1/src/fatqat/qiskit/__init__.py +25 -0
  246. fatqat-0.1.0a1/src/fatqat/qiskit/backend.py +256 -0
  247. fatqat-0.1.0a1/src/fatqat/qiskit/converter.py +393 -0
  248. fatqat-0.1.0a1/src/fatqat/qiskit/errors.py +23 -0
  249. fatqat-0.1.0a1/src/fatqat/qiskit/job.py +68 -0
  250. fatqat-0.1.0a1/src/fatqat/qiskit/provider.py +66 -0
  251. fatqat-0.1.0a1/src/fatqat/qiskit/result.py +145 -0
  252. fatqat-0.1.0a1/src/fatqat/qiskit/target.py +86 -0
  253. fatqat-0.1.0a1/src/fatqat/registers.py +499 -0
  254. fatqat-0.1.0a1/src/fatqat/resource_layout.py +104 -0
  255. fatqat-0.1.0a1/src/fatqat/result.py +431 -0
  256. fatqat-0.1.0a1/src/fatqat/simulator/__init__.py +19 -0
  257. fatqat-0.1.0a1/src/fatqat/simulator/_connectivity.py +46 -0
  258. fatqat-0.1.0a1/src/fatqat/simulator/_engine/__init__.py +19 -0
  259. fatqat-0.1.0a1/src/fatqat/simulator/_engine/base.py +171 -0
  260. fatqat-0.1.0a1/src/fatqat/simulator/_engine/nb.py +3001 -0
  261. fatqat-0.1.0a1/src/fatqat/simulator/_engine/np.py +980 -0
  262. fatqat-0.1.0a1/src/fatqat/simulator/_engine/parallel.py +105 -0
  263. fatqat-0.1.0a1/src/fatqat/simulator/_execution_contract.py +60 -0
  264. fatqat-0.1.0a1/src/fatqat/simulator/_execution_policy.py +267 -0
  265. fatqat-0.1.0a1/src/fatqat/simulator/fake_atom_array.py +385 -0
  266. fatqat-0.1.0a1/src/fatqat/simulator/fake_superconducting.py +492 -0
  267. fatqat-0.1.0a1/src/fatqat/simulator/planning.py +473 -0
  268. fatqat-0.1.0a1/src/fatqat/simulator/simulator.py +1990 -0
  269. fatqat-0.1.0a1/src/fatqat/visualization/__init__.py +10 -0
  270. fatqat-0.1.0a1/src/fatqat/visualization/_counts.py +112 -0
  271. fatqat-0.1.0a1/src/fatqat/visualization/_render_mpl.py +224 -0
  272. fatqat-0.1.0a1/src/fatqat/visualization/_style.py +113 -0
  273. fatqat-0.1.0a1/src/fatqat/visualization/_viewmodels.py +16 -0
  274. fatqat-0.1.0a1/src/fatqat/visualization/qutip_circuit.py +780 -0
  275. fatqat-0.1.0a1/tests/backends/test_backend_utils.py +208 -0
  276. fatqat-0.1.0a1/tests/backends/test_view_normalization.py +157 -0
  277. fatqat-0.1.0a1/tests/compiler/fixtures/zap_golden_trace.json +315 -0
  278. fatqat-0.1.0a1/tests/compiler/test_core.py +199 -0
  279. fatqat-0.1.0a1/tests/compiler/test_logical_lowering.py +132 -0
  280. fatqat-0.1.0a1/tests/compiler/test_logical_program_frontend.py +439 -0
  281. fatqat-0.1.0a1/tests/compiler/test_na_end_to_end.py +317 -0
  282. fatqat-0.1.0a1/tests/compiler/test_na_ir.py +110 -0
  283. fatqat-0.1.0a1/tests/compiler/test_na_normalization.py +310 -0
  284. fatqat-0.1.0a1/tests/compiler/test_na_pipeline.py +62 -0
  285. fatqat-0.1.0a1/tests/compiler/test_na_scalability.py +53 -0
  286. fatqat-0.1.0a1/tests/compiler/test_na_simulator_bridge.py +299 -0
  287. fatqat-0.1.0a1/tests/compiler/test_na_visualization.py +398 -0
  288. fatqat-0.1.0a1/tests/compiler/test_na_zoned_ir.py +300 -0
  289. fatqat-0.1.0a1/tests/compiler/test_pipeline.py +119 -0
  290. fatqat-0.1.0a1/tests/compiler/test_sabre_contract.py +67 -0
  291. fatqat-0.1.0a1/tests/compiler/test_sabre_routing.py +102 -0
  292. fatqat-0.1.0a1/tests/compiler/test_sc_dag.py +108 -0
  293. fatqat-0.1.0a1/tests/compiler/test_sc_ir.py +166 -0
  294. fatqat-0.1.0a1/tests/compiler/test_sc_native_ir.py +177 -0
  295. fatqat-0.1.0a1/tests/compiler/test_sc_normalization.py +165 -0
  296. fatqat-0.1.0a1/tests/compiler/test_sc_target_lowering.py +210 -0
  297. fatqat-0.1.0a1/tests/compiler/test_sc_target_pipeline.py +260 -0
  298. fatqat-0.1.0a1/tests/compiler/test_simulator_identity_contract.py +46 -0
  299. fatqat-0.1.0a1/tests/compiler/test_zap_adapter.py +323 -0
  300. fatqat-0.1.0a1/tests/compiler/test_zap_internal_api.py +107 -0
  301. fatqat-0.1.0a1/tests/compiler/test_zap_internal_compile.py +220 -0
  302. fatqat-0.1.0a1/tests/compiler/test_zap_packaging.py +121 -0
  303. fatqat-0.1.0a1/tests/compiler/test_zap_scheduler.py +84 -0
  304. fatqat-0.1.0a1/tests/docs/test_guide_cards.py +58 -0
  305. fatqat-0.1.0a1/tests/emulator/_core/test_backend_template.py +889 -0
  306. fatqat-0.1.0a1/tests/emulator/_core/test_direct_lowering.py +289 -0
  307. fatqat-0.1.0a1/tests/emulator/_core/test_engine.py +415 -0
  308. fatqat-0.1.0a1/tests/emulator/_core/test_family_contract.py +138 -0
  309. fatqat-0.1.0a1/tests/emulator/_core/test_implementation_map.py +205 -0
  310. fatqat-0.1.0a1/tests/emulator/_core/test_import_isolation.py +118 -0
  311. fatqat-0.1.0a1/tests/emulator/_core/test_model_document.py +51 -0
  312. fatqat-0.1.0a1/tests/emulator/_core/test_public_api.py +456 -0
  313. fatqat-0.1.0a1/tests/emulator/_core/test_pulse_block.py +83 -0
  314. fatqat-0.1.0a1/tests/emulator/_core/test_scheduling.py +85 -0
  315. fatqat-0.1.0a1/tests/emulator/_core/test_target.py +89 -0
  316. fatqat-0.1.0a1/tests/emulator/atom_2level/fixtures/atom_2level_reference.json +30 -0
  317. fatqat-0.1.0a1/tests/emulator/atom_2level/reference/__init__.py +1 -0
  318. fatqat-0.1.0a1/tests/emulator/atom_2level/reference/two_level_hamiltonian.py +103 -0
  319. fatqat-0.1.0a1/tests/emulator/atom_2level/test_backend.py +386 -0
  320. fatqat-0.1.0a1/tests/emulator/atom_2level/test_lowering.py +208 -0
  321. fatqat-0.1.0a1/tests/emulator/atom_2level/test_model.py +195 -0
  322. fatqat-0.1.0a1/tests/emulator/atom_2level/test_noise.py +339 -0
  323. fatqat-0.1.0a1/tests/emulator/atom_2level/test_physics.py +242 -0
  324. fatqat-0.1.0a1/tests/emulator/atom_2level/test_qutip_adapter.py +278 -0
  325. fatqat-0.1.0a1/tests/emulator/atom_2level/test_results.py +282 -0
  326. fatqat-0.1.0a1/tests/emulator/atom_2level/test_target.py +198 -0
  327. fatqat-0.1.0a1/tests/emulator/atom_2level/test_trajectories.py +197 -0
  328. fatqat-0.1.0a1/tests/emulator/atom_2level/test_waveform.py +81 -0
  329. fatqat-0.1.0a1/tests/emulator/atom_3level/fixtures/atom_3level_rb87_53s.json +24 -0
  330. fatqat-0.1.0a1/tests/emulator/atom_3level/fixtures/atom_3level_rb87_53s_lukin_2023_calibration.json +25 -0
  331. fatqat-0.1.0a1/tests/emulator/atom_3level/reference/__init__.py +1 -0
  332. fatqat-0.1.0a1/tests/emulator/atom_3level/reference/atom_3level_cz_reference.py +252 -0
  333. fatqat-0.1.0a1/tests/emulator/atom_3level/test_backend.py +725 -0
  334. fatqat-0.1.0a1/tests/emulator/atom_3level/test_calibration.py +120 -0
  335. fatqat-0.1.0a1/tests/emulator/atom_3level/test_direct_control.py +223 -0
  336. fatqat-0.1.0a1/tests/emulator/atom_3level/test_fidelity.py +172 -0
  337. fatqat-0.1.0a1/tests/emulator/atom_3level/test_model.py +158 -0
  338. fatqat-0.1.0a1/tests/emulator/atom_3level/test_noise.py +116 -0
  339. fatqat-0.1.0a1/tests/emulator/atom_3level/test_parallel_cz.py +68 -0
  340. fatqat-0.1.0a1/tests/emulator/atom_3level/test_qutip_adapter.py +405 -0
  341. fatqat-0.1.0a1/tests/emulator/atom_3level/test_realization.py +150 -0
  342. fatqat-0.1.0a1/tests/emulator/atom_3level/test_target.py +93 -0
  343. fatqat-0.1.0a1/tests/emulator/conftest.py +109 -0
  344. fatqat-0.1.0a1/tests/emulator/fixtures/sc_transmon_exchange.json +21 -0
  345. fatqat-0.1.0a1/tests/emulator/fixtures/sc_transmon_exchange_calibration.json +30 -0
  346. fatqat-0.1.0a1/tests/emulator/superconducting/test_backend.py +436 -0
  347. fatqat-0.1.0a1/tests/emulator/superconducting/test_backend_contract.py +447 -0
  348. fatqat-0.1.0a1/tests/emulator/superconducting/test_calibration.py +246 -0
  349. fatqat-0.1.0a1/tests/emulator/superconducting/test_custom_implementation_workflow.py +153 -0
  350. fatqat-0.1.0a1/tests/emulator/superconducting/test_direct_control.py +195 -0
  351. fatqat-0.1.0a1/tests/emulator/superconducting/test_fidelity.py +269 -0
  352. fatqat-0.1.0a1/tests/emulator/superconducting/test_gate_noise.py +423 -0
  353. fatqat-0.1.0a1/tests/emulator/superconducting/test_grid_reference.py +449 -0
  354. fatqat-0.1.0a1/tests/emulator/superconducting/test_lowering.py +322 -0
  355. fatqat-0.1.0a1/tests/emulator/superconducting/test_model.py +164 -0
  356. fatqat-0.1.0a1/tests/emulator/superconducting/test_noise.py +170 -0
  357. fatqat-0.1.0a1/tests/emulator/superconducting/test_qutip_adapter.py +688 -0
  358. fatqat-0.1.0a1/tests/emulator/superconducting/test_realization.py +207 -0
  359. fatqat-0.1.0a1/tests/emulator/superconducting/test_snapshot.py +56 -0
  360. fatqat-0.1.0a1/tests/emulator/superconducting/test_target.py +83 -0
  361. fatqat-0.1.0a1/tests/emulator/test_method_contract.py +283 -0
  362. fatqat-0.1.0a1/tests/emulator/test_model_catalog.py +60 -0
  363. fatqat-0.1.0a1/tests/emulator/test_qutip_runtime.py +96 -0
  364. fatqat-0.1.0a1/tests/integration/test_e2e.py +207 -0
  365. fatqat-0.1.0a1/tests/integration/test_feedforward.py +89 -0
  366. fatqat-0.1.0a1/tests/noise/test_base.py +126 -0
  367. fatqat-0.1.0a1/tests/noise/test_catalog.py +376 -0
  368. fatqat-0.1.0a1/tests/noise/test_loss.py +19 -0
  369. fatqat-0.1.0a1/tests/noise/test_model.py +355 -0
  370. fatqat-0.1.0a1/tests/noise/test_nb.py +419 -0
  371. fatqat-0.1.0a1/tests/noise/test_readout.py +40 -0
  372. fatqat-0.1.0a1/tests/noise/test_relaxation.py +52 -0
  373. fatqat-0.1.0a1/tests/noise/test_transition_relaxation.py +121 -0
  374. fatqat-0.1.0a1/tests/operations/test_gates.py +238 -0
  375. fatqat-0.1.0a1/tests/operations/test_pairing.py +56 -0
  376. fatqat-0.1.0a1/tests/operations/test_pulse_operation.py +100 -0
  377. fatqat-0.1.0a1/tests/operations/test_put.py +49 -0
  378. fatqat-0.1.0a1/tests/operations/test_reset.py +42 -0
  379. fatqat-0.1.0a1/tests/program/test_add.py +294 -0
  380. fatqat-0.1.0a1/tests/program/test_applied_operation.py +212 -0
  381. fatqat-0.1.0a1/tests/program/test_condition.py +116 -0
  382. fatqat-0.1.0a1/tests/program/test_construction.py +139 -0
  383. fatqat-0.1.0a1/tests/program/test_copy.py +29 -0
  384. fatqat-0.1.0a1/tests/program/test_measurement.py +167 -0
  385. fatqat-0.1.0a1/tests/program/test_parameter_binding.py +258 -0
  386. fatqat-0.1.0a1/tests/result/test_accessors.py +42 -0
  387. fatqat-0.1.0a1/tests/result/test_count_keys.py +141 -0
  388. fatqat-0.1.0a1/tests/simulator/test_configuration_api.py +250 -0
  389. fatqat-0.1.0a1/tests/simulator/test_density_matrix_backend.py +411 -0
  390. fatqat-0.1.0a1/tests/simulator/test_density_matrix_engine.py +146 -0
  391. fatqat-0.1.0a1/tests/simulator/test_dynamic.py +397 -0
  392. fatqat-0.1.0a1/tests/simulator/test_engine_apply.py +129 -0
  393. fatqat-0.1.0a1/tests/simulator/test_engine_dynamic.py +114 -0
  394. fatqat-0.1.0a1/tests/simulator/test_engine_measure.py +105 -0
  395. fatqat-0.1.0a1/tests/simulator/test_engine_run.py +100 -0
  396. fatqat-0.1.0a1/tests/simulator/test_estimator.py +87 -0
  397. fatqat-0.1.0a1/tests/simulator/test_execution.py +388 -0
  398. fatqat-0.1.0a1/tests/simulator/test_fake_atom_array.py +606 -0
  399. fatqat-0.1.0a1/tests/simulator/test_fake_superconducting.py +338 -0
  400. fatqat-0.1.0a1/tests/simulator/test_fusion_switch.py +137 -0
  401. fatqat-0.1.0a1/tests/simulator/test_initial_state.py +322 -0
  402. fatqat-0.1.0a1/tests/simulator/test_kernel_dispatch.py +358 -0
  403. fatqat-0.1.0a1/tests/simulator/test_kernel_keys.py +87 -0
  404. fatqat-0.1.0a1/tests/simulator/test_measurement_reporting.py +57 -0
  405. fatqat-0.1.0a1/tests/simulator/test_noise_execution.py +732 -0
  406. fatqat-0.1.0a1/tests/simulator/test_operator_methods.py +772 -0
  407. fatqat-0.1.0a1/tests/simulator/test_options.py +549 -0
  408. fatqat-0.1.0a1/tests/simulator/test_parallel.py +37 -0
  409. fatqat-0.1.0a1/tests/simulator/test_parameter_sweep.py +479 -0
  410. fatqat-0.1.0a1/tests/simulator/test_pauli_sampling.py +323 -0
  411. fatqat-0.1.0a1/tests/simulator/test_readout_confusion.py +368 -0
  412. fatqat-0.1.0a1/tests/simulator/test_resolution.py +113 -0
  413. fatqat-0.1.0a1/tests/simulator/test_resource_layout.py +142 -0
  414. fatqat-0.1.0a1/tests/simulator/test_result_availability.py +144 -0
  415. fatqat-0.1.0a1/tests/simulator/test_runtime_selection.py +242 -0
  416. fatqat-0.1.0a1/tests/simulator/test_sc_rotation_profile.py +341 -0
  417. fatqat-0.1.0a1/tests/simulator/test_simulator.py +237 -0
  418. fatqat-0.1.0a1/tests/simulator/test_step_cache_lifetime.py +198 -0
  419. fatqat-0.1.0a1/tests/test_against_qiskit.py +530 -0
  420. fatqat-0.1.0a1/tests/test_atom_arrangement.py +60 -0
  421. fatqat-0.1.0a1/tests/test_errors.py +16 -0
  422. fatqat-0.1.0a1/tests/test_estimator.py +714 -0
  423. fatqat-0.1.0a1/tests/test_expectation.py +80 -0
  424. fatqat-0.1.0a1/tests/test_expectation_kernel.py +174 -0
  425. fatqat-0.1.0a1/tests/test_expectation_nb.py +180 -0
  426. fatqat-0.1.0a1/tests/test_implementation.py +780 -0
  427. fatqat-0.1.0a1/tests/test_index_allocation.py +54 -0
  428. fatqat-0.1.0a1/tests/test_job.py +59 -0
  429. fatqat-0.1.0a1/tests/test_observable.py +217 -0
  430. fatqat-0.1.0a1/tests/test_package_api.py +165 -0
  431. fatqat-0.1.0a1/tests/test_parameter_sweep_ownership.py +62 -0
  432. fatqat-0.1.0a1/tests/test_parameters.py +105 -0
  433. fatqat-0.1.0a1/tests/test_program_graph.py +97 -0
  434. fatqat-0.1.0a1/tests/test_qasm.py +735 -0
  435. fatqat-0.1.0a1/tests/test_qiskit_integration.py +439 -0
  436. fatqat-0.1.0a1/tests/test_registers.py +418 -0
  437. fatqat-0.1.0a1/tests/visualization/test_counts.py +207 -0
  438. fatqat-0.1.0a1/tests/visualization/test_interaction_frequency.py +127 -0
  439. fatqat-0.1.0a1/tests/visualization/test_qutip_circuit.py +408 -0
  440. fatqat-0.1.0a1/tests/waveforms/test_sampled_waveform.py +68 -0
@@ -0,0 +1,29 @@
1
+ ## Description
2
+
3
+ <!-- Explain what changed, why this approach was chosen, and any architectural or public API impact. -->
4
+
5
+ ## Related issues or PRs
6
+
7
+ <!-- Link related items. Use "Fixes #1184" when the PR should close an issue. -->
8
+
9
+ ## AI Tools Usage Disclosure
10
+
11
+ **AI tools used:** `None`
12
+
13
+ <!--
14
+ If AI tools were used, replace "None" with:
15
+ - Tool/model: how it was used
16
+ e.g. generating code, summarizing changes, adding examples, adding tests, refining language
17
+ -->
18
+
19
+ ## Checklist
20
+
21
+ <!-- Make the following checks before ticking them. -->
22
+ - [ ] I have investigated the relevant code and confirmed that the chosen design fits the existing architecture and reuses existing functionality where possible.
23
+ - [ ] I have added or updated tests where appropriate and run the relevant checks. I avoided duplicate coverage and unnecessary overtesting.
24
+ - [ ] I have updated the relevant documentation, or confirmed that no changes are needed. The documentation is clear, concise, and avoids repetitive or mechanical wording.
25
+ - [ ] I have run Black (`python -m black --check --diff src tests conftest.py`) and Pylint (`python -m pylint src/fatqat tests conftest.py`).
26
+ <!-- This box must be completed manually by the human contributor, not by an AI agent. -->
27
+ - [ ] I have reviewed and understand the entire change and can explain its design and architectural fit.
28
+
29
+ <!-- If the contribution is not ready for review, open it as a draft and leave unfinished items unchecked. -->
@@ -0,0 +1,70 @@
1
+ name: Build and optionally publish to PyPI
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ confirm_ref:
7
+ description: Type the selected branch or tag name to publish (leave blank to build only)
8
+ type: string
9
+ default: ""
10
+
11
+ permissions:
12
+ contents: read
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v7
19
+ - uses: actions/setup-python@v6
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Build and check distributions
24
+ run: |
25
+ python -m pip install build twine
26
+ python -m build
27
+ python -m twine check --strict dist/*
28
+
29
+ - name: Verify publishing request
30
+ if: inputs.confirm_ref != ''
31
+ env:
32
+ CONFIRM_REF: ${{ inputs.confirm_ref }}
33
+ RELEASE_REF: ${{ github.ref_name }}
34
+ REF_TYPE: ${{ github.ref_type }}
35
+ run: |
36
+ python -m pip install --no-deps dist/*.whl
37
+ python - <<'PY'
38
+ import os
39
+ from importlib.metadata import version
40
+ from packaging.version import Version
41
+
42
+ if os.environ["CONFIRM_REF"] != os.environ["RELEASE_REF"]:
43
+ raise SystemExit("Confirmation must exactly match the selected branch or tag.")
44
+
45
+ release = Version(version("fatqat"))
46
+ if release.is_devrelease or release.local is not None:
47
+ raise SystemExit("Development and local versions cannot be published to PyPI.")
48
+ if os.environ["REF_TYPE"] == "tag" and os.environ["RELEASE_REF"] != f"v{release}":
49
+ raise SystemExit("Tag and package version differ.")
50
+ PY
51
+
52
+ - uses: actions/upload-artifact@v7
53
+ with:
54
+ name: distributions
55
+ path: dist/*
56
+ if-no-files-found: error
57
+
58
+ publish:
59
+ if: inputs.confirm_ref != '' && github.repository == 'spaceqat/fatqat'
60
+ needs: build
61
+ runs-on: ubuntu-latest
62
+ environment: pypi
63
+ permissions:
64
+ id-token: write
65
+ steps:
66
+ - uses: actions/download-artifact@v8
67
+ with:
68
+ name: distributions
69
+ path: dist
70
+ - uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,43 @@
1
+ name: Lint
2
+
3
+ on:
4
+ push:
5
+ branches: [main, "v*"]
6
+ tags: ["v*"]
7
+ pull_request:
8
+ branches: [main, "v*"]
9
+
10
+ jobs:
11
+ lint:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v7
15
+
16
+ - name: Verify generated documentation is not tracked
17
+ run: |
18
+ tracked_generated="$(git ls-files -- \
19
+ ':(glob)docs/mkdocs/*/assets/generated/**' \
20
+ ':(glob)docs/mkdocs/*/downloads/tutorials/**' \
21
+ ':(glob)docs/mkdocs/*/tutorials/**' \
22
+ docs/mkdocs/tutorial-results)"
23
+ if [ -n "$tracked_generated" ]; then
24
+ printf 'Generated documentation files must not be tracked:\n%s\n' "$tracked_generated"
25
+ exit 1
26
+ fi
27
+
28
+ - name: Set up Python
29
+ uses: actions/setup-python@v6
30
+ with:
31
+ python-version: "3.12"
32
+ cache: pip
33
+
34
+ - name: Install dependencies
35
+ run: |
36
+ python -m pip install --upgrade pip
37
+ python -m pip install . --group dev --group lint --group qiskit
38
+
39
+ - name: Check formatting (black)
40
+ run: python -m black --check --diff src tests conftest.py
41
+
42
+ - name: Static analysis (pylint)
43
+ run: python -m pylint src/fatqat tests conftest.py
@@ -0,0 +1,52 @@
1
+ name: Tests
2
+
3
+ on:
4
+ push:
5
+ branches: [main, "v*"]
6
+ tags: ["v*"]
7
+ pull_request:
8
+ branches: [main, "v*"]
9
+
10
+ jobs:
11
+ test:
12
+ name: ${{ matrix.check_name }}
13
+ strategy:
14
+ fail-fast: false
15
+ matrix:
16
+ include:
17
+ - check_name: Tests (Ubuntu)
18
+ os: ubuntu-latest
19
+ python-version: "3.12"
20
+ dependency_group: test-full
21
+ run_doctests: true
22
+ - check_name: Tests (Windows)
23
+ os: windows-latest
24
+ python-version: "3.13"
25
+ dependency_group: dev
26
+ run_doctests: false
27
+ - check_name: Tests (macOS)
28
+ os: macos-latest
29
+ python-version: "3.14"
30
+ dependency_group: dev
31
+ run_doctests: false
32
+ runs-on: ${{ matrix.os }}
33
+ steps:
34
+ - uses: actions/checkout@v7
35
+
36
+ - name: Set up Python
37
+ uses: actions/setup-python@v6
38
+ with:
39
+ python-version: ${{ matrix.python-version }}
40
+ cache: pip
41
+
42
+ - name: Install dependencies
43
+ run: |
44
+ python -m pip install --upgrade pip
45
+ python -m pip install . --group ${{ matrix.dependency_group }}
46
+
47
+ - name: Run tests
48
+ run: python -m pytest
49
+
50
+ - name: Run doctests
51
+ if: matrix.run_doctests
52
+ run: python -m pytest -p scipy_doctest --doctest-modules --pyargs fatqat
@@ -0,0 +1,28 @@
1
+ .venv/
2
+ .venv-mkdocs/
3
+ __pycache__/
4
+ *.pyc
5
+ .pytest_cache/
6
+ dist/
7
+ *.egg-info/
8
+ # Material for MkDocs build output.
9
+ docs/mkdocs/site/
10
+ docs/mkdocs/*/assets/generated/
11
+ docs/mkdocs/*/downloads/tutorials/
12
+ docs/mkdocs/*/tutorials/
13
+ docs/mkdocs/tutorial-results/
14
+
15
+ # Superpowers working artifacts (specs, plans, reviews) — not part of the code
16
+ docs/superpowers/
17
+ .claude/
18
+ .superpowers/
19
+
20
+ # Design docs — nested git repo with its own history, versioned separately
21
+ docs/design/
22
+
23
+ # Local git worktrees used for isolated subagent-driven development
24
+ .worktrees/
25
+ benchmarks/
26
+
27
+ # uv is optional, per-user tooling; a local lockfile is a user artifact
28
+ uv.lock
@@ -0,0 +1,16 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-24.04
5
+ tools:
6
+ python: "3.12"
7
+
8
+ mkdocs:
9
+ configuration: mkdocs.yml
10
+ fail_on_warning: true
11
+
12
+ python:
13
+ install:
14
+ - requirements: docs/mkdocs/requirements.txt
15
+ - method: pip
16
+ path: .
@@ -0,0 +1,31 @@
1
+ # AI-assisted implementation guide
2
+
3
+ This file contains repository-specific instructions for coding agents. Read
4
+ and follow [CONTRIBUTING.md](CONTRIBUTING.md); it is authoritative for
5
+ architecture, tests, documentation, validation, AI disclosure, authorship, and
6
+ project communication.
7
+
8
+ - Before changing code, inspect the relevant implementation, tests, public
9
+ documentation, and nearby repository conventions. Treat examples and
10
+ existing implementations as guidance, not templates to copy mechanically.
11
+ - Keep changes within the requested scope. Do not add unrelated refactors,
12
+ dependency changes, cleanup, or repository-wide formatting.
13
+ - Prefer the smallest readable, backward-compatible change. Preserve public
14
+ behavior unless the task explicitly changes it, and do not expand the public
15
+ API without prior discussion. Breaking changes require prior discussion and
16
+ should normally follow a documented deprecation path. Add complexity for
17
+ performance only when benchmarks justify it.
18
+ - Reuse established abstractions. Private implementation details may change
19
+ when public behavior and architectural boundaries remain intact.
20
+ - Make reasonable private implementation choices and state material
21
+ assumptions, but do not turn an inference or assumption into a public
22
+ contract without explicit direction. Stop when requirements conflict or a
23
+ decision would create a broad, difficult-to-reverse public API or
24
+ architectural commitment.
25
+ - Do not weaken, skip, or remove tests, lint rules, warnings, error handling,
26
+ or validation merely to make a change pass.
27
+ - If blocked, report the exact cause, the smallest safe alternative, and any
28
+ public API or behavior impact.
29
+ - Do not complete the human-only confirmation in
30
+ `.github/PULL_REQUEST_TEMPLATE.md`, or perform public GitHub communication
31
+ on the contributor's behalf.
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0a1
4
+
5
+ First alpha release of FatQat, a quantum-computing toolkit built around
6
+ the `Program` authoring interface.
7
+
8
+ - Author gates, measurements, reset, classical conditions, parameterized
9
+ programs, logical qudits, and direct physical controls.
10
+ - Run general simulations, hardware-profile simulations, and Hamiltonian
11
+ emulations through a shared `Job`/`Result` workflow.
12
+ - Explore noise, parameter sweeps, states, samples, and observables.
13
+ - Compile supported logical programs for hardware targets, including
14
+ neutral-atom placement and routing.
15
+ - Work with OpenQASM and optional Qiskit integration, draw programs, and
16
+ follow executable algorithm and physics tutorials.
17
+
18
+ Requires Python 3.12 or newer. This is an alpha release: interfaces may change
19
+ between releases. Pin the exact package version for reproducible studies.
@@ -0,0 +1,128 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our
6
+ community a harassment-free experience for everyone, regardless of age, body
7
+ size, visible or invisible disability, ethnicity, sex characteristics, gender
8
+ identity and expression, level of experience, education, socio-economic status,
9
+ nationality, personal appearance, race, religion, or sexual identity
10
+ and orientation.
11
+
12
+ We pledge to act and interact in ways that contribute to an open, welcoming,
13
+ diverse, inclusive, and healthy community.
14
+
15
+ ## Our Standards
16
+
17
+ Examples of behavior that contributes to a positive environment for our
18
+ community include:
19
+
20
+ * Demonstrating empathy and kindness toward other people
21
+ * Being respectful of differing opinions, viewpoints, and experiences
22
+ * Giving and gracefully accepting constructive feedback
23
+ * Accepting responsibility and apologizing to those affected by our mistakes,
24
+ and learning from the experience
25
+ * Focusing on what is best not just for us as individuals, but for the
26
+ overall community
27
+
28
+ Examples of unacceptable behavior include:
29
+
30
+ * The use of sexualized language or imagery, and sexual attention or
31
+ advances of any kind
32
+ * Trolling, insulting or derogatory comments, and personal or political attacks
33
+ * Public or private harassment
34
+ * Publishing others' private information, such as a physical or email
35
+ address, without their explicit permission
36
+ * Other conduct which could reasonably be considered inappropriate in a
37
+ professional setting
38
+
39
+ ## Enforcement Responsibilities
40
+
41
+ Community leaders are responsible for clarifying and enforcing our standards of
42
+ acceptable behavior and will take appropriate and fair corrective action in
43
+ response to any behavior that they deem inappropriate, threatening, offensive,
44
+ or harmful.
45
+
46
+ Community leaders have the right and responsibility to remove, edit, or reject
47
+ comments, commits, code, wiki edits, issues, and other contributions that are
48
+ not aligned to this Code of Conduct, and will communicate reasons for moderation
49
+ decisions when appropriate.
50
+
51
+ ## Scope
52
+
53
+ This Code of Conduct applies within all community spaces, and also applies when
54
+ an individual is officially representing the community in public spaces.
55
+ Examples of representing our community include using an official e-mail address,
56
+ posting via an official social media account, or acting as an appointed
57
+ representative at an online or offline event.
58
+
59
+ ## Enforcement
60
+
61
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
62
+ reported to the community leaders responsible for enforcement at
63
+ .
64
+ All complaints will be reviewed and investigated promptly and fairly.
65
+
66
+ All community leaders are obligated to respect the privacy and security of the
67
+ reporter of any incident.
68
+
69
+ ## Enforcement Guidelines
70
+
71
+ Community leaders will follow these Community Impact Guidelines in determining
72
+ the consequences for any action they deem in violation of this Code of Conduct:
73
+
74
+ ### 1. Correction
75
+
76
+ **Community Impact**: Use of inappropriate language or other behavior deemed
77
+ unprofessional or unwelcome in the community.
78
+
79
+ **Consequence**: A private, written warning from community leaders, providing
80
+ clarity around the nature of the violation and an explanation of why the
81
+ behavior was inappropriate. A public apology may be requested.
82
+
83
+ ### 2. Warning
84
+
85
+ **Community Impact**: A violation through a single incident or series
86
+ of actions.
87
+
88
+ **Consequence**: A warning with consequences for continued behavior. No
89
+ interaction with the people involved, including unsolicited interaction with
90
+ those enforcing the Code of Conduct, for a specified period of time. This
91
+ includes avoiding interactions in community spaces as well as external channels
92
+ like social media. Violating these terms may lead to a temporary or
93
+ permanent ban.
94
+
95
+ ### 3. Temporary Ban
96
+
97
+ **Community Impact**: A serious violation of community standards, including
98
+ sustained inappropriate behavior.
99
+
100
+ **Consequence**: A temporary ban from any sort of interaction or public
101
+ communication with the community for a specified period of time. No public or
102
+ private interaction with the people involved, including unsolicited interaction
103
+ with those enforcing the Code of Conduct, is allowed during this period.
104
+ Violating these terms may lead to a permanent ban.
105
+
106
+ ### 4. Permanent Ban
107
+
108
+ **Community Impact**: Demonstrating a pattern of violation of community
109
+ standards, including sustained inappropriate behavior, harassment of an
110
+ individual, or aggression toward or disparagement of classes of individuals.
111
+
112
+ **Consequence**: A permanent ban from any sort of public interaction within
113
+ the community.
114
+
115
+ ## Attribution
116
+
117
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118
+ version 2.0, available at
119
+ https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
120
+
121
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct
122
+ enforcement ladder](https://github.com/mozilla/diversity).
123
+
124
+ [homepage]: https://www.contributor-covenant.org
125
+
126
+ For answers to common questions about this code of conduct, see the FAQ at
127
+ https://www.contributor-covenant.org/faq. Translations are available at
128
+ https://www.contributor-covenant.org/translations.
@@ -0,0 +1,198 @@
1
+ # Contributing to fatqat
2
+
3
+ Contributions to fatqat are welcome. Development setup and test commands are
4
+ documented in the [README](README.md#development). Contributors should discuss
5
+ substantial features or architectural changes with the maintainers before
6
+ investing in a large implementation.
7
+
8
+ ## AI tools usage policy
9
+
10
+ fatqat welcomes the use of AI tools to improve efficiency and the quality of
11
+ work. Contributors may use these tools provided that the following guidelines
12
+ are followed. The policy applies to code, tests, documentation, issues, pull
13
+ requests, reviews, discussions, and comments.
14
+
15
+ AI tools may help a contributor:
16
+
17
+ - explore the codebase and understand how components interact;
18
+ - brainstorm approaches and compare design options;
19
+ - draft code, tests, or documentation;
20
+ - review an implementation for possible bugs or improvements.
21
+
22
+ However, the contributor must independently validate architectural decisions,
23
+ review all generated output and test applicable changes.
24
+
25
+ ### 1. Accountability
26
+
27
+ By submitting a change, the human contributor accepts responsibility for its quality,
28
+ including any AI-generated material it contains.
29
+
30
+ The contributor must:
31
+
32
+ - ensure the contribution meets the project's quality and testing standards;
33
+ - understand how the change works and enough of the related existing code to
34
+ trace how the change interacts with the rest of the package;
35
+ - explain why the approach was chosen, including relevant alternatives and trade-offs;
36
+ - explain how the behavior was verified and respond substantively to questions
37
+ during review.
38
+
39
+ This does not require memorizing every line or knowing the internals of every
40
+ dependency. It requires enough command of the contribution to locate and
41
+ explain the relevant behavior, reason about its consequences, and debug or
42
+ maintain it after merge. A change the contributor cannot explain and maintain is not ready for
43
+ review.
44
+
45
+ ### 2. Transparency
46
+
47
+ The `AI Tools Usage Disclosure` field in the pull-request template is mandatory.
48
+ If no AI tool was used, the contributor must state so clearly.
49
+ If AI tools were used, the disclosure must name the tools and briefly
50
+ explain how they were used.
51
+
52
+ ### 3. Authorship and legal responsibility
53
+
54
+ The contributor must have the right to submit every part of the contribution
55
+ and must respect third-party licenses and the terms of the AI tool.
56
+ The contributor must check AI-generated material for copied or derived
57
+ third-party content and must not submit material under incompatible licensing
58
+ terms.
59
+
60
+ An AI system, model, or agent must not sign commits or be listed as an author or
61
+ co-author. This includes `Author` and `Co-authored-by`, and `Signed-off-by`
62
+ metadata. Any such entries must be removed from the proposed commits before submission.
63
+
64
+ ### 4. GitHub communication and prohibited uses
65
+
66
+ Project communication is expected to be directly with the contributor, not an
67
+ agent. Translation and grammar assistance are welcome, but issues, pull-request
68
+ descriptions, and review replies must express the contributor's own understanding and judgment.
69
+
70
+ AI-assisted descriptions and summaries are permitted, but should be reviewed for
71
+ clarity, relevance, and concision. Avoid lengthy or generic content that adds little
72
+ useful information or obscures the contributor's own explanation and reasoning.
73
+ Lengthy file-by-file summaries, generic background, and repetition
74
+ can obscure information needed for review and may be returned for rewriting.
75
+
76
+ Autonomous or unattended agents must not drive the communication on GitHub.
77
+ The contributor must personally direct every public interaction.
78
+ Repository-owned maintenance bots and other
79
+ automation explicitly approved by the maintainers are exempt.
80
+
81
+ ### 5. Enforcement
82
+
83
+ Maintainers may ask the contributor to explain a change, rewrite a description,
84
+ provide verification, or reduce the scope. Maintainers may decline or close a
85
+ contribution if the contributor cannot demonstrate understanding and ownership,
86
+ violates this policy, or if the effort required to review the contribution would
87
+ outweigh its likely benefit to the project.
88
+
89
+ ## Code changes and validation
90
+
91
+ Install fatqat in editable mode with the full test and lint environment:
92
+
93
+ ```sh
94
+ python -m pip install --upgrade pip
95
+ python -m pip install --editable . --group test-full --group lint
96
+ ```
97
+
98
+ The `test-full` group includes the core `dev` tests and optional integration
99
+ dependencies. Use `dev` alone only for lightweight local work that does not need
100
+ those integrations.
101
+
102
+ Run the narrowest relevant tests while developing a change. Before requesting
103
+ review, run the full test and lint checks:
104
+
105
+ ```sh
106
+ python -m pytest
107
+ python -m black --check --diff src tests conftest.py
108
+ python -m pylint src/fatqat tests conftest.py
109
+ ```
110
+
111
+ New behavior and bug fixes should have focused tests. Test observable behavior,
112
+ public contracts, and meaningful failure cases rather than private helpers,
113
+ internal call sequences, or data layouts. Before adding a test, check whether
114
+ an existing test already protects the behavior; extend or parameterize it when
115
+ that remains clear, and avoid duplicate cases that would fail for the same
116
+ regression. Seed stochastic tests and use appropriate numerical tolerances.
117
+
118
+ ## Documentation
119
+
120
+ Documentation is part of fatqat's public interface. A contribution that changes
121
+ public behavior, configuration, defaults, return values, result fields, or
122
+ errors must update the corresponding documentation in the same pull request.
123
+
124
+ ### Put information in the right place
125
+
126
+ - User guides in `docs/mkdocs/en/guide/` provide pedagogical explanations of
127
+ concepts and workflows. They should develop topics progressively and give
128
+ readers the context needed to understand how the pieces fit together.
129
+ - API pages in `docs/mkdocs/en/api/`, together with public docstrings, define the
130
+ complete public contract. Docstrings should provide concise reference
131
+ material that remains useful through Python `help()`.
132
+ - Tutorials in `docs/mkdocs/tutorial-sources/en/` present substantial executable
133
+ workflows or studies. Their Markdown sources are canonical; pages, figures,
134
+ scripts, and notebooks are generated.
135
+
136
+ A public class with substantial behavior or configuration should have its own
137
+ API page. Begin with why and when a user would choose it, then explain its
138
+ behavior, constraints, and configuration, include a minimal example, and finish
139
+ with the generated API reference. Explain shared behavior once and link to it
140
+ from the relevant pages.
141
+
142
+ ### Contributing tutorials
143
+
144
+ Tutorial contributors should follow the
145
+ [executable tutorial instructions](docs/mkdocs/README.md#add-executable-tutorials).
146
+ They cover the canonical Markdown source, required metadata and accessible
147
+ figures, learning and reproducibility expectations, executable cells, optional
148
+ Jupytext conversion, and generated outputs.
149
+
150
+ ### Writing style and API documentation
151
+
152
+ Write for someone trying to use the feature, not someone tracing its
153
+ implementation. Lead with what the API enables, how to use it, and what behavior
154
+ to expect. Use direct, concrete language and active voice, and keep terminology
155
+ consistent across code, guides, and API pages. Internal planning, caching, and
156
+ execution details belong in user documentation only when they affect public
157
+ behavior or define an extension contract.
158
+
159
+ If AI tools assist with documentation, revise the result to match the project's
160
+ established style. Let the subject and the user's needs determine the depth and
161
+ structure; do not force every page or section into the same pattern or level of
162
+ detail. Cut generic or repeated framing, stock phrasing, mechanical transitions,
163
+ and tables or checklists that do not make the material easier to understand or
164
+ navigate.
165
+
166
+ A public docstring is a concise reference that must also read well through
167
+ Python `help()`. Begin with a one-sentence summary, then add a short behavioral
168
+ description when it is useful. Use `Args`, `Returns`, and `Raises` as applicable,
169
+ and include `Examples` only when an example materially clarifies the API. List
170
+ arguments in signature order, and prefer simple labels and lists to tables,
171
+ Sphinx directives, or underlined section headings.
172
+
173
+ Options need enough information for a user to choose and combine them correctly.
174
+ State each option's accepted values and default, explain its user-visible effect
175
+ and when it applies or has no effect, and identify incompatible combinations and
176
+ relevant errors. If the accepted values form a small finite set, list every value
177
+ explicitly. For a dictionary argument, document each public key separately with
178
+ its name, accepted type, default, user-visible effect, and important compatibility
179
+ constraints. For example:
180
+
181
+ ```text
182
+ simulation_config: Optional execution controls. Accepted keys are:
183
+
184
+ - "seed" (int | None, default None): Random seed.
185
+ - "mode" (str, "auto" | "thread", default "auto"): Execution mode.
186
+ ```
187
+
188
+ Where relevant, also explain object lifetime and ownership, reuse guarantees,
189
+ and support for concurrent calls. Examples should be minimal, executable, and
190
+ focused on one behavior. Use the repository's normal import style, and seed
191
+ stochastic examples when showing exact output.
192
+
193
+ ### Validate documentation changes
194
+
195
+ Before submitting documentation changes, follow the
196
+ [documentation build and validation instructions](docs/mkdocs/README.md#validate-before-submission).
197
+ They cover the pinned environment, warnings-as-errors build, rendered output,
198
+ public docstrings, verification against the implementation, and diff checks.