PyQrackIsing 8.10.2__tar.gz → 8.10.3__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-8.10.2/pyqrackising.egg-info → pyqrackising-8.10.3}/PKG-INFO +1 -1
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyproject.toml +1 -1
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/spin_glass_solver.py +1 -2
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/spin_glass_solver_sparse.py +1 -2
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/spin_glass_solver_streaming.py +1 -2
- {pyqrackising-8.10.2 → pyqrackising-8.10.3/pyqrackising.egg-info}/PKG-INFO +1 -1
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/setup.py +1 -1
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/LICENSE.md +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/MANIFEST.in +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/README.md +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/__init__.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/generate_tfim_samples.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/kernels.cl +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/maxcut_tfim.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/maxcut_tfim_sparse.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/maxcut_tfim_streaming.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/maxcut_tfim_util.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/spin_glass_solver_util.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/tfim_magnetization.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/tfim_square_magnetization.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/tsp.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising/tsp_maxcut.py +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising.egg-info/SOURCES.txt +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising.egg-info/dependency_links.txt +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising.egg-info/not-zip-safe +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/pyqrackising.egg-info/top_level.txt +0 -0
- {pyqrackising-8.10.2 → pyqrackising-8.10.3}/setup.cfg +0 -0
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "pyqrackising"
|
|
13
|
-
version = "8.10.
|
|
13
|
+
version = "8.10.3"
|
|
14
14
|
requires-python = ">=3.8"
|
|
15
15
|
description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
|
|
16
16
|
readme = {file = "README.txt", content-type = "text/markdown"}
|
|
@@ -272,7 +272,6 @@ def spin_glass_solver(
|
|
|
272
272
|
if n_qubits < k:
|
|
273
273
|
break
|
|
274
274
|
|
|
275
|
-
combos = []
|
|
276
275
|
if len(combos_list) < k:
|
|
277
276
|
combos = np.array(list(
|
|
278
277
|
item for sublist in itertools.combinations(range(n_qubits), k) for item in sublist
|
|
@@ -304,7 +303,7 @@ def spin_glass_solver(
|
|
|
304
303
|
best_theta = reheat_theta.copy()
|
|
305
304
|
min_energy = reheat_min_energy
|
|
306
305
|
|
|
307
|
-
if reheat_round
|
|
306
|
+
if reheat_round <= reheat_tries:
|
|
308
307
|
num_to_flip = int(np.round(np.log2(n_qubits)))
|
|
309
308
|
bits_to_flip = random.sample(list(range(n_qubits)), num_to_flip)
|
|
310
309
|
for bit in bits_to_flip:
|
|
@@ -295,7 +295,6 @@ def spin_glass_solver_sparse(
|
|
|
295
295
|
if n_qubits < k:
|
|
296
296
|
break
|
|
297
297
|
|
|
298
|
-
combos = []
|
|
299
298
|
if len(combos_list) < k:
|
|
300
299
|
combos = np.array(list(
|
|
301
300
|
item for sublist in itertools.combinations(range(n_qubits), k) for item in sublist
|
|
@@ -328,7 +327,7 @@ def spin_glass_solver_sparse(
|
|
|
328
327
|
best_theta = reheat_theta.copy()
|
|
329
328
|
min_energy = reheat_min_energy
|
|
330
329
|
|
|
331
|
-
if reheat_round
|
|
330
|
+
if reheat_round <= reheat_tries:
|
|
332
331
|
num_to_flip = int(np.round(np.log2(n_qubits)))
|
|
333
332
|
bits_to_flip = random.sample(list(range(n_qubits)), num_to_flip)
|
|
334
333
|
for bit in bits_to_flip:
|
|
@@ -141,7 +141,6 @@ def spin_glass_solver_streaming(
|
|
|
141
141
|
if n_qubits < k:
|
|
142
142
|
break
|
|
143
143
|
|
|
144
|
-
combos = []
|
|
145
144
|
if len(combos_list) < k:
|
|
146
145
|
combos = np.array(list(
|
|
147
146
|
item for sublist in itertools.combinations(range(n_qubits), k) for item in sublist
|
|
@@ -171,7 +170,7 @@ def spin_glass_solver_streaming(
|
|
|
171
170
|
best_theta = reheat_theta.copy()
|
|
172
171
|
min_energy = reheat_min_energy
|
|
173
172
|
|
|
174
|
-
if reheat_round
|
|
173
|
+
if reheat_round <= reheat_tries:
|
|
175
174
|
num_to_flip = int(np.round(np.log2(n_qubits)))
|
|
176
175
|
bits_to_flip = random.sample(list(range(n_qubits)), num_to_flip)
|
|
177
176
|
for bit in bits_to_flip:
|
|
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name='pyqrackising',
|
|
10
|
-
version='8.10.
|
|
10
|
+
version='8.10.3',
|
|
11
11
|
author='Dan Strano',
|
|
12
12
|
author_email='stranoj@gmail.com',
|
|
13
13
|
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
|
|
File without changes
|
|
File without changes
|