PyQrackIsing 6.1.1__tar.gz → 6.1.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 (28) hide show
  1. {pyqrackising-6.1.1/pyqrackising.egg-info → pyqrackising-6.1.2}/PKG-INFO +1 -1
  2. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyproject.toml +1 -1
  3. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim.py +2 -2
  4. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim_sparse.py +1 -1
  5. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim_streaming.py +1 -1
  6. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim_util.py +1 -1
  7. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver_sparse.py +1 -0
  8. {pyqrackising-6.1.1 → pyqrackising-6.1.2/pyqrackising.egg-info}/PKG-INFO +1 -1
  9. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/setup.py +1 -1
  10. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/CMakeLists.txt +0 -0
  11. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/LICENSE.md +0 -0
  12. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/MANIFEST.in +0 -0
  13. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/README.md +0 -0
  14. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/__init__.py +0 -0
  15. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/_pyqrack_ising.cpp +0 -0
  16. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/generate_tfim_samples.py +0 -0
  17. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/kernels.cl +0 -0
  18. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver.py +0 -0
  19. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver_streaming.py +0 -0
  20. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver_util.py +0 -0
  21. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/tfim_magnetization.py +0 -0
  22. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/tfim_square_magnetization.py +0 -0
  23. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/tsp.py +0 -0
  24. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/SOURCES.txt +0 -0
  25. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/dependency_links.txt +0 -0
  26. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/not-zip-safe +0 -0
  27. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/top_level.txt +0 -0
  28. {pyqrackising-6.1.1 → pyqrackising-6.1.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 6.1.1
3
+ Version: 6.1.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
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
12
12
 
13
13
  [project]
14
14
  name = "pyqrackising"
15
- version = "6.1.1"
15
+ version = "6.1.2"
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"}
@@ -285,7 +285,7 @@ def maxcut_tfim(
285
285
  grid_size = n_steps * n_qubits
286
286
 
287
287
  if (not is_base_maxcut_gpu) or not (IS_OPENCL_AVAILABLE and grid_size >= 128):
288
- return cpu_footer(shots, quality, n_qubits, G_m, nodes)
288
+ return cpu_footer(shots, quality, n_qubits, G_m, nodes, dtype)
289
289
 
290
290
  J_eff, degrees = init_J_and_z(G_m, dtype)
291
291
 
@@ -352,7 +352,7 @@ def maxcut_tfim(
352
352
  return gpu_footer(shots, n_qubits, G_m, J_eff, hamming_prob, nodes, dtype)
353
353
 
354
354
  fix_cdf(hamming_prob)
355
- best_solution, best_value = run_sampling_opencl(G_m, hamming_prob, shots, n_qubits, is_g_buf_reused, dtype)
355
+ best_solution, best_value = run_sampling_opencl(G_m, hamming_prob, shots, n_qubits, is_g_buf_reused)
356
356
  bit_string, l, r = get_cut(best_solution, nodes)
357
357
 
358
358
  return bit_string, best_value, (l, r)
@@ -417,7 +417,7 @@ def maxcut_tfim_sparse(
417
417
  return gpu_footer(shots, n_qubits, G_m.data, G_m.indptr, G_m.indices, J_eff, hamming_prob, nodes, dtype)
418
418
 
419
419
  fix_cdf(hamming_prob)
420
- best_solution, best_value = run_sampling_opencl(G_m, hamming_prob, shots, n_qubits, is_g_buf_reused, dtype)
420
+ best_solution, best_value = run_sampling_opencl(G_m, hamming_prob, shots, n_qubits, is_g_buf_reused)
421
421
  bit_string, l, r = get_cut(best_solution, nodes)
422
422
 
423
423
  return bit_string, best_value, (l, r)
@@ -147,7 +147,7 @@ def cpu_footer(shots, quality, n_qubits, G_func, G_func_args_tuple, nodes, dtype
147
147
  J_eff, degrees, G_max = init_J_and_z(G_func, G_func_args_tuple, nodes, dtype)
148
148
  hamming_prob = init_thresholds(n_qubits, dtype)
149
149
 
150
- maxcut_hamming_cdf(n_qubits, J_eff, degrees, quality, hamming_prob)
150
+ maxcut_hamming_cdf(n_qubits, J_eff, degrees, quality, hamming_prob, dtype)
151
151
 
152
152
  max_weight = degrees.sum()
153
153
  degrees = None
@@ -73,7 +73,7 @@ def maxcut_hamming_cdf(n_qubits, J_func, degrees, quality, hamming_prob, dtype):
73
73
  h_mult = 2.0 / tot_t
74
74
  n_bias = n_qubits - 1
75
75
 
76
- theta = init_theta(h_mult, n_qubits, J_func, degrees)
76
+ theta = init_theta(h_mult, n_qubits, J_func, degrees, dtype)
77
77
 
78
78
  for qc in prange(n_qubits, n_steps * n_qubits):
79
79
  step = qc // n_qubits
@@ -163,6 +163,7 @@ def spin_glass_solver_sparse(
163
163
  is_base_maxcut_gpu=True,
164
164
  is_combo_maxcut_gpu=True
165
165
  ):
166
+ dtype = opencl_context.dtype
166
167
  nodes = None
167
168
  n_qubits = 0
168
169
  G_m = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 6.1.1
3
+ Version: 6.1.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
@@ -51,7 +51,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
51
51
 
52
52
  setup(
53
53
  name='pyqrackising',
54
- version='6.1.1',
54
+ version='6.1.2',
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