PyQrackIsing 9.8.0__tar.gz → 9.8.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-9.8.0/pyqrackising.egg-info → pyqrackising-9.8.1}/PKG-INFO +1 -1
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/README.md +1 -1
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyproject.toml +1 -1
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/spin_glass_solver.py +3 -3
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/spin_glass_solver_streaming.py +3 -3
- {pyqrackising-9.8.0 → pyqrackising-9.8.1/pyqrackising.egg-info}/PKG-INFO +1 -1
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/setup.py +1 -1
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/LICENSE.md +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/MANIFEST.in +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/__init__.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/generate_tfim_samples.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/kernels.cl +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/maxcut_tfim.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/maxcut_tfim_sparse.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/maxcut_tfim_streaming.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/maxcut_tfim_util.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/otoc.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/spin_glass_solver_sparse.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/tfim_magnetization.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/tfim_square_magnetization.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/tsp.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising/tsp_maxcut.py +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising.egg-info/SOURCES.txt +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising.egg-info/dependency_links.txt +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising.egg-info/not-zip-safe +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/pyqrackising.egg-info/top_level.txt +0 -0
- {pyqrackising-9.8.0 → pyqrackising-9.8.1}/setup.cfg +0 -0
|
@@ -3,7 +3,7 @@ Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising
|
|
|
3
3
|
|
|
4
4
|
(It's "the **Ising** on top.")
|
|
5
5
|
|
|
6
|
-
[](https://doi.org/10.5281/zenodo.17635216) [](https://pepy.tech/projects/pyqrackising)
|
|
7
7
|
|
|
8
8
|
## Copyright and license
|
|
9
9
|
(c) Daniel Strano and the Qrack contributors 2025. All rights reserved.
|
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "pyqrackising"
|
|
13
|
-
version = "9.8.
|
|
13
|
+
version = "9.8.1"
|
|
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"}
|
|
@@ -463,7 +463,7 @@ def spin_glass_solver(
|
|
|
463
463
|
continue
|
|
464
464
|
|
|
465
465
|
if max_energy == float("inf"):
|
|
466
|
-
# We no way to compare for improvement.
|
|
466
|
+
# We have no way to compare for improvement.
|
|
467
467
|
break
|
|
468
468
|
|
|
469
469
|
# Post-reheat phase
|
|
@@ -477,7 +477,7 @@ def spin_glass_solver(
|
|
|
477
477
|
else:
|
|
478
478
|
energy, state = run_single_bit_flips(reheat_theta, is_spin_glass, G_m)
|
|
479
479
|
if energy > (max_energy - reheat_energy):
|
|
480
|
-
max_energy
|
|
480
|
+
max_energy = reheat_energy + energy
|
|
481
481
|
best_theta = state
|
|
482
482
|
improved = True
|
|
483
483
|
continue
|
|
@@ -489,7 +489,7 @@ def spin_glass_solver(
|
|
|
489
489
|
else:
|
|
490
490
|
energy, state = run_double_bit_flips(reheat_theta, is_spin_glass, G_m, thread_count)
|
|
491
491
|
if energy > (max_energy - reheat_energy):
|
|
492
|
-
max_energy
|
|
492
|
+
max_energy = reheat_energy + energy
|
|
493
493
|
best_theta = state
|
|
494
494
|
improved = True
|
|
495
495
|
|
|
@@ -278,7 +278,7 @@ def spin_glass_solver_streaming(
|
|
|
278
278
|
continue
|
|
279
279
|
|
|
280
280
|
if max_energy == float("inf"):
|
|
281
|
-
# We no way to compare for improvement.
|
|
281
|
+
# We have no way to compare for improvement.
|
|
282
282
|
break
|
|
283
283
|
|
|
284
284
|
# Post-reheat phase
|
|
@@ -288,7 +288,7 @@ def spin_glass_solver_streaming(
|
|
|
288
288
|
# Single bit flips with O(n^2)
|
|
289
289
|
energy, state = run_single_bit_flips(reheat_theta, is_spin_glass, G_func, nodes)
|
|
290
290
|
if energy > (max_energy - reheat_energy):
|
|
291
|
-
max_energy
|
|
291
|
+
max_energy = reheat_energy + energy
|
|
292
292
|
best_theta = state
|
|
293
293
|
improved = True
|
|
294
294
|
continue
|
|
@@ -296,7 +296,7 @@ def spin_glass_solver_streaming(
|
|
|
296
296
|
# Double bit flips with O(n^3)
|
|
297
297
|
energy, state = run_double_bit_flips(reheat_theta, is_spin_glass, G_func, nodes, thread_count)
|
|
298
298
|
if energy > (max_energy - reheat_energy):
|
|
299
|
-
max_energy
|
|
299
|
+
max_energy = reheat_energy + energy
|
|
300
300
|
best_theta = state
|
|
301
301
|
improved = True
|
|
302
302
|
|
|
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name='pyqrackising',
|
|
10
|
-
version='9.8.
|
|
10
|
+
version='9.8.1',
|
|
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
|