PyQrackIsing 1.18.1__tar.gz → 1.18.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-1.18.1/PyQrackIsing.egg-info → pyqrackising-1.18.2}/PKG-INFO +1 -1
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/spin_glass_solver.py +2 -3
- {pyqrackising-1.18.1 → pyqrackising-1.18.2/PyQrackIsing.egg-info}/PKG-INFO +1 -1
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/pyproject.toml +1 -1
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/setup.py +1 -1
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/CMakeLists.txt +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/LICENSE.md +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/MANIFEST.in +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/__init__.py +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/_pyqrack_ising.cpp +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/generate_tfim_samples.py +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/maxcut_tfim.py +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/tfim_magnetization.py +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/tfim_square_magnetization.py +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing/tsp_symmetric.py +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing.egg-info/SOURCES.txt +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing.egg-info/dependency_links.txt +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing.egg-info/not-zip-safe +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/PyQrackIsing.egg-info/top_level.txt +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/README.md +0 -0
- {pyqrackising-1.18.1 → pyqrackising-1.18.2}/setup.cfg +0 -0
|
@@ -44,10 +44,9 @@ def bootstrap_worker(theta, edge_keys, edge_values, indices):
|
|
|
44
44
|
def bootstrap(theta, edge_keys, edge_values, k, indices_array):
|
|
45
45
|
n = len(indices_array) // k
|
|
46
46
|
energies = np.empty(n)
|
|
47
|
-
j =
|
|
47
|
+
j = [i * k for i in range(n)]
|
|
48
48
|
for i in prange(n):
|
|
49
|
-
energies[i] = bootstrap_worker(theta, edge_keys, edge_values, indices_array[j : j + k])
|
|
50
|
-
j += k
|
|
49
|
+
energies[i] = bootstrap_worker(theta, edge_keys, edge_values, indices_array[j[i] : j[i] + k])
|
|
51
50
|
|
|
52
51
|
return energies
|
|
53
52
|
|
|
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
|
|
12
12
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "PyQrackIsing"
|
|
15
|
-
version = "1.18.
|
|
15
|
+
version = "1.18.2"
|
|
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.18.
|
|
54
|
+
version='1.18.2',
|
|
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
|