bloqade-circuit 0.1.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.

Potentially problematic release.


This version of bloqade-circuit might be problematic. Click here for more details.

Files changed (235) hide show
  1. bloqade_circuit-0.1.0/.github/dependabot.yml +7 -0
  2. bloqade_circuit-0.1.0/.github/workflows/ci.yml +73 -0
  3. bloqade_circuit-0.1.0/.github/workflows/isort.yml +18 -0
  4. bloqade_circuit-0.1.0/.github/workflows/lint.yml +21 -0
  5. bloqade_circuit-0.1.0/.github/workflows/release.yml +90 -0
  6. bloqade_circuit-0.1.0/.gitignore +188 -0
  7. bloqade_circuit-0.1.0/.pre-commit-config.yaml +28 -0
  8. bloqade_circuit-0.1.0/LICENSE +234 -0
  9. bloqade_circuit-0.1.0/PKG-INFO +70 -0
  10. bloqade_circuit-0.1.0/README.md +43 -0
  11. bloqade_circuit-0.1.0/_typos.toml +15 -0
  12. bloqade_circuit-0.1.0/justfile +22 -0
  13. bloqade_circuit-0.1.0/pyproject.toml +128 -0
  14. bloqade_circuit-0.1.0/src/bloqade/analysis/__init__.py +0 -0
  15. bloqade_circuit-0.1.0/src/bloqade/analysis/address/__init__.py +11 -0
  16. bloqade_circuit-0.1.0/src/bloqade/analysis/address/analysis.py +60 -0
  17. bloqade_circuit-0.1.0/src/bloqade/analysis/address/impls.py +228 -0
  18. bloqade_circuit-0.1.0/src/bloqade/analysis/address/lattice.py +85 -0
  19. bloqade_circuit-0.1.0/src/bloqade/noise/__init__.py +1 -0
  20. bloqade_circuit-0.1.0/src/bloqade/noise/native/__init__.py +20 -0
  21. bloqade_circuit-0.1.0/src/bloqade/noise/native/_dialect.py +3 -0
  22. bloqade_circuit-0.1.0/src/bloqade/noise/native/_wrappers.py +34 -0
  23. bloqade_circuit-0.1.0/src/bloqade/noise/native/model.py +347 -0
  24. bloqade_circuit-0.1.0/src/bloqade/noise/native/rewrite.py +35 -0
  25. bloqade_circuit-0.1.0/src/bloqade/noise/native/stmts.py +46 -0
  26. bloqade_circuit-0.1.0/src/bloqade/pyqrack/__init__.py +18 -0
  27. bloqade_circuit-0.1.0/src/bloqade/pyqrack/base.py +131 -0
  28. bloqade_circuit-0.1.0/src/bloqade/pyqrack/noise/__init__.py +0 -0
  29. bloqade_circuit-0.1.0/src/bloqade/pyqrack/noise/native.py +100 -0
  30. bloqade_circuit-0.1.0/src/bloqade/pyqrack/qasm2/__init__.py +0 -0
  31. bloqade_circuit-0.1.0/src/bloqade/pyqrack/qasm2/core.py +79 -0
  32. bloqade_circuit-0.1.0/src/bloqade/pyqrack/qasm2/parallel.py +46 -0
  33. bloqade_circuit-0.1.0/src/bloqade/pyqrack/qasm2/uop.py +247 -0
  34. bloqade_circuit-0.1.0/src/bloqade/pyqrack/reg.py +109 -0
  35. bloqade_circuit-0.1.0/src/bloqade/pyqrack/target.py +112 -0
  36. bloqade_circuit-0.1.0/src/bloqade/qasm2/__init__.py +19 -0
  37. bloqade_circuit-0.1.0/src/bloqade/qasm2/_wrappers.py +674 -0
  38. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/__init__.py +10 -0
  39. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/core/__init__.py +3 -0
  40. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/core/_dialect.py +3 -0
  41. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/core/_emit.py +68 -0
  42. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/core/_typeinfer.py +23 -0
  43. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/core/address.py +38 -0
  44. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/core/stmts.py +94 -0
  45. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/expr/__init__.py +3 -0
  46. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/expr/_dialect.py +3 -0
  47. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/expr/_emit.py +103 -0
  48. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/expr/_from_python.py +86 -0
  49. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/expr/_interp.py +75 -0
  50. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/expr/stmts.py +262 -0
  51. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/glob.py +45 -0
  52. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/indexing.py +64 -0
  53. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/inline.py +76 -0
  54. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/noise.py +16 -0
  55. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/parallel.py +110 -0
  56. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/uop/__init__.py +4 -0
  57. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/uop/_dialect.py +3 -0
  58. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/uop/_emit.py +211 -0
  59. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/uop/schedule.py +89 -0
  60. bloqade_circuit-0.1.0/src/bloqade/qasm2/dialects/uop/stmts.py +325 -0
  61. bloqade_circuit-0.1.0/src/bloqade/qasm2/emit/__init__.py +1 -0
  62. bloqade_circuit-0.1.0/src/bloqade/qasm2/emit/base.py +72 -0
  63. bloqade_circuit-0.1.0/src/bloqade/qasm2/emit/gate.py +102 -0
  64. bloqade_circuit-0.1.0/src/bloqade/qasm2/emit/main.py +106 -0
  65. bloqade_circuit-0.1.0/src/bloqade/qasm2/emit/target.py +165 -0
  66. bloqade_circuit-0.1.0/src/bloqade/qasm2/glob.py +24 -0
  67. bloqade_circuit-0.1.0/src/bloqade/qasm2/groups.py +120 -0
  68. bloqade_circuit-0.1.0/src/bloqade/qasm2/parallel.py +48 -0
  69. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/__init__.py +37 -0
  70. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/ast.py +235 -0
  71. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/build.py +289 -0
  72. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/lowering.py +553 -0
  73. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/parser.py +5 -0
  74. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/print.py +293 -0
  75. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/qasm2.lark +75 -0
  76. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/visitor.py +16 -0
  77. bloqade_circuit-0.1.0/src/bloqade/qasm2/parse/visitor.pyi +39 -0
  78. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/__init__.py +5 -0
  79. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/fold.py +94 -0
  80. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/glob.py +119 -0
  81. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/noise.py +61 -0
  82. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/parallel.py +176 -0
  83. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/py2qasm.py +63 -0
  84. bloqade_circuit-0.1.0/src/bloqade/qasm2/passes/qasm2py.py +61 -0
  85. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/__init__.py +12 -0
  86. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/desugar.py +28 -0
  87. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/glob.py +103 -0
  88. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/heuristic_noise.py +247 -0
  89. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/native_gates.py +447 -0
  90. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/parallel_to_uop.py +83 -0
  91. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/register.py +45 -0
  92. bloqade_circuit-0.1.0/src/bloqade/qasm2/rewrite/uop_to_parallel.py +395 -0
  93. bloqade_circuit-0.1.0/src/bloqade/qasm2/types.py +39 -0
  94. bloqade_circuit-0.1.0/src/bloqade/qbraid/__init__.py +2 -0
  95. bloqade_circuit-0.1.0/src/bloqade/qbraid/lowering.py +324 -0
  96. bloqade_circuit-0.1.0/src/bloqade/qbraid/schema.py +252 -0
  97. bloqade_circuit-0.1.0/src/bloqade/qbraid/simulation_result.py +99 -0
  98. bloqade_circuit-0.1.0/src/bloqade/qbraid/target.py +86 -0
  99. bloqade_circuit-0.1.0/src/bloqade/squin/__init__.py +2 -0
  100. bloqade_circuit-0.1.0/src/bloqade/squin/analysis/__init__.py +0 -0
  101. bloqade_circuit-0.1.0/src/bloqade/squin/analysis/nsites/__init__.py +8 -0
  102. bloqade_circuit-0.1.0/src/bloqade/squin/analysis/nsites/analysis.py +52 -0
  103. bloqade_circuit-0.1.0/src/bloqade/squin/analysis/nsites/impls.py +69 -0
  104. bloqade_circuit-0.1.0/src/bloqade/squin/analysis/nsites/lattice.py +49 -0
  105. bloqade_circuit-0.1.0/src/bloqade/squin/analysis/schedule.py +244 -0
  106. bloqade_circuit-0.1.0/src/bloqade/squin/groups.py +38 -0
  107. bloqade_circuit-0.1.0/src/bloqade/squin/op/__init__.py +132 -0
  108. bloqade_circuit-0.1.0/src/bloqade/squin/op/_dialect.py +3 -0
  109. bloqade_circuit-0.1.0/src/bloqade/squin/op/complex.py +6 -0
  110. bloqade_circuit-0.1.0/src/bloqade/squin/op/stmts.py +220 -0
  111. bloqade_circuit-0.1.0/src/bloqade/squin/op/traits.py +43 -0
  112. bloqade_circuit-0.1.0/src/bloqade/squin/op/types.py +10 -0
  113. bloqade_circuit-0.1.0/src/bloqade/squin/qubit.py +118 -0
  114. bloqade_circuit-0.1.0/src/bloqade/squin/wire.py +103 -0
  115. bloqade_circuit-0.1.0/src/bloqade/stim/__init__.py +6 -0
  116. bloqade_circuit-0.1.0/src/bloqade/stim/_wrappers.py +186 -0
  117. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/__init__.py +5 -0
  118. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/__init__.py +11 -0
  119. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/_dialect.py +3 -0
  120. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/emit.py +102 -0
  121. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/interp.py +39 -0
  122. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/lowering.py +40 -0
  123. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/stmts/__init__.py +14 -0
  124. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/stmts/annotate.py +47 -0
  125. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/stmts/const.py +95 -0
  126. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/aux/types.py +19 -0
  127. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/__init__.py +3 -0
  128. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/_dialect.py +3 -0
  129. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/emit.py +68 -0
  130. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/stmts/__init__.py +3 -0
  131. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/stmts/measure.py +45 -0
  132. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/stmts/pp_measure.py +14 -0
  133. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/collapse/stmts/reset.py +26 -0
  134. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/__init__.py +3 -0
  135. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/_dialect.py +3 -0
  136. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/emit.py +87 -0
  137. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/stmts/__init__.py +14 -0
  138. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/stmts/base.py +31 -0
  139. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/stmts/clifford_1q.py +53 -0
  140. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/stmts/clifford_2q.py +11 -0
  141. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/stmts/control_2q.py +21 -0
  142. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/gate/stmts/pp.py +15 -0
  143. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/noise/__init__.py +3 -0
  144. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/noise/_dialect.py +3 -0
  145. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/noise/emit.py +66 -0
  146. bloqade_circuit-0.1.0/src/bloqade/stim/dialects/noise/stmts.py +77 -0
  147. bloqade_circuit-0.1.0/src/bloqade/stim/emit/__init__.py +1 -0
  148. bloqade_circuit-0.1.0/src/bloqade/stim/emit/stim.py +54 -0
  149. bloqade_circuit-0.1.0/src/bloqade/stim/groups.py +26 -0
  150. bloqade_circuit-0.1.0/src/bloqade/test_utils.py +35 -0
  151. bloqade_circuit-0.1.0/src/bloqade/types.py +24 -0
  152. bloqade_circuit-0.1.0/src/bloqade/visual/__init__.py +1 -0
  153. bloqade_circuit-0.1.0/src/bloqade/visual/animation/__init__.py +0 -0
  154. bloqade_circuit-0.1.0/src/bloqade/visual/animation/animate.py +267 -0
  155. bloqade_circuit-0.1.0/src/bloqade/visual/animation/base.py +346 -0
  156. bloqade_circuit-0.1.0/src/bloqade/visual/animation/gate_event.py +24 -0
  157. bloqade_circuit-0.1.0/src/bloqade/visual/animation/runtime/__init__.py +0 -0
  158. bloqade_circuit-0.1.0/src/bloqade/visual/animation/runtime/aod.py +36 -0
  159. bloqade_circuit-0.1.0/src/bloqade/visual/animation/runtime/atoms.py +55 -0
  160. bloqade_circuit-0.1.0/src/bloqade/visual/animation/runtime/ppoly.py +50 -0
  161. bloqade_circuit-0.1.0/src/bloqade/visual/animation/runtime/qpustate.py +119 -0
  162. bloqade_circuit-0.1.0/src/bloqade/visual/animation/runtime/utils.py +43 -0
  163. bloqade_circuit-0.1.0/test/__init__.py +0 -0
  164. bloqade_circuit-0.1.0/test/analysis/address/test_analysis.py +202 -0
  165. bloqade_circuit-0.1.0/test/pyqrack/__init__.py +0 -0
  166. bloqade_circuit-0.1.0/test/pyqrack/runtime/__init__.py +0 -0
  167. bloqade_circuit-0.1.0/test/pyqrack/runtime/noise/__init__.py +0 -0
  168. bloqade_circuit-0.1.0/test/pyqrack/runtime/noise/native/test_loss.py +45 -0
  169. bloqade_circuit-0.1.0/test/pyqrack/runtime/noise/native/test_pauli.py +130 -0
  170. bloqade_circuit-0.1.0/test/pyqrack/runtime/test_dyn_memory.py +32 -0
  171. bloqade_circuit-0.1.0/test/pyqrack/runtime/test_qrack.py +163 -0
  172. bloqade_circuit-0.1.0/test/pyqrack/test_target.py +40 -0
  173. bloqade_circuit-0.1.0/test/qasm2/__init__.py +0 -0
  174. bloqade_circuit-0.1.0/test/qasm2/analysis/test_dag.py +0 -0
  175. bloqade_circuit-0.1.0/test/qasm2/emit/test_extended.py +51 -0
  176. bloqade_circuit-0.1.0/test/qasm2/emit/test_qasm2.py +27 -0
  177. bloqade_circuit-0.1.0/test/qasm2/emit/test_qasm2_emit.py +223 -0
  178. bloqade_circuit-0.1.0/test/qasm2/parse/__init__.py +0 -0
  179. bloqade_circuit-0.1.0/test/qasm2/parse/programs/README.md +7 -0
  180. bloqade_circuit-0.1.0/test/qasm2/parse/programs/global.qasm +7 -0
  181. bloqade_circuit-0.1.0/test/qasm2/parse/programs/iqft1.qasm +26 -0
  182. bloqade_circuit-0.1.0/test/qasm2/parse/programs/main.qasm +33 -0
  183. bloqade_circuit-0.1.0/test/qasm2/parse/programs/noise.qasm +5 -0
  184. bloqade_circuit-0.1.0/test/qasm2/parse/programs/para.qasm +13 -0
  185. bloqade_circuit-0.1.0/test/qasm2/parse/programs/process_tomo.qasm +12 -0
  186. bloqade_circuit-0.1.0/test/qasm2/parse/programs/qelib1.inc +92 -0
  187. bloqade_circuit-0.1.0/test/qasm2/parse/programs/qft.qasm +18 -0
  188. bloqade_circuit-0.1.0/test/qasm2/parse/programs/qft2.qasm +24 -0
  189. bloqade_circuit-0.1.0/test/qasm2/parse/programs/rb.qasm +17 -0
  190. bloqade_circuit-0.1.0/test/qasm2/parse/programs/rep_code.qasm +20 -0
  191. bloqade_circuit-0.1.0/test/qasm2/parse/programs/ripple_carry_adder.qasm +38 -0
  192. bloqade_circuit-0.1.0/test/qasm2/parse/programs/tele.qasm +21 -0
  193. bloqade_circuit-0.1.0/test/qasm2/parse/test_ast.py +311 -0
  194. bloqade_circuit-0.1.0/test/qasm2/parse/test_roundtrip.py +30 -0
  195. bloqade_circuit-0.1.0/test/qasm2/passes/__init__.py +0 -0
  196. bloqade_circuit-0.1.0/test/qasm2/passes/test_global_to_parallel.py +148 -0
  197. bloqade_circuit-0.1.0/test/qasm2/passes/test_global_to_uop.py +106 -0
  198. bloqade_circuit-0.1.0/test/qasm2/passes/test_heuristic_noise.py +316 -0
  199. bloqade_circuit-0.1.0/test/qasm2/passes/test_parallel_to_uop.py +66 -0
  200. bloqade_circuit-0.1.0/test/qasm2/passes/test_qasm2py.py +26 -0
  201. bloqade_circuit-0.1.0/test/qasm2/passes/test_uop_to_parallel.py +99 -0
  202. bloqade_circuit-0.1.0/test/qasm2/test_count.py +180 -0
  203. bloqade_circuit-0.1.0/test/qasm2/test_inline.py +66 -0
  204. bloqade_circuit-0.1.0/test/qasm2/test_lowering.py +22 -0
  205. bloqade_circuit-0.1.0/test/qasm2/test_native.py +119 -0
  206. bloqade_circuit-0.1.0/test/qasm2/test_two2one.py +16 -0
  207. bloqade_circuit-0.1.0/test/qbraid/__init__.py +0 -0
  208. bloqade_circuit-0.1.0/test/qbraid/test_clean_circuit.py +49 -0
  209. bloqade_circuit-0.1.0/test/qbraid/test_lowering.py +409 -0
  210. bloqade_circuit-0.1.0/test/qbraid/test_target.py +57 -0
  211. bloqade_circuit-0.1.0/test/sample/__init__.py +0 -0
  212. bloqade_circuit-0.1.0/test/sample/test_noise_model.py +52 -0
  213. bloqade_circuit-0.1.0/test/squin/analysis/test_nsites_analysis.py +256 -0
  214. bloqade_circuit-0.1.0/test/stim/__init__.py +0 -0
  215. bloqade_circuit-0.1.0/test/stim/dialects/__init__.py +0 -0
  216. bloqade_circuit-0.1.0/test/stim/dialects/stim/__init__.py +0 -0
  217. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/__init__.py +0 -0
  218. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/base.py +12 -0
  219. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_1q.py +43 -0
  220. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_ctrl.py +28 -0
  221. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_detector.py +17 -0
  222. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_meas.py +14 -0
  223. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_noise.py +36 -0
  224. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_obs_inc.py +14 -0
  225. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_ppmeas.py +32 -0
  226. bloqade_circuit-0.1.0/test/stim/dialects/stim/emit/test_stim_spp.py +31 -0
  227. bloqade_circuit-0.1.0/test/stim/dialects/stim/test_stim_circuits.py +142 -0
  228. bloqade_circuit-0.1.0/test/stim/dialects/stim/test_stim_const.py +39 -0
  229. bloqade_circuit-0.1.0/test/stim/wrapper/__init__.py +0 -0
  230. bloqade_circuit-0.1.0/test/stim/wrapper/test_wrapper.py +460 -0
  231. bloqade_circuit-0.1.0/test/test_serialization.py +134 -0
  232. bloqade_circuit-0.1.0/test/test_zone_model.py +66 -0
  233. bloqade_circuit-0.1.0/test/visual/__init__.py +0 -0
  234. bloqade_circuit-0.1.0/test/visual/test_utils.py +24 -0
  235. bloqade_circuit-0.1.0/uv.lock +2061 -0
@@ -0,0 +1,7 @@
1
+ version: 2
2
+ updates:
3
+ # Maintain dependencies for GitHub Actions
4
+ - package-ecosystem: "github-actions"
5
+ directory: "/"
6
+ schedule:
7
+ interval: "weekly"
@@ -0,0 +1,73 @@
1
+ name: CI
2
+
3
+ on:
4
+ pull_request:
5
+ push:
6
+ branches:
7
+ - main
8
+ schedule:
9
+ - cron: '00 01 * * *'
10
+ concurrency:
11
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12
+ cancel-in-progress: true
13
+
14
+ jobs:
15
+ build:
16
+ runs-on: ubuntu-latest
17
+ strategy:
18
+ matrix:
19
+ python-version: ["3.10", "3.11", "3.12"]
20
+
21
+ steps:
22
+ - uses: actions/checkout@v4
23
+ - name: Install uv
24
+ uses: astral-sh/setup-uv@v5
25
+ with:
26
+ # Install a specific version of uv.
27
+ version: "0.5.1"
28
+ enable-cache: true
29
+ cache-dependency-glob: "uv.lock"
30
+ - name: Set up Python ${{ matrix.python-version }}
31
+ run: uv python install ${{ matrix.python-version }}
32
+ - name: Install the project
33
+ run: uv sync --upgrade --dev --group dev-linux
34
+ - name: Run tests
35
+ # For example, using `pytest`
36
+ run: uv run just coverage
37
+ - name: Upload Coverage to Codecov
38
+ uses: codecov/codecov-action@v5
39
+ with:
40
+ files: coverage.xml # optional
41
+ fail_ci_if_error: true # optional (default = false)
42
+ verbose: true # optional (default = false)
43
+ token: ${{ secrets.CODECOV_TOKEN }} # required
44
+ - name: Archive code coverage results
45
+ if: matrix.python-version == '3.12'
46
+ uses: actions/upload-artifact@v4
47
+ with:
48
+ name: code-coverage-report
49
+ path: coverage.xml
50
+ retention-days: 2
51
+ post:
52
+ runs-on: ubuntu-latest
53
+ needs: build
54
+ if: github.event.pull_request
55
+ steps:
56
+ - uses: actions/checkout@v4
57
+ - name: download covearge
58
+ uses: actions/download-artifact@v4
59
+ with:
60
+ name: code-coverage-report
61
+ - name: check coverage
62
+ run: |
63
+ if [ -f coverage.xml ]; then
64
+ echo "Coverage file exists"
65
+ else
66
+ echo "Coverage file does not exist"
67
+ exit 1
68
+ fi
69
+ - name: post covearge
70
+ uses: orgoro/coverage@v3.2
71
+ with:
72
+ coverageFile: coverage.xml
73
+ token: ${{ secrets.GITHUB_TOKEN }}
@@ -0,0 +1,18 @@
1
+ name: Run isort
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - main
7
+ concurrency:
8
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9
+ cancel-in-progress: true
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: isort/isort-action@v1
17
+ with:
18
+ sortPaths: "src" # only sort files in the src directory
@@ -0,0 +1,21 @@
1
+ name: Lint
2
+ on:
3
+ pull_request:
4
+ push:
5
+ branches:
6
+ - main
7
+ concurrency:
8
+ group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
9
+ cancel-in-progress: true
10
+
11
+ jobs:
12
+ ruff:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: chartboost/ruff-action@v1
17
+ black:
18
+ runs-on: ubuntu-latest
19
+ steps:
20
+ - uses: actions/checkout@v4
21
+ - uses: psf/black@stable
@@ -0,0 +1,90 @@
1
+ name: Publish Python 🐍 distribution 📦 to PyPI and TestPyPI
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ build:
7
+ name: Build distribution 📦
8
+ runs-on: ubuntu-latest
9
+
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - name: Install uv
13
+ uses: astral-sh/setup-uv@v5
14
+ with:
15
+ # Install a specific version of uv.
16
+ version: "0.5.5"
17
+ - name: Install the project
18
+ run: uv sync --all-extras
19
+ - name: Build distribution 📦
20
+ run: uv build
21
+ - name: Store the distribution packages
22
+ uses: actions/upload-artifact@v4
23
+ with:
24
+ name: python-package-distributions
25
+ path: dist/
26
+
27
+ publish-to-pypi:
28
+ name: >-
29
+ Publish Python 🐍 distribution 📦 to PyPI
30
+ if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
31
+ needs:
32
+ - build
33
+ runs-on: ubuntu-latest
34
+ environment:
35
+ name: pypi
36
+ url: https://pypi.org/p/bloqade-circuit # Replace <package-name> with your PyPI project name
37
+ permissions:
38
+ id-token: write # IMPORTANT: mandatory for trusted publishing
39
+
40
+ steps:
41
+ - name: Download all the dists
42
+ uses: actions/download-artifact@v4
43
+ with:
44
+ name: python-package-distributions
45
+ path: dist/
46
+ - name: Publish distribution 📦 to PyPI
47
+ uses: pypa/gh-action-pypi-publish@release/v1
48
+
49
+ github-release:
50
+ name: >-
51
+ Sign the Python 🐍 distribution 📦 with Sigstore
52
+ and upload them to GitHub Release
53
+ needs:
54
+ - publish-to-pypi
55
+ runs-on: ubuntu-latest
56
+
57
+ permissions:
58
+ contents: write # IMPORTANT: mandatory for making GitHub Releases
59
+ id-token: write # IMPORTANT: mandatory for sigstore
60
+
61
+ steps:
62
+ - name: Download all the dists
63
+ uses: actions/download-artifact@v4
64
+ with:
65
+ name: python-package-distributions
66
+ path: dist/
67
+ - name: Sign the dists with Sigstore
68
+ uses: sigstore/gh-action-sigstore-python@v3.0.0
69
+ with:
70
+ inputs: >-
71
+ ./dist/*.tar.gz
72
+ ./dist/*.whl
73
+ - name: Create GitHub Release
74
+ env:
75
+ GITHUB_TOKEN: ${{ github.token }}
76
+ run: >-
77
+ gh release create
78
+ '${{ github.ref_name }}'
79
+ --repo '${{ github.repository }}'
80
+ --notes ""
81
+ - name: Upload artifact signatures to GitHub Release
82
+ env:
83
+ GITHUB_TOKEN: ${{ github.token }}
84
+ # Upload to GitHub Release using the `gh` CLI.
85
+ # `dist/` contains the built packages, and the
86
+ # sigstore-produced signatures and certificates.
87
+ run: >-
88
+ gh release upload
89
+ '${{ github.ref_name }}' dist/**
90
+ --repo '${{ github.repository }}'
@@ -0,0 +1,188 @@
1
+ # random
2
+ job.json
3
+ out.txt
4
+ .DS_Store
5
+ tests/data/jobs/
6
+ main.html
7
+ debug/
8
+
9
+ # Byte-compiled / optimized / DLL files
10
+ __pycache__/
11
+ *.py[cod]
12
+ *$py.class
13
+
14
+ # C extensions
15
+ *.so
16
+
17
+ # Distribution / packaging
18
+ .Python
19
+ build/
20
+ develop-eggs/
21
+ dist/
22
+ downloads/
23
+ eggs/
24
+ .eggs/
25
+ lib/
26
+ lib64/
27
+ parts/
28
+ sdist/
29
+ var/
30
+ wheels/
31
+ share/python-wheels/
32
+ *.egg-info/
33
+ .installed.cfg
34
+ *.egg
35
+ MANIFEST
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py,cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+ cover/
61
+
62
+ # Translations
63
+ *.mo
64
+ *.pot
65
+
66
+ # Django stuff:
67
+ *.log
68
+ local_settings.py
69
+ db.sqlite3
70
+ db.sqlite3-journal
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # doc slides
83
+ docs/slides/**/**.pdf
84
+ docs/slides/build/**/**.png
85
+ **/**/**.pptx
86
+
87
+ # mkdocs
88
+ site/
89
+ docs/reference/bloqade/
90
+
91
+ # PyBuilder
92
+ .pybuilder/
93
+ target/
94
+
95
+ # Jupyter Notebook
96
+ .ipynb_checkpoints
97
+
98
+ # IPython
99
+ profile_default/
100
+ ipython_config.py
101
+
102
+ # pyenv
103
+ # For a library or package, you might want to ignore these files since the code is
104
+ # intended to run in multiple environments; otherwise, check them in:
105
+ # .python-version
106
+
107
+ # pipenv
108
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
109
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
110
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
111
+ # install all needed dependencies.
112
+ #Pipfile.lock
113
+
114
+ # poetry
115
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
116
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
117
+ # commonly ignored for libraries.
118
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
119
+ #poetry.lock
120
+
121
+ # pdm
122
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
123
+ #pdm.lock
124
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
125
+ # in version control.
126
+ # https://pdm.fming.dev/#use-with-ide
127
+ .pdm.toml
128
+
129
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
130
+ __pypackages__/
131
+
132
+ # Celery stuff
133
+ celerybeat-schedule
134
+ celerybeat.pid
135
+
136
+ # SageMath parsed files
137
+ *.sage.py
138
+
139
+ # Environments
140
+ .env
141
+ .venv*
142
+ env/
143
+ venv/
144
+ ENV/
145
+ env.bak/
146
+ venv.bak/
147
+
148
+ # Spyder project settings
149
+ .spyderproject
150
+ .spyproject
151
+
152
+ # Rope project settings
153
+ .ropeproject
154
+
155
+ # mkdocs documentation
156
+ /site
157
+
158
+ # mypy
159
+ .mypy_cache/
160
+ .dmypy.json
161
+ dmypy.json
162
+
163
+ # Pyre type checker
164
+ .pyre/
165
+
166
+ # pytype static type analyzer
167
+ .pytype/
168
+
169
+ # Cython debug symbols
170
+ cython_debug/
171
+
172
+ # PyCharm
173
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
174
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
175
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
176
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
177
+ #.idea/
178
+
179
+ .vscode
180
+ !.vscode/settings.json
181
+ .pdm-python
182
+ main.py
183
+ *.ipynb
184
+ *.json
185
+ .ruff_cache
186
+ .python-version
187
+ !package.json
188
+ !src/**/**/main.py
@@ -0,0 +1,28 @@
1
+ # See https://pre-commit.com for more information
2
+ # See https://pre-commit.com/hooks.html for more hooks
3
+ repos:
4
+ - repo: https://github.com/pre-commit/pre-commit-hooks
5
+ rev: v5.0.0
6
+ hooks:
7
+ - id: check-yaml
8
+ args: ['--unsafe']
9
+ - id: end-of-file-fixer
10
+ - id: trailing-whitespace
11
+ - repo: https://github.com/pycqa/isort
12
+ rev: 6.0.1
13
+ hooks:
14
+ - id: isort
15
+ name: isort (python)
16
+ - repo: https://github.com/psf/black
17
+ rev: 24.10.0
18
+ hooks:
19
+ - id: black
20
+ - repo: https://github.com/charliermarsh/ruff-pre-commit
21
+ # Ruff version.
22
+ rev: "v0.9.2"
23
+ hooks:
24
+ - id: ruff
25
+ - repo: https://github.com/crate-ci/typos
26
+ rev: v1.29.4
27
+ hooks:
28
+ - id: typos
@@ -0,0 +1,234 @@
1
+ ==============================================================================
2
+ The Bloqade Project is under the Apache License v2.0 with LLVM Exceptions:
3
+ ==============================================================================
4
+
5
+ Apache License
6
+ Version 2.0, January 2004
7
+ http://www.apache.org/licenses/
8
+
9
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
10
+
11
+ 1. Definitions.
12
+
13
+ "License" shall mean the terms and conditions for use, reproduction,
14
+ and distribution as defined by Sections 1 through 9 of this document.
15
+
16
+ "Licensor" shall mean the copyright owner or entity authorized by
17
+ the copyright owner that is granting the License.
18
+
19
+ "Legal Entity" shall mean the union of the acting entity and all
20
+ other entities that control, are controlled by, or are under common
21
+ control with that entity. For the purposes of this definition,
22
+ "control" means (i) the power, direct or indirect, to cause the
23
+ direction or management of such entity, whether by contract or
24
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
25
+ outstanding shares, or (iii) beneficial ownership of such entity.
26
+
27
+ "You" (or "Your") shall mean an individual or Legal Entity
28
+ exercising permissions granted by this License.
29
+
30
+ "Source" form shall mean the preferred form for making modifications,
31
+ including but not limited to software source code, documentation
32
+ source, and configuration files.
33
+
34
+ "Object" form shall mean any form resulting from mechanical
35
+ transformation or translation of a Source form, including but
36
+ not limited to compiled object code, generated documentation,
37
+ and conversions to other media types.
38
+
39
+ "Work" shall mean the work of authorship, whether in Source or
40
+ Object form, made available under the License, as indicated by a
41
+ copyright notice that is included in or attached to the work
42
+ (an example is provided in the Appendix below).
43
+
44
+ "Derivative Works" shall mean any work, whether in Source or Object
45
+ form, that is based on (or derived from) the Work and for which the
46
+ editorial revisions, annotations, elaborations, or other modifications
47
+ represent, as a whole, an original work of authorship. For the purposes
48
+ of this License, Derivative Works shall not include works that remain
49
+ separable from, or merely link (or bind by name) to the interfaces of,
50
+ the Work and Derivative Works thereof.
51
+
52
+ "Contribution" shall mean any work of authorship, including
53
+ the original version of the Work and any modifications or additions
54
+ to that Work or Derivative Works thereof, that is intentionally
55
+ submitted to Licensor for inclusion in the Work by the copyright owner
56
+ or by an individual or Legal Entity authorized to submit on behalf of
57
+ the copyright owner. For the purposes of this definition, "submitted"
58
+ means any form of electronic, verbal, or written communication sent
59
+ to the Licensor or its representatives, including but not limited to
60
+ communication on electronic mailing lists, source code control systems,
61
+ and issue tracking systems that are managed by, or on behalf of, the
62
+ Licensor for the purpose of discussing and improving the Work, but
63
+ excluding communication that is conspicuously marked or otherwise
64
+ designated in writing by the copyright owner as "Not a Contribution."
65
+
66
+ "Contributor" shall mean Licensor and any individual or Legal Entity
67
+ on behalf of whom a Contribution has been received by Licensor and
68
+ subsequently incorporated within the Work.
69
+
70
+ 2. Grant of Copyright License. Subject to the terms and conditions of
71
+ this License, each Contributor hereby grants to You a perpetual,
72
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
73
+ copyright license to reproduce, prepare Derivative Works of,
74
+ publicly display, publicly perform, sublicense, and distribute the
75
+ Work and such Derivative Works in Source or Object form.
76
+
77
+ 3. Grant of Patent License. Subject to the terms and conditions of
78
+ this License, each Contributor hereby grants to You a perpetual,
79
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
80
+ (except as stated in this section) patent license to make, have made,
81
+ use, offer to sell, sell, import, and otherwise transfer the Work,
82
+ where such license applies only to those patent claims licensable
83
+ by such Contributor that are necessarily infringed by their
84
+ Contribution(s) alone or by combination of their Contribution(s)
85
+ with the Work to which such Contribution(s) was submitted. If You
86
+ institute patent litigation against any entity (including a
87
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
88
+ or a Contribution incorporated within the Work constitutes direct
89
+ or contributory patent infringement, then any patent licenses
90
+ granted to You under this License for that Work shall terminate
91
+ as of the date such litigation is filed.
92
+
93
+ 4. Redistribution. You may reproduce and distribute copies of the
94
+ Work or Derivative Works thereof in any medium, with or without
95
+ modifications, and in Source or Object form, provided that You
96
+ meet the following conditions:
97
+
98
+ (a) You must give any other recipients of the Work or
99
+ Derivative Works a copy of this License; and
100
+
101
+ (b) You must cause any modified files to carry prominent notices
102
+ stating that You changed the files; and
103
+
104
+ (c) You must retain, in the Source form of any Derivative Works
105
+ that You distribute, all copyright, patent, trademark, and
106
+ attribution notices from the Source form of the Work,
107
+ excluding those notices that do not pertain to any part of
108
+ the Derivative Works; and
109
+
110
+ (d) If the Work includes a "NOTICE" text file as part of its
111
+ distribution, then any Derivative Works that You distribute must
112
+ include a readable copy of the attribution notices contained
113
+ within such NOTICE file, excluding those notices that do not
114
+ pertain to any part of the Derivative Works, in at least one
115
+ of the following places: within a NOTICE text file distributed
116
+ as part of the Derivative Works; within the Source form or
117
+ documentation, if provided along with the Derivative Works; or,
118
+ within a display generated by the Derivative Works, if and
119
+ wherever such third-party notices normally appear. The contents
120
+ of the NOTICE file are for informational purposes only and
121
+ do not modify the License. You may add Your own attribution
122
+ notices within Derivative Works that You distribute, alongside
123
+ or as an addendum to the NOTICE text from the Work, provided
124
+ that such additional attribution notices cannot be construed
125
+ as modifying the License.
126
+
127
+ You may add Your own copyright statement to Your modifications and
128
+ may provide additional or different license terms and conditions
129
+ for use, reproduction, or distribution of Your modifications, or
130
+ for any such Derivative Works as a whole, provided Your use,
131
+ reproduction, and distribution of the Work otherwise complies with
132
+ the conditions stated in this License.
133
+
134
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
135
+ any Contribution intentionally submitted for inclusion in the Work
136
+ by You to the Licensor shall be under the terms and conditions of
137
+ this License, without any additional terms or conditions.
138
+ Notwithstanding the above, nothing herein shall supersede or modify
139
+ the terms of any separate license agreement you may have executed
140
+ with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade
143
+ names, trademarks, service marks, or product names of the Licensor,
144
+ except as required for reasonable and customary use in describing the
145
+ origin of the Work and reproducing the content of the NOTICE file.
146
+
147
+ 7. Disclaimer of Warranty. Unless required by applicable law or
148
+ agreed to in writing, Licensor provides the Work (and each
149
+ Contributor provides its Contributions) on an "AS IS" BASIS,
150
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
151
+ implied, including, without limitation, any warranties or conditions
152
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
153
+ PARTICULAR PURPOSE. You are solely responsible for determining the
154
+ appropriateness of using or redistributing the Work and assume any
155
+ risks associated with Your exercise of permissions under this License.
156
+
157
+ 8. Limitation of Liability. In no event and under no legal theory,
158
+ whether in tort (including negligence), contract, or otherwise,
159
+ unless required by applicable law (such as deliberate and grossly
160
+ negligent acts) or agreed to in writing, shall any Contributor be
161
+ liable to You for damages, including any direct, indirect, special,
162
+ incidental, or consequential damages of any character arising as a
163
+ result of this License or out of the use or inability to use the
164
+ Work (including but not limited to damages for loss of goodwill,
165
+ work stoppage, computer failure or malfunction, or any and all
166
+ other commercial damages or losses), even if such Contributor
167
+ has been advised of the possibility of such damages.
168
+
169
+ 9. Accepting Warranty or Additional Liability. While redistributing
170
+ the Work or Derivative Works thereof, You may choose to offer,
171
+ and charge a fee for, acceptance of support, warranty, indemnity,
172
+ or other liability obligations and/or rights consistent with this
173
+ License. However, in accepting such obligations, You may act only
174
+ on Your own behalf and on Your sole responsibility, not on behalf
175
+ of any other Contributor, and only if You agree to indemnify,
176
+ defend, and hold each Contributor harmless for any liability
177
+ incurred by, or claims asserted against, such Contributor by reason
178
+ of your accepting any such warranty or additional liability.
179
+
180
+ END OF TERMS AND CONDITIONS
181
+
182
+ APPENDIX: How to apply the Apache License to your work.
183
+
184
+ To apply the Apache License to your work, attach the following
185
+ boilerplate notice, with the fields enclosed by brackets "[]"
186
+ replaced with your own identifying information. (Don't include
187
+ the brackets!) The text should be enclosed in the appropriate
188
+ comment syntax for the file format. We also recommend that a
189
+ file or class name and description of purpose be included on the
190
+ same "printed page" as the copyright notice for easier
191
+ identification within third-party archives.
192
+
193
+ Copyright [yyyy] [name of copyright owner]
194
+
195
+ Licensed under the Apache License, Version 2.0 (the "License");
196
+ you may not use this file except in compliance with the License.
197
+ You may obtain a copy of the License at
198
+
199
+ http://www.apache.org/licenses/LICENSE-2.0
200
+
201
+ Unless required by applicable law or agreed to in writing, software
202
+ distributed under the License is distributed on an "AS IS" BASIS,
203
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
204
+ See the License for the specific language governing permissions and
205
+ limitations under the License.
206
+
207
+
208
+ ---- LLVM Exceptions to the Apache 2.0 License ----
209
+
210
+ As an exception, if, as a result of your compiling your source code, portions
211
+ of this Software are embedded into an Object form of such source code, you
212
+ may redistribute such embedded portions in such Object form without complying
213
+ with the conditions of Sections 4(a), 4(b) and 4(d) of the License.
214
+
215
+ In addition, if you combine or link compiled forms of this Software with
216
+ software that is licensed under the GPLv2 ("Combined Software") and if a
217
+ court of competent jurisdiction determines that the patent provision (Section
218
+ 3), the indemnity provision (Section 9) or other Section of the License
219
+ conflicts with the conditions of the GPLv2, you may retroactively and
220
+ prospectively choose to deem waived or otherwise exclude such Section(s) of
221
+ the License, but only in their entirety and only with respect to the Combined
222
+ Software.
223
+
224
+ ==============================================================================
225
+ Software from third parties included in the Bloqade Project:
226
+ ==============================================================================
227
+ The Bloqade Project contains third party software which is under different license
228
+ terms. All such code will be identified clearly using at least one of two
229
+ mechanisms:
230
+ 1) It will be in a separate directory tree with its own `LICENSE.txt` or
231
+ `LICENSE` file at the top containing the specific license and restrictions
232
+ which apply to that software, or
233
+ 2) It will contain specific license and restriction terms at the top of every
234
+ file.