PyQrackIsing 8.10.1__tar.gz → 8.10.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-8.10.1/pyqrackising.egg-info → pyqrackising-8.10.2}/PKG-INFO +1 -1
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyproject.toml +1 -1
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/tsp.py +8 -4
- {pyqrackising-8.10.1 → pyqrackising-8.10.2/pyqrackising.egg-info}/PKG-INFO +1 -1
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/setup.py +1 -1
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/LICENSE.md +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/MANIFEST.in +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/README.md +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/__init__.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/generate_tfim_samples.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/kernels.cl +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/maxcut_tfim.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/maxcut_tfim_sparse.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/maxcut_tfim_streaming.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/maxcut_tfim_util.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/spin_glass_solver.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/spin_glass_solver_sparse.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/spin_glass_solver_streaming.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/spin_glass_solver_util.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/tfim_magnetization.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/tfim_square_magnetization.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising/tsp_maxcut.py +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising.egg-info/SOURCES.txt +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising.egg-info/dependency_links.txt +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising.egg-info/not-zip-safe +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/pyqrackising.egg-info/top_level.txt +0 -0
- {pyqrackising-8.10.1 → pyqrackising-8.10.2}/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.2"
|
|
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"}
|
|
@@ -623,6 +623,8 @@ def tsp_symmetric_driver(G_m, is_cyclic, is_top_level, start_node, end_node, k_n
|
|
|
623
623
|
|
|
624
624
|
@njit
|
|
625
625
|
def tsp_symmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repulsion_base, start_node, end_node, monte_carlo, is_cyclic, n_nodes, multi_start):
|
|
626
|
+
n_x = nodes[0]
|
|
627
|
+
|
|
626
628
|
if is_cyclic:
|
|
627
629
|
start_node = None
|
|
628
630
|
end_node = None
|
|
@@ -631,7 +633,7 @@ def tsp_symmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repulsi
|
|
|
631
633
|
start_node = end_node
|
|
632
634
|
end_node = None
|
|
633
635
|
|
|
634
|
-
a, b, c = [
|
|
636
|
+
a, b, c = [n_x], [n_x], [n_x]
|
|
635
637
|
a.clear()
|
|
636
638
|
b.clear()
|
|
637
639
|
c.clear()
|
|
@@ -641,7 +643,7 @@ def tsp_symmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repulsi
|
|
|
641
643
|
else:
|
|
642
644
|
best_cut = -float("inf")
|
|
643
645
|
for _ in range(multi_start):
|
|
644
|
-
bits = ([
|
|
646
|
+
bits = ([n_x], [n_x])
|
|
645
647
|
bits[0].clear()
|
|
646
648
|
bits[1].clear()
|
|
647
649
|
while (len(bits[0]) == 0) or (len(bits[1]) == 0):
|
|
@@ -838,6 +840,8 @@ def tsp_asymmetric_driver(G_m, is_reversed, is_cyclic, is_top_level, start_node,
|
|
|
838
840
|
|
|
839
841
|
@njit
|
|
840
842
|
def tsp_asymmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repulsion_base, start_node, end_node, monte_carlo, is_cyclic, n_nodes, multi_start):
|
|
843
|
+
n_x = nodes[0]
|
|
844
|
+
|
|
841
845
|
if is_cyclic:
|
|
842
846
|
start_node = None
|
|
843
847
|
end_node = None
|
|
@@ -849,7 +853,7 @@ def tsp_asymmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repuls
|
|
|
849
853
|
end_node = None
|
|
850
854
|
G_m = G_m.T
|
|
851
855
|
|
|
852
|
-
a, b, c = [
|
|
856
|
+
a, b, c = [n_x], [n_x], [n_x]
|
|
853
857
|
a.clear()
|
|
854
858
|
b.clear()
|
|
855
859
|
c.clear()
|
|
@@ -859,7 +863,7 @@ def tsp_asymmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repuls
|
|
|
859
863
|
else:
|
|
860
864
|
best_cut = -float("inf")
|
|
861
865
|
for _ in range(multi_start):
|
|
862
|
-
bits = ([
|
|
866
|
+
bits = ([n_x], [n_x])
|
|
863
867
|
bits[0].clear()
|
|
864
868
|
bits[1].clear()
|
|
865
869
|
while (len(bits[0]) == 0) or (len(bits[1]) == 0):
|
|
@@ -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.2',
|
|
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
|
|
File without changes
|