PyQrackIsing 9.16.1__tar.gz → 9.16.2__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 (36) hide show
  1. {pyqrackising-9.16.1/pyqrackising.egg-info → pyqrackising-9.16.2}/PKG-INFO +1 -1
  2. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyproject.toml +1 -1
  3. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/spin_glass_solver.py +2 -2
  4. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/spin_glass_solver_sparse.py +2 -2
  5. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/spin_glass_solver_streaming.py +2 -2
  6. {pyqrackising-9.16.1 → pyqrackising-9.16.2/pyqrackising.egg-info}/PKG-INFO +1 -1
  7. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/setup.py +1 -1
  8. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/LICENSE.md +0 -0
  9. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/MANIFEST.in +0 -0
  10. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/README.md +0 -0
  11. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/__init__.py +0 -0
  12. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
  13. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/generate_tfim_samples.py +0 -0
  14. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/kernels.cl +0 -0
  15. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/maxcut_tfim.py +0 -0
  16. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/maxcut_tfim_sparse.py +0 -0
  17. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/maxcut_tfim_streaming.py +0 -0
  18. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/maxcut_tfim_util.py +0 -0
  19. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/otoc.py +0 -0
  20. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/solve_maxcut_bnb.py +0 -0
  21. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/solve_maxcut_bnb_sparse.py +0 -0
  22. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/solve_maxcut_bnb_streaming.py +0 -0
  23. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/solve_maxcut_exact.py +0 -0
  24. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/solve_maxcut_exact_sparse.py +0 -0
  25. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/solve_maxcut_exact_streaming.py +0 -0
  26. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/spin_glass_solver_hybrid.py +0 -0
  27. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/tfim_magnetization.py +0 -0
  28. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/tfim_square_magnetization.py +0 -0
  29. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/tsp.py +0 -0
  30. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising/tsp_maxcut.py +0 -0
  31. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising.egg-info/SOURCES.txt +0 -0
  32. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising.egg-info/dependency_links.txt +0 -0
  33. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising.egg-info/not-zip-safe +0 -0
  34. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising.egg-info/requires.txt +0 -0
  35. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/pyqrackising.egg-info/top_level.txt +0 -0
  36. {pyqrackising-9.16.1 → pyqrackising-9.16.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 9.16.1
3
+ Version: 9.16.2
4
4
  Summary: Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
 
8
8
  [project]
9
9
  name = "pyqrackising"
10
- version = "9.16.1"
10
+ version = "9.16.2"
11
11
  requires-python = ">=3.8"
12
12
  description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
13
13
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -557,7 +557,7 @@ def spin_glass_solver(
557
557
  gray_iterations = n_qubits * n_qubits
558
558
 
559
559
  if gray_seed_multiple is None:
560
- gray_seed_multiple = os.cpu_count()
560
+ gray_seed_multiple = max(2, os.cpu_count())
561
561
 
562
562
  is_opencl = is_maxcut_gpu and IS_OPENCL_AVAILABLE
563
563
 
@@ -600,7 +600,7 @@ def spin_glass_solver(
600
600
  )
601
601
  gray_kernel = opencl_context.gray_segmented_kernel if is_segmented else opencl_context.gray_kernel
602
602
 
603
- thread_count = os.cpu_count() ** 2
603
+ thread_count = gray_seed_multiple
604
604
  improved = True
605
605
  while improved:
606
606
  improved = False
@@ -655,7 +655,7 @@ def spin_glass_solver_sparse(
655
655
  gray_iterations = n_qubits * n_qubits
656
656
 
657
657
  if gray_seed_multiple is None:
658
- gray_seed_multiple = os.cpu_count()
658
+ gray_seed_multiple = max(2, os.cpu_count())
659
659
 
660
660
  is_opencl = is_maxcut_gpu and IS_OPENCL_AVAILABLE
661
661
 
@@ -696,7 +696,7 @@ def spin_glass_solver_sparse(
696
696
  )
697
697
  gray_kernel = opencl_context.gray_sparse_segmented_kernel if is_segmented else opencl_context.gray_sparse_kernel
698
698
 
699
- thread_count = os.cpu_count() ** 2
699
+ thread_count = gray_seed_multiple
700
700
  improved = True
701
701
  while improved:
702
702
  improved = False
@@ -385,9 +385,9 @@ def spin_glass_solver_streaming(
385
385
  gray_iterations = n_qubits * n_qubits
386
386
 
387
387
  if gray_seed_multiple is None:
388
- gray_seed_multiple = os.cpu_count()
388
+ gray_seed_multiple = max(2, os.cpu_count())
389
389
 
390
- thread_count = os.cpu_count() ** 2
390
+ thread_count = gray_seed_multiple
391
391
  improved = True
392
392
  while improved:
393
393
  improved = False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 9.16.1
3
+ Version: 9.16.2
4
4
  Summary: Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
7
7
 
8
8
  setup(
9
9
  name="pyqrackising",
10
- version="9.16.1",
10
+ version="9.16.2",
11
11
  author="Dan Strano",
12
12
  author_email="stranoj@gmail.com",
13
13
  description="Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)",
File without changes
File without changes
File without changes
File without changes