compiled-knowledge 4.0.0a24__cp312-cp312-macosx_10_13_x86_64.whl → 4.0.0a25__cp312-cp312-macosx_10_13_x86_64.whl

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 (29) hide show
  1. ck/circuit/_circuit_cy.c +1 -1
  2. ck/circuit/_circuit_cy.cpython-312-darwin.so +0 -0
  3. ck/circuit/tmp_const.py +5 -4
  4. ck/circuit_compiler/cython_vm_compiler/_compiler.c +152 -152
  5. ck/circuit_compiler/cython_vm_compiler/_compiler.cpython-312-darwin.so +0 -0
  6. ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_cy.c +1 -1
  7. ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_cy.cpython-312-darwin.so +0 -0
  8. ck/circuit_compiler/support/llvm_ir_function.py +4 -4
  9. ck/example/diamond_square.py +3 -1
  10. ck/example/triangle_square.py +3 -1
  11. ck/example/truss.py +3 -1
  12. ck/in_out/parse_net.py +21 -19
  13. ck/in_out/parser_utils.py +7 -3
  14. ck/pgm.py +67 -58
  15. ck/pgm_circuit/mpe_program.py +3 -4
  16. ck/pgm_circuit/pgm_circuit.py +27 -18
  17. ck/pgm_circuit/program_with_slotmap.py +4 -1
  18. ck/pgm_compiler/support/circuit_table/_circuit_table_cy.c +1 -1
  19. ck/pgm_compiler/support/circuit_table/_circuit_table_cy.cpython-312-darwin.so +0 -0
  20. ck/probability/probability_space.py +10 -11
  21. ck/program/raw_program.py +23 -16
  22. ck/sampling/sampler_support.py +5 -6
  23. ck/utils/iter_extras.py +3 -2
  24. ck/utils/local_config.py +16 -8
  25. {compiled_knowledge-4.0.0a24.dist-info → compiled_knowledge-4.0.0a25.dist-info}/METADATA +1 -1
  26. {compiled_knowledge-4.0.0a24.dist-info → compiled_knowledge-4.0.0a25.dist-info}/RECORD +29 -29
  27. {compiled_knowledge-4.0.0a24.dist-info → compiled_knowledge-4.0.0a25.dist-info}/WHEEL +0 -0
  28. {compiled_knowledge-4.0.0a24.dist-info → compiled_knowledge-4.0.0a25.dist-info}/licenses/LICENSE.txt +0 -0
  29. {compiled_knowledge-4.0.0a24.dist-info → compiled_knowledge-4.0.0a25.dist-info}/top_level.txt +0 -0
ck/circuit/_circuit_cy.c CHANGED
@@ -15,7 +15,7 @@
15
15
  "-O3"
16
16
  ],
17
17
  "include_dirs": [
18
- "/private/var/folders/vk/nx37ffx50hv5djclhltc26vw0000gn/T/build-env-ru8bnhlf/lib/python3.12/site-packages/numpy/_core/include"
18
+ "/private/var/folders/vk/nx37ffx50hv5djclhltc26vw0000gn/T/build-env-ny4q496c/lib/python3.12/site-packages/numpy/_core/include"
19
19
  ],
20
20
  "name": "ck.circuit._circuit_cy",
21
21
  "sources": [
ck/circuit/tmp_const.py CHANGED
@@ -10,15 +10,16 @@ class TmpConst:
10
10
  A TmpConst enables the consistent, temporary setting and clearing
11
11
  of circuit variables to constant values.
12
12
 
13
- Example usage:
13
+ Example usage::
14
+
14
15
  with TmpConst(my_circuit) as tmp:
15
16
  tmp.set_const(0, 123.456)
16
17
  tmp.set_const(my_list_of_vars, 110.99)
17
18
  program = Program(my_top)
18
- # now use 'program'
19
+ # now use `program`
19
20
 
20
- Within the 'with' section, circuit variables are set to const values, which
21
- the compiler can optimise. When the 'with' section exits, the variables
21
+ Within the `with` section, circuit variables are set to const values, which
22
+ the compiler can optimise. When the `with` section exits, the variables
22
23
  are restored to their original state.
23
24
  """
24
25
  __slots__ = ('_circuit', '_undo')