PyQrackIsing 1.17.0__tar.gz → 1.17.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-1.17.0/PyQrackIsing.egg-info → pyqrackising-1.17.1}/PKG-INFO +1 -1
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/tsp_symmetric.py +5 -2
- {pyqrackising-1.17.0 → pyqrackising-1.17.1/PyQrackIsing.egg-info}/PKG-INFO +1 -1
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/pyproject.toml +1 -1
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/setup.py +1 -1
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/CMakeLists.txt +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/LICENSE.md +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/MANIFEST.in +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/__init__.py +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/_pyqrack_ising.cpp +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/generate_tfim_samples.py +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/maxcut_tfim.py +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/spin_glass_solver.py +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/tfim_magnetization.py +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing/tfim_square_magnetization.py +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing.egg-info/SOURCES.txt +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing.egg-info/dependency_links.txt +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing.egg-info/not-zip-safe +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/PyQrackIsing.egg-info/top_level.txt +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/README.md +0 -0
- {pyqrackising-1.17.0 → pyqrackising-1.17.1}/setup.cfg +0 -0
|
@@ -138,13 +138,16 @@ def tsp_symmetric(G, quality=0, shots=None, correction_quality=2, start_node=Non
|
|
|
138
138
|
if n_nodes == 1:
|
|
139
139
|
return ([nodes[0]], 0)
|
|
140
140
|
if n_nodes == 2:
|
|
141
|
-
|
|
141
|
+
if is_cyclic:
|
|
142
|
+
return ([nodes[0], nodes[1], nodes[0]], 2 * G_m[0, 1])
|
|
143
|
+
else:
|
|
144
|
+
return ([nodes[0], nodes[1]], G_m[0, 1])
|
|
142
145
|
|
|
143
146
|
a = []
|
|
144
147
|
b = []
|
|
145
148
|
if not (start_node is None):
|
|
146
149
|
a = [start_node]
|
|
147
|
-
b = nodes
|
|
150
|
+
b = nodes.copy()
|
|
148
151
|
b.remove(start_node)
|
|
149
152
|
else:
|
|
150
153
|
while (len(a) == 0) or (len(b) == 0):
|
|
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
|
|
|
12
12
|
|
|
13
13
|
[project]
|
|
14
14
|
name = "PyQrackIsing"
|
|
15
|
-
version = "1.17.
|
|
15
|
+
version = "1.17.1"
|
|
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.17.
|
|
54
|
+
version='1.17.1',
|
|
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
|