PyQrackIsing 5.4.2__tar.gz → 5.4.4__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 (28) hide show
  1. {pyqrackising-5.4.2/pyqrackising.egg-info → pyqrackising-5.4.4}/PKG-INFO +1 -1
  2. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyproject.toml +1 -1
  3. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/maxcut_tfim.py +0 -4
  4. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/maxcut_tfim_sparse.py +0 -4
  5. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/maxcut_tfim_streaming.py +0 -4
  6. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/maxcut_tfim_util.py +1 -1
  7. {pyqrackising-5.4.2 → pyqrackising-5.4.4/pyqrackising.egg-info}/PKG-INFO +1 -1
  8. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/setup.py +1 -1
  9. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/CMakeLists.txt +0 -0
  10. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/LICENSE.md +0 -0
  11. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/MANIFEST.in +0 -0
  12. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/README.md +0 -0
  13. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/__init__.py +0 -0
  14. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/_pyqrack_ising.cpp +0 -0
  15. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/generate_tfim_samples.py +0 -0
  16. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/kernels.cl +0 -0
  17. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/spin_glass_solver.py +0 -0
  18. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/spin_glass_solver_sparse.py +0 -0
  19. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/spin_glass_solver_streaming.py +0 -0
  20. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/spin_glass_solver_util.py +0 -0
  21. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/tfim_magnetization.py +0 -0
  22. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/tfim_square_magnetization.py +0 -0
  23. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising/tsp.py +0 -0
  24. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising.egg-info/SOURCES.txt +0 -0
  25. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising.egg-info/dependency_links.txt +0 -0
  26. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising.egg-info/not-zip-safe +0 -0
  27. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/pyqrackising.egg-info/top_level.txt +0 -0
  28. {pyqrackising-5.4.2 → pyqrackising-5.4.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 5.4.2
3
+ Version: 5.4.4
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
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
12
12
 
13
13
  [project]
14
14
  name = "pyqrackising"
15
- version = "5.4.2"
15
+ version = "5.4.4"
16
16
  requires-python = ">=3.8"
17
17
  description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
18
18
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -25,9 +25,7 @@ def local_repulsion_choice(G_m, max_weight, weights, n, m):
25
25
  """
26
26
 
27
27
  weights = weights.copy()
28
- chosen = np.zeros(m, dtype=np.int32) # store chosen indices
29
28
  used = np.zeros(n, dtype=np.bool_) # False = available, True = used
30
- chosen_count = 0
31
29
 
32
30
  for _ in range(m):
33
31
  # Count available
@@ -55,8 +53,6 @@ def local_repulsion_choice(G_m, max_weight, weights, n, m):
55
53
  node += 1
56
54
 
57
55
  # Select node
58
- chosen[chosen_count] = node
59
- chosen_count += 1
60
56
  used[node] = True
61
57
 
62
58
  # Repulsion: penalize neighbors
@@ -45,9 +45,7 @@ def local_repulsion_choice(G_cols, G_data, G_rows, max_weight, weights, n, m):
45
45
  """
46
46
 
47
47
  weights = weights.copy()
48
- chosen = np.zeros(m, dtype=np.int32) # store chosen indices
49
48
  used = np.zeros(n, dtype=np.bool_) # False = available, True = used
50
- chosen_count = 0
51
49
 
52
50
  for _ in range(m):
53
51
  # Count available
@@ -75,8 +73,6 @@ def local_repulsion_choice(G_cols, G_data, G_rows, max_weight, weights, n, m):
75
73
  node += 1
76
74
 
77
75
  # Select node
78
- chosen[chosen_count] = node
79
- chosen_count += 1
80
76
  used[node] = True
81
77
 
82
78
  # Repulsion: penalize neighbors
@@ -25,9 +25,7 @@ def local_repulsion_choice(G_func, G_func_args_tuple, nodes, max_weight, weights
25
25
  """
26
26
 
27
27
  weights = weights.copy()
28
- chosen = np.zeros(m, dtype=np.int32) # store chosen indices
29
28
  used = np.zeros(n, dtype=np.bool_) # False = available, True = used
30
- chosen_count = 0
31
29
 
32
30
  for _ in range(m):
33
31
  # Count available
@@ -55,8 +53,6 @@ def local_repulsion_choice(G_func, G_func_args_tuple, nodes, max_weight, weights
55
53
  node += 1
56
54
 
57
55
  # Select node
58
- chosen[chosen_count] = node
59
- chosen_count += 1
60
56
  used[node] = True
61
57
 
62
58
  # Repulsion: penalize neighbors
@@ -73,7 +73,7 @@ def maxcut_hamming_cdf(n_qubits, J_func, degrees, quality, hamming_prob):
73
73
  h_mult = 2.0 / tot_t
74
74
  n_bias = n_qubits - 1
75
75
 
76
- theta = init_theta(delta_t, tot_t, h_mult, n_qubits, J_func, degrees)
76
+ theta = init_theta(h_mult, n_qubits, J_func, degrees)
77
77
 
78
78
  for qc in prange(n_qubits, n_steps * n_qubits):
79
79
  step = qc // n_qubits
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 5.4.2
3
+ Version: 5.4.4
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
@@ -51,7 +51,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
51
51
 
52
52
  setup(
53
53
  name='pyqrackising',
54
- version='5.4.2',
54
+ version='5.4.4',
55
55
  author='Dan Strano',
56
56
  author_email='stranoj@gmail.com',
57
57
  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