PyQrackIsing 1.13.0__tar.gz → 1.13.1__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-1.13.0/PyQrackIsing.egg-info → pyqrackising-1.13.1}/PKG-INFO +1 -1
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/maxcut_tfim.py +5 -3
- {pyqrackising-1.13.0 → pyqrackising-1.13.1/PyQrackIsing.egg-info}/PKG-INFO +1 -1
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/pyproject.toml +1 -1
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/setup.py +1 -1
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/CMakeLists.txt +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/LICENSE.md +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/MANIFEST.in +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/__init__.py +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/_pyqrack_ising.cpp +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/generate_tfim_samples.py +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/spin_glass_solver.py +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/tfim_magnetization.py +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/tfim_square_magnetization.py +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing/tsp_symmetric.py +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing.egg-info/SOURCES.txt +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing.egg-info/dependency_links.txt +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing.egg-info/not-zip-safe +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/PyQrackIsing.egg-info/top_level.txt +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/README.md +0 -0
- {pyqrackising-1.13.0 → pyqrackising-1.13.1}/setup.cfg +0 -0
|
@@ -291,9 +291,11 @@ def maxcut_tfim(
|
|
|
291
291
|
thresholds /= tot_prob
|
|
292
292
|
|
|
293
293
|
n_steps = 1 << quality
|
|
294
|
-
|
|
294
|
+
# Warp size is 32:
|
|
295
|
+
group_size = 32
|
|
296
|
+
grid_size = (n_steps * n_qubits + group_size - 1) // group_size
|
|
295
297
|
|
|
296
|
-
if IS_CUDA_AVAILABLE and cuda.is_available() and grid_size >=
|
|
298
|
+
if IS_CUDA_AVAILABLE and cuda.is_available() and grid_size >= 128 and (n_qubits <= 8192):
|
|
297
299
|
delta_t = 1.0 / n_steps
|
|
298
300
|
tot_t = n_steps * delta_t
|
|
299
301
|
h_mult = 32.0 / tot_t
|
|
@@ -312,7 +314,7 @@ def maxcut_tfim(
|
|
|
312
314
|
)
|
|
313
315
|
)
|
|
314
316
|
|
|
315
|
-
cuda_maxcut_hamming_cdf[grid_size,
|
|
317
|
+
cuda_maxcut_hamming_cdf[grid_size, group_size](n_qubits, n_steps, delta_t, tot_t, h_mult, J_eff, degrees, theta, thresholds)
|
|
316
318
|
|
|
317
319
|
tot_prob = sum(thresholds)
|
|
318
320
|
thresholds /= tot_prob
|
|
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
|
|
12
12
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "PyQrackIsing"
|
|
15
|
-
version = "1.13.
|
|
15
|
+
version = "1.13.1"
|
|
16
16
|
requires-python = ">=3.8"
|
|
17
17
|
description = "Near-ideal closed-form solutions for transverse field Ising model (TFIM)"
|
|
18
18
|
readme = {file = "README.txt", content-type = "text/markdown"}
|
|
@@ -51,7 +51,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
|
|
|
51
51
|
|
|
52
52
|
setup(
|
|
53
53
|
name='PyQrackIsing',
|
|
54
|
-
version='1.13.
|
|
54
|
+
version='1.13.1',
|
|
55
55
|
author='Dan Strano',
|
|
56
56
|
author_email='stranoj@gmail.com',
|
|
57
57
|
description='Near-ideal closed-form solutions for 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
|