compiled-knowledge 4.0.0a18__tar.gz → 4.0.0a20__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 compiled-knowledge might be problematic. Click here for more details.

Files changed (185) hide show
  1. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/LICENSE.txt +21 -21
  2. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/MANIFEST.in +1 -1
  3. {compiled_knowledge-4.0.0a18/src/compiled_knowledge.egg-info → compiled_knowledge-4.0.0a20}/PKG-INFO +50 -50
  4. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/README.md +33 -33
  5. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/pyproject.toml +50 -49
  6. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/setup.cfg +4 -4
  7. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/setup.py +70 -57
  8. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit/__init__.py +17 -20
  9. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit/_circuit_cy.c +37520 -38530
  10. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit/_circuit_cy.pxd +32 -33
  11. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit/_circuit_cy.pyx +768 -767
  12. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit/_circuit_py.py +836 -836
  13. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit/tmp_const.py +74 -74
  14. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/__init__.py +2 -2
  15. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/circuit_compiler.py +26 -26
  16. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/cython_vm_compiler/__init__.py +1 -1
  17. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/cython_vm_compiler/_compiler.c +19821 -16959
  18. compiled_knowledge-4.0.0a20/src/ck/circuit_compiler/cython_vm_compiler/_compiler.pyx +380 -0
  19. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/cython_vm_compiler/cython_vm_compiler.py +121 -96
  20. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/interpret_compiler.py +223 -223
  21. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/llvm_compiler.py +388 -388
  22. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/llvm_vm_compiler.py +546 -546
  23. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/named_circuit_compilers.py +57 -57
  24. compiled_knowledge-4.0.0a20/src/ck/circuit_compiler/support/circuit_analyser/__init__.py +13 -0
  25. compiled_knowledge-4.0.0a20/src/ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_cy.c +10615 -0
  26. compiled_knowledge-4.0.0a20/src/ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_cy.pyx +98 -0
  27. compiled_knowledge-4.0.0a18/src/ck/circuit_compiler/support/circuit_analyser.py → compiled_knowledge-4.0.0a20/src/ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_py.py +93 -81
  28. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/support/input_vars.py +148 -148
  29. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/support/llvm_ir_function.py +234 -234
  30. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/__init__.py +53 -53
  31. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/alarm.py +366 -366
  32. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/asia.py +28 -28
  33. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/binary_clique.py +32 -32
  34. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/bow_tie.py +33 -33
  35. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/cancer.py +37 -37
  36. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/chain.py +38 -38
  37. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/child.py +199 -199
  38. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/clique.py +33 -33
  39. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/cnf_pgm.py +39 -39
  40. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/diamond_square.py +68 -68
  41. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/earthquake.py +36 -36
  42. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/empty.py +10 -10
  43. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/hailfinder.py +539 -539
  44. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/hepar2.py +628 -628
  45. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/insurance.py +504 -504
  46. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/loop.py +40 -40
  47. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/mildew.py +38161 -38161
  48. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/munin.py +22982 -22982
  49. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/pathfinder.py +53747 -53747
  50. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/rain.py +39 -39
  51. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/rectangle.py +161 -161
  52. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/run.py +30 -30
  53. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/sachs.py +129 -129
  54. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/sprinkler.py +30 -30
  55. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/star.py +44 -44
  56. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/stress.py +64 -64
  57. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/student.py +43 -43
  58. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/survey.py +46 -46
  59. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/triangle_square.py +54 -54
  60. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/example/truss.py +49 -49
  61. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/__init__.py +3 -3
  62. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/parse_ace_lmap.py +216 -216
  63. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/parse_ace_nnf.py +322 -322
  64. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/parse_net.py +480 -480
  65. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/parser_utils.py +185 -185
  66. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/pgm_pickle.py +42 -42
  67. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/pgm_python.py +268 -268
  68. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/render_bugs.py +111 -111
  69. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/render_net.py +177 -177
  70. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/in_out/render_pomegranate.py +184 -184
  71. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm.py +3475 -3475
  72. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/__init__.py +1 -1
  73. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/marginals_program.py +352 -352
  74. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/mpe_program.py +237 -237
  75. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/pgm_circuit.py +79 -79
  76. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/program_with_slotmap.py +236 -236
  77. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/slot_map.py +35 -35
  78. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/support/compile_circuit.py +83 -83
  79. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/target_marginals_program.py +103 -103
  80. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/wmc_program.py +323 -323
  81. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/__init__.py +2 -2
  82. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/ace/__init__.py +1 -1
  83. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/ace/ace.py +299 -299
  84. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/factor_elimination.py +395 -395
  85. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/named_pgm_compilers.py +63 -63
  86. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/pgm_compiler.py +19 -19
  87. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/recursive_conditioning.py +231 -231
  88. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/circuit_table/__init__.py +17 -16
  89. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy.c +16393 -16288
  90. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy.pyx +332 -332
  91. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/circuit_table/_circuit_table_py.py +304 -304
  92. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/clusters.py +568 -568
  93. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/factor_tables.py +406 -406
  94. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/join_tree.py +332 -332
  95. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/named_compiler_maker.py +43 -43
  96. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/variable_elimination.py +91 -91
  97. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/probability/empirical_probability_space.py +50 -50
  98. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/probability/pgm_probability_space.py +32 -32
  99. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/probability/probability_space.py +622 -622
  100. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/program/__init__.py +3 -3
  101. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/program/program.py +137 -137
  102. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/program/program_buffer.py +180 -180
  103. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/program/raw_program.py +67 -67
  104. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/forward_sampler.py +211 -211
  105. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/marginals_direct_sampler.py +113 -113
  106. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/sampler.py +62 -62
  107. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/sampler_support.py +232 -232
  108. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/uniform_sampler.py +72 -72
  109. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/wmc_direct_sampler.py +171 -171
  110. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/wmc_gibbs_sampler.py +153 -153
  111. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/wmc_metropolis_sampler.py +165 -165
  112. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/wmc_rejection_sampler.py +115 -115
  113. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/iter_extras.py +163 -163
  114. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/local_config.py +270 -270
  115. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/map_list.py +128 -128
  116. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/map_set.py +128 -128
  117. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/np_extras.py +51 -51
  118. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/random_extras.py +64 -64
  119. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/tmp_dir.py +94 -94
  120. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/ace/copy_ace_to_ck.py +15 -15
  121. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/ace/demo_ace.py +49 -44
  122. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/all_demos.py +88 -88
  123. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/circuit/demo_circuit_dump.py +22 -22
  124. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/circuit/demo_derivatives.py +43 -43
  125. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/circuit_compiler/compare_circuit_compilers.py +32 -32
  126. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/circuit_compiler/show_llvm_program.py +26 -26
  127. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm/demo_pgm_dump.py +18 -18
  128. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm/demo_pgm_dump_stress.py +18 -18
  129. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm/demo_pgm_string_rendering.py +15 -15
  130. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm/show_examples.py +25 -25
  131. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/compare_pgm_compilers.py +63 -63
  132. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_compiler_dump.py +60 -60
  133. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_factor_elimination.py +47 -47
  134. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_join_tree.py +25 -25
  135. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_marginals_program.py +53 -53
  136. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_mpe_program.py +55 -55
  137. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_pgm_compiler.py +38 -38
  138. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_recursive_conditioning.py +33 -33
  139. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_variable_elimination.py +33 -33
  140. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/demo_wmc_program.py +29 -29
  141. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/time_fe_compiler.py +93 -93
  142. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_inference/demo_inferencing_basic.py +188 -188
  143. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_inference/demo_inferencing_mpe_cancer.py +45 -45
  144. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_inference/demo_inferencing_wmc_and_mpe_sprinkler.py +154 -154
  145. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_inference/demo_inferencing_wmc_student.py +110 -110
  146. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/demo_program_buffer.py +24 -24
  147. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/demo_program_multi.py +24 -24
  148. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/demo_program_none.py +19 -19
  149. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/demo_program_single.py +23 -23
  150. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/demo_raw_program_interpreted.py +21 -21
  151. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/demo_raw_program_llvm.py +21 -21
  152. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/sampling/check_sampler.py +71 -71
  153. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/sampling/demo_marginal_direct_sampler.py +40 -40
  154. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/sampling/demo_uniform_sampler.py +38 -38
  155. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/sampling/demo_wmc_direct_sampler.py +40 -40
  156. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/utils/compare.py +120 -120
  157. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/utils/convert_network.py +45 -45
  158. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/utils/sample_model.py +216 -216
  159. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/utils/stop_watch.py +384 -384
  160. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20/src/compiled_knowledge.egg-info}/PKG-INFO +50 -50
  161. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/compiled_knowledge.egg-info/SOURCES.txt +7 -7
  162. compiled_knowledge-4.0.0a18/src/ck/circuit_compiler/cython_vm_compiler/_compiler.pyx +0 -267
  163. compiled_knowledge-4.0.0a18/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy_cpp_verion.pyx +0 -601
  164. compiled_knowledge-4.0.0a18/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy_minimal_version.pyx +0 -311
  165. compiled_knowledge-4.0.0a18/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy_v4.0.0a17.pyx +0 -325
  166. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/__init__.py +0 -0
  167. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/circuit_compiler/support/__init__.py +0 -0
  168. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_circuit/support/__init__.py +0 -0
  169. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/pgm_compiler/support/__init__.py +0 -0
  170. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/probability/__init__.py +0 -0
  171. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/sampling/__init__.py +0 -0
  172. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck/utils/__init__.py +0 -0
  173. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/__init__.py +0 -0
  174. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/ace/__init__.py +0 -0
  175. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/circuit/__init__.py +0 -0
  176. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/circuit_compiler/__init__.py +0 -0
  177. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm/__init__.py +0 -0
  178. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_compiler/__init__.py +0 -0
  179. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/pgm_inference/__init__.py +0 -0
  180. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/programs/__init__.py +0 -0
  181. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/sampling/__init__.py +0 -0
  182. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/ck_demos/utils/__init__.py +0 -0
  183. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/compiled_knowledge.egg-info/dependency_links.txt +0 -0
  184. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/compiled_knowledge.egg-info/requires.txt +0 -0
  185. {compiled_knowledge-4.0.0a18 → compiled_knowledge-4.0.0a20}/src/compiled_knowledge.egg-info/top_level.txt +0 -0
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Barry Drake
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Barry Drake
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1 +1 @@
1
- global-include *.pyx *.pxd
1
+ global-include *.pyx *.pxd
@@ -1,50 +1,50 @@
1
- Metadata-Version: 2.4
2
- Name: compiled-knowledge
3
- Version: 4.0.0a18
4
- Summary: A Python package for compiling and querying discrete probabilistic graphical models.
5
- Author-email: Barry Drake <barry@compiledknowledge.org>
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/ropeless/compiled_knowledge
8
- Project-URL: Issues, https://github.com/ropeless/compiled_knowledge/issues
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.12
12
- Description-Content-Type: text/markdown
13
- License-File: LICENSE.txt
14
- Requires-Dist: llvmlite
15
- Requires-Dist: numpy
16
- Dynamic: license-file
17
-
18
- Compiled Knowledge
19
- ==================
20
-
21
- Compiled Knowledge is a Python package for compiling and querying discrete probabilistic graphical models.
22
- The aim of the project is:
23
- - to provide a Python library for compiling and querying
24
- probabilistic graphical models, specifically discrete factor graphs,
25
- which includes Bayesian networks
26
- - to be extremely efficient, flexible, and easy to use
27
- - to exhibit excellent design, code, and documentation
28
- - to support researchers and businesses wanting to explore and use
29
- probabilistic artificial intelligence.
30
-
31
- License
32
- =======
33
-
34
- MIT license (see the file `LICENSE.txt`).
35
-
36
-
37
- More Information
38
- ================
39
-
40
- Refer to the project online documentation at
41
- [compiled-knowledge.readthedocs.io](https://compiled-knowledge.readthedocs.io/).
42
-
43
- The primary repository for the project is
44
- [github.com/ropeless/compiled_knowledge](https://github.com/ropeless/compiled_knowledge).
45
-
46
- The Python package is available on PyPI, see
47
- [pypi.org/project/compiled-knowledge](https://pypi.org/project/compiled-knowledge/).
48
-
49
- For more information email
50
- [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
1
+ Metadata-Version: 2.4
2
+ Name: compiled-knowledge
3
+ Version: 4.0.0a20
4
+ Summary: A Python package for compiling and querying discrete probabilistic graphical models.
5
+ Author-email: Barry Drake <barry@compiledknowledge.org>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ropeless/compiled_knowledge
8
+ Project-URL: Issues, https://github.com/ropeless/compiled_knowledge/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.12
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE.txt
14
+ Requires-Dist: llvmlite
15
+ Requires-Dist: numpy
16
+ Dynamic: license-file
17
+
18
+ Compiled Knowledge
19
+ ==================
20
+
21
+ Compiled Knowledge is a Python package for compiling and querying discrete probabilistic graphical models.
22
+ The aim of the project is:
23
+ - to provide a Python library for compiling and querying
24
+ probabilistic graphical models, specifically discrete factor graphs,
25
+ which includes Bayesian networks
26
+ - to be extremely efficient, flexible, and easy to use
27
+ - to exhibit excellent design, code, and documentation
28
+ - to support researchers and businesses wanting to explore and use
29
+ probabilistic artificial intelligence.
30
+
31
+ License
32
+ =======
33
+
34
+ MIT license (see the file `LICENSE.txt`).
35
+
36
+
37
+ More Information
38
+ ================
39
+
40
+ Refer to the project online documentation at
41
+ [compiled-knowledge.readthedocs.io](https://compiled-knowledge.readthedocs.io/).
42
+
43
+ The primary repository for the project is
44
+ [github.com/ropeless/compiled_knowledge](https://github.com/ropeless/compiled_knowledge).
45
+
46
+ The Python package is available on PyPI, see
47
+ [pypi.org/project/compiled-knowledge](https://pypi.org/project/compiled-knowledge/).
48
+
49
+ For more information email
50
+ [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
@@ -1,33 +1,33 @@
1
- Compiled Knowledge
2
- ==================
3
-
4
- Compiled Knowledge is a Python package for compiling and querying discrete probabilistic graphical models.
5
- The aim of the project is:
6
- - to provide a Python library for compiling and querying
7
- probabilistic graphical models, specifically discrete factor graphs,
8
- which includes Bayesian networks
9
- - to be extremely efficient, flexible, and easy to use
10
- - to exhibit excellent design, code, and documentation
11
- - to support researchers and businesses wanting to explore and use
12
- probabilistic artificial intelligence.
13
-
14
- License
15
- =======
16
-
17
- MIT license (see the file `LICENSE.txt`).
18
-
19
-
20
- More Information
21
- ================
22
-
23
- Refer to the project online documentation at
24
- [compiled-knowledge.readthedocs.io](https://compiled-knowledge.readthedocs.io/).
25
-
26
- The primary repository for the project is
27
- [github.com/ropeless/compiled_knowledge](https://github.com/ropeless/compiled_knowledge).
28
-
29
- The Python package is available on PyPI, see
30
- [pypi.org/project/compiled-knowledge](https://pypi.org/project/compiled-knowledge/).
31
-
32
- For more information email
33
- [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
1
+ Compiled Knowledge
2
+ ==================
3
+
4
+ Compiled Knowledge is a Python package for compiling and querying discrete probabilistic graphical models.
5
+ The aim of the project is:
6
+ - to provide a Python library for compiling and querying
7
+ probabilistic graphical models, specifically discrete factor graphs,
8
+ which includes Bayesian networks
9
+ - to be extremely efficient, flexible, and easy to use
10
+ - to exhibit excellent design, code, and documentation
11
+ - to support researchers and businesses wanting to explore and use
12
+ probabilistic artificial intelligence.
13
+
14
+ License
15
+ =======
16
+
17
+ MIT license (see the file `LICENSE.txt`).
18
+
19
+
20
+ More Information
21
+ ================
22
+
23
+ Refer to the project online documentation at
24
+ [compiled-knowledge.readthedocs.io](https://compiled-knowledge.readthedocs.io/).
25
+
26
+ The primary repository for the project is
27
+ [github.com/ropeless/compiled_knowledge](https://github.com/ropeless/compiled_knowledge).
28
+
29
+ The Python package is available on PyPI, see
30
+ [pypi.org/project/compiled-knowledge](https://pypi.org/project/compiled-knowledge/).
31
+
32
+ For more information email
33
+ [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
@@ -1,49 +1,50 @@
1
- [project]
2
- name = "compiled-knowledge"
3
- version = "4.0.0a18"
4
- description = "A Python package for compiling and querying discrete probabilistic graphical models."
5
- readme = "README.md"
6
- license = "MIT"
7
- license-files = ["LICEN[CS]E*"]
8
- authors = [
9
- {name = "Barry Drake", email ="barry@compiledknowledge.org"},
10
- ]
11
- dependencies = [
12
- "llvmlite",
13
- "numpy",
14
- ]
15
- requires-python = ">= 3.12"
16
- classifiers = [
17
- "Programming Language :: Python :: 3",
18
- "Operating System :: OS Independent",
19
- ]
20
-
21
- [doc_extra]
22
- version_note = "This is a prerelease version made available for community feedback. Features and API may change."
23
-
24
-
25
- [project.urls]
26
- Homepage = "https://github.com/ropeless/compiled_knowledge"
27
- Issues = "https://github.com/ropeless/compiled_knowledge/issues"
28
-
29
- [tool.poetry]
30
- package-mode = false # only using poetry for dependency management
31
-
32
- [tool.poetry.group.dev.dependencies]
33
- cython = "^3.0.0"
34
- jupyter = "*"
35
- setuptools = "*"
36
- build = "*"
37
- jupyter-book = "*"
38
- twine = "*"
39
- toml = "*"
40
-
41
- [tool.poetry.group.test.dependencies]
42
- coverage = "*"
43
-
44
- [build-system]
45
- requires = ["setuptools", "cython", "numpy"]
46
- build-backend = "setuptools.build_meta"
47
-
48
- [tool.setuptools.packages.find]
49
- where = ["src"]
1
+ [project]
2
+ name = "compiled-knowledge"
3
+ version = "4.0.0a20"
4
+ description = "A Python package for compiling and querying discrete probabilistic graphical models."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICEN[CS]E*"]
8
+ authors = [
9
+ {name = "Barry Drake", email ="barry@compiledknowledge.org"},
10
+ ]
11
+ dependencies = [
12
+ "llvmlite",
13
+ "numpy",
14
+ ]
15
+ requires-python = ">= 3.12"
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+
21
+ [doc_extra]
22
+ version_note = "This is a prerelease version made available for community feedback. Features and API may change."
23
+
24
+
25
+ [project.urls]
26
+ Homepage = "https://github.com/ropeless/compiled_knowledge"
27
+ Issues = "https://github.com/ropeless/compiled_knowledge/issues"
28
+
29
+ [tool.poetry]
30
+ package-mode = false # only using poetry for dependency management
31
+
32
+ [tool.poetry.group.dev.dependencies]
33
+ cython = "^3.0.0"
34
+ jupyter = "*"
35
+ setuptools = "*"
36
+ build = "*"
37
+ cibuildwheel = "*"
38
+ jupyter-book = "*"
39
+ twine = "*"
40
+ toml = "*"
41
+
42
+ [tool.poetry.group.test.dependencies]
43
+ coverage = "*"
44
+
45
+ [build-system]
46
+ requires = ["setuptools", "cython", "numpy"]
47
+ build-backend = "setuptools.build_meta"
48
+
49
+ [tool.setuptools.packages.find]
50
+ where = ["src"]
@@ -1,4 +1,4 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -1,57 +1,70 @@
1
- # setup.py
2
- #
3
- # Usage:
4
- # python setup.py build_ext --inplace
5
- # python setup.py sdist bdist_wheel
6
- import sys
7
- from pathlib import Path
8
- from typing import List, Dict, Tuple
9
-
10
- import numpy as np
11
- from Cython.Build import cythonize
12
- from setuptools import Extension
13
- from setuptools import setup
14
-
15
-
16
- MODULE_CIRCUIT: str = 'ck.circuit._circuit_cy'
17
- MODULE_CIRCUIT_TABLE: str = 'ck.pgm_compiler.support.circuit_table._circuit_table_cy'
18
- MODULE_CIRCUIT_COMPILER: str = 'ck.circuit_compiler.cython_vm_compiler._compiler'
19
-
20
- CYTHON_MODULES: List[str] = [MODULE_CIRCUIT, MODULE_CIRCUIT_TABLE, MODULE_CIRCUIT_COMPILER]
21
-
22
- COMPILER_ARGS: List[str] = ['-Wno-unreachable-code'] if sys.platform == 'darwin' else []
23
- DEFINE_MACROS: List[Tuple[str, str]] = [('NPY_NO_DEPRECATED_API', '1')]
24
-
25
- INCLUDE_CK: str = str(Path('src').absolute())
26
- INCLUDE_NP: str = np.get_include()
27
-
28
-
29
- def pyx(module: str) -> str:
30
- return 'src/' + module.replace('.', '/') + '.pyx'
31
-
32
-
33
- CYTHON_EXTENSIONS: List[Extension] = [
34
- Extension(
35
- MODULE_CIRCUIT,
36
- [pyx(MODULE_CIRCUIT)],
37
- include_dirs=[INCLUDE_NP],
38
- define_macros=DEFINE_MACROS,
39
- extra_compile_args=COMPILER_ARGS,
40
- ),
41
- Extension(
42
- MODULE_CIRCUIT_TABLE,
43
- [pyx(MODULE_CIRCUIT_TABLE)],
44
- include_dirs=[INCLUDE_NP],
45
- define_macros=DEFINE_MACROS,
46
- extra_compile_args=COMPILER_ARGS,
47
- ),
48
- Extension(
49
- MODULE_CIRCUIT_COMPILER,
50
- [pyx(MODULE_CIRCUIT_COMPILER)],
51
- include_dirs=[INCLUDE_NP],
52
- define_macros=DEFINE_MACROS,
53
- extra_compile_args=COMPILER_ARGS,
54
- ),
55
- ]
56
-
57
- setup(ext_modules=cythonize(CYTHON_EXTENSIONS, include_path=[INCLUDE_CK]))
1
+ # setup.py
2
+ #
3
+ # Usage:
4
+ # python setup.py build_ext --inplace
5
+ # python setup.py sdist bdist_wheel
6
+ import sys
7
+ from pathlib import Path
8
+ from typing import List, Tuple
9
+
10
+ import numpy as np
11
+ from Cython.Build import cythonize
12
+ from setuptools import Extension
13
+ from setuptools import setup
14
+
15
+
16
+ MODULE_CIRCUIT: str = 'ck.circuit._circuit_cy'
17
+ MODULE_CIRCUIT_TABLE: str = 'ck.pgm_compiler.support.circuit_table._circuit_table_cy'
18
+ MODULE_CIRCUIT_ANALYSER: str = 'ck.circuit_compiler.support.circuit_analyser._circuit_analyser_cy'
19
+ MODULE_CIRCUIT_COMPILER: str = 'ck.circuit_compiler.cython_vm_compiler._compiler'
20
+
21
+ CYTHON_MODULES: List[str] = [MODULE_CIRCUIT, MODULE_CIRCUIT_TABLE, MODULE_CIRCUIT_COMPILER]
22
+
23
+ COMPILER_ARGS: List[str] = []
24
+ if sys.platform == 'darwin':
25
+ COMPILER_ARGS += ['-Wno-unreachable-code', '-Wno-unused-function', '-O3']
26
+ if sys.platform == 'win32':
27
+ COMPILER_ARGS += ['/O2']
28
+
29
+ DEFINE_MACROS: List[Tuple[str, str]] = [('NPY_NO_DEPRECATED_API', '1')]
30
+
31
+ INCLUDE_CK: str = str(Path('src').absolute())
32
+ INCLUDE_NP: str = np.get_include()
33
+
34
+
35
+ def pyx(module: str) -> str:
36
+ return 'src/' + module.replace('.', '/') + '.pyx'
37
+
38
+
39
+ CYTHON_EXTENSIONS: List[Extension] = [
40
+ Extension(
41
+ MODULE_CIRCUIT,
42
+ [pyx(MODULE_CIRCUIT)],
43
+ include_dirs=[INCLUDE_NP],
44
+ define_macros=DEFINE_MACROS,
45
+ extra_compile_args=COMPILER_ARGS,
46
+ ),
47
+ Extension(
48
+ MODULE_CIRCUIT_TABLE,
49
+ [pyx(MODULE_CIRCUIT_TABLE)],
50
+ include_dirs=[INCLUDE_NP],
51
+ define_macros=DEFINE_MACROS,
52
+ extra_compile_args=COMPILER_ARGS,
53
+ ),
54
+ Extension(
55
+ MODULE_CIRCUIT_ANALYSER,
56
+ [pyx(MODULE_CIRCUIT_ANALYSER)],
57
+ include_dirs=[INCLUDE_NP],
58
+ define_macros=DEFINE_MACROS,
59
+ extra_compile_args=COMPILER_ARGS,
60
+ ),
61
+ Extension(
62
+ MODULE_CIRCUIT_COMPILER,
63
+ [pyx(MODULE_CIRCUIT_COMPILER)],
64
+ include_dirs=[INCLUDE_NP],
65
+ define_macros=DEFINE_MACROS,
66
+ extra_compile_args=COMPILER_ARGS,
67
+ ),
68
+ ]
69
+
70
+ setup(ext_modules=cythonize(CYTHON_EXTENSIONS, include_path=[INCLUDE_CK]))
@@ -1,20 +1,17 @@
1
- # There are two implementations of the `circuit` module are provided
2
- # for developer R&D purposes. One is pure Python and the other is Cython.
3
- # Which implementation is used can be selected here.
4
- # A similar selection can be made for the `circuit_table` module.
5
- # Note that if the Cython implementation is chosen for `circuit_table` then
6
- # the Cython implementation must be chosen for `circuit`.
7
-
8
- # from ._circuit_py import (
9
- from ._circuit_cy import (
10
- Circuit,
11
- CircuitNode,
12
- VarNode,
13
- ConstNode,
14
- OpNode,
15
- Args,
16
- ConstValue,
17
- MUL,
18
- ADD,
19
- )
20
- from .tmp_const import TmpConst
1
+ # There are two implementations of the `circuit` module are provided
2
+ # for developer R&D purposes. One is pure Python and the other is Cython.
3
+ # Which implementation is used can be selected here.
4
+
5
+ # from ._circuit_py import (
6
+ from ._circuit_cy import (
7
+ Circuit,
8
+ CircuitNode,
9
+ VarNode,
10
+ ConstNode,
11
+ OpNode,
12
+ Args,
13
+ ConstValue,
14
+ MUL,
15
+ ADD,
16
+ )
17
+ from .tmp_const import TmpConst