PyQrackIsing 9.2.4__tar.gz → 9.2.5__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.2.4/pyqrackising.egg-info → pyqrackising-9.2.5}/PKG-INFO +1 -1
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyproject.toml +1 -1
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/tsp.py +3 -4
- {pyqrackising-9.2.4 → pyqrackising-9.2.5/pyqrackising.egg-info}/PKG-INFO +1 -1
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/setup.py +1 -1
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/LICENSE.md +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/MANIFEST.in +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/README.md +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/__init__.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/generate_tfim_samples.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/kernels.cl +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/maxcut_tfim.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/maxcut_tfim_sparse.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/maxcut_tfim_streaming.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/maxcut_tfim_util.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/spin_glass_solver.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/spin_glass_solver_sparse.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/spin_glass_solver_streaming.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/tfim_magnetization.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/tfim_square_magnetization.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising/tsp_maxcut.py +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising.egg-info/SOURCES.txt +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising.egg-info/dependency_links.txt +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising.egg-info/not-zip-safe +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/pyqrackising.egg-info/top_level.txt +0 -0
- {pyqrackising-9.2.4 → pyqrackising-9.2.5}/setup.cfg +0 -0
|
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
|
|
|
10
10
|
|
|
11
11
|
[project]
|
|
12
12
|
name = "pyqrackising"
|
|
13
|
-
version = "9.2.
|
|
13
|
+
version = "9.2.5"
|
|
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"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from .maxcut_tfim_util import binary_search, opencl_context, to_scipy_sparse_upper_triangular
|
|
2
|
-
from .
|
|
2
|
+
from .spin_glass_solver import spin_glass_solver
|
|
3
3
|
from concurrent.futures import ProcessPoolExecutor
|
|
4
|
-
import time
|
|
5
4
|
import itertools
|
|
6
5
|
import networkx as nx
|
|
7
6
|
from numba import njit, prange
|
|
@@ -639,7 +638,7 @@ def tsp_symmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repulsi
|
|
|
639
638
|
for _ in range(multi_start):
|
|
640
639
|
bits = ([], [])
|
|
641
640
|
while (len(bits[0]) == 0) or (len(bits[1]) == 0):
|
|
642
|
-
_, cut_value, bits =
|
|
641
|
+
_, cut_value, bits, _ = spin_glass_solver(G_m, is_spin_glass=False, quality=quality, shots=shots, anneal_t=anneal_t, anneal_h=anneal_h, repulsion_base=repulsion_base)
|
|
643
642
|
if cut_value > best_cut:
|
|
644
643
|
best_cut = cut_value
|
|
645
644
|
a, b = bits
|
|
@@ -851,7 +850,7 @@ def tsp_asymmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repuls
|
|
|
851
850
|
for _ in range(multi_start):
|
|
852
851
|
bits = ([], [])
|
|
853
852
|
while (len(bits[0]) == 0) or (len(bits[1]) == 0):
|
|
854
|
-
_, cut_value, bits =
|
|
853
|
+
_, cut_value, bits, _ = spin_glass_solver((G_m + G_m.T) / 2, is_spin_glass=False, quality=quality, shots=shots, anneal_t=anneal_t, anneal_h=anneal_h, repulsion_base=repulsion_base)
|
|
855
854
|
if cut_value > best_cut:
|
|
856
855
|
best_cut = cut_value
|
|
857
856
|
a, b = bits
|
|
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name='pyqrackising',
|
|
10
|
-
version='9.2.
|
|
10
|
+
version='9.2.5',
|
|
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
|
|
File without changes
|