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.
- {pyqrackising-6.1.1/pyqrackising.egg-info → pyqrackising-6.1.2}/PKG-INFO +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyproject.toml +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim.py +2 -2
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim_sparse.py +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim_streaming.py +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/maxcut_tfim_util.py +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver_sparse.py +1 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2/pyqrackising.egg-info}/PKG-INFO +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/setup.py +1 -1
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/CMakeLists.txt +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/LICENSE.md +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/MANIFEST.in +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/README.md +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/__init__.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/_pyqrack_ising.cpp +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/generate_tfim_samples.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/kernels.cl +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver_streaming.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/spin_glass_solver_util.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/tfim_magnetization.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/tfim_square_magnetization.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising/tsp.py +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/SOURCES.txt +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/dependency_links.txt +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/not-zip-safe +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/pyqrackising.egg-info/top_level.txt +0 -0
- {pyqrackising-6.1.1 → pyqrackising-6.1.2}/setup.cfg +0 -0
|
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
|
|
12
12
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "pyqrackising"
|
|
15
|
-
version = "6.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
|
|
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
|
|
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
|
|
@@ -51,7 +51,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
|
|
|
51
51
|
|
|
52
52
|
setup(
|
|
53
53
|
name='pyqrackising',
|
|
54
|
-
version='6.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|