PyQrackIsing 2.0.1__tar.gz → 2.0.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.
Files changed (22) hide show
  1. {pyqrackising-2.0.1/pyqrackising.egg-info → pyqrackising-2.0.2}/PKG-INFO +1 -1
  2. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyproject.toml +1 -1
  3. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/tsp_symmetric.py +3 -9
  4. {pyqrackising-2.0.1 → pyqrackising-2.0.2/pyqrackising.egg-info}/PKG-INFO +1 -1
  5. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/setup.py +1 -1
  6. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/CMakeLists.txt +0 -0
  7. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/LICENSE.md +0 -0
  8. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/MANIFEST.in +0 -0
  9. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/README.md +0 -0
  10. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/__init__.py +0 -0
  11. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/_pyqrack_ising.cpp +0 -0
  12. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/generate_tfim_samples.py +0 -0
  13. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/kernels.cl +0 -0
  14. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/maxcut_tfim.py +0 -0
  15. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/spin_glass_solver.py +0 -0
  16. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/tfim_magnetization.py +0 -0
  17. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising/tfim_square_magnetization.py +0 -0
  18. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising.egg-info/SOURCES.txt +0 -0
  19. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising.egg-info/dependency_links.txt +0 -0
  20. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising.egg-info/not-zip-safe +0 -0
  21. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/pyqrackising.egg-info/top_level.txt +0 -0
  22. {pyqrackising-2.0.1 → pyqrackising-2.0.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Near-ideal closed-form solutions for transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"
11
11
 
12
12
  [project]
13
13
  name = "pyqrackising"
14
- version = "2.0.1"
14
+ version = "2.0.2"
15
15
  requires-python = ">=3.8"
16
16
  description = "Near-ideal closed-form solutions for transverse field Ising model (TFIM)"
17
17
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -30,9 +30,7 @@ def one_way_two_opt(path, G):
30
30
  while improved:
31
31
  improved = False
32
32
  for i in range(1, path_len - 1):
33
- for j in range(i+1, path_len + 1):
34
- if j - i == 1: # adjacent edges, skip
35
- continue
33
+ for j in range(i + 2, path_len + 1):
36
34
  new_path = best_path[:]
37
35
  new_path[i:j] = best_path[j-1:i-1:-1]
38
36
  new_dist = path_length(new_path, G)
@@ -53,9 +51,7 @@ def anchored_two_opt(path, G):
53
51
  while improved:
54
52
  improved = False
55
53
  for i in range(1, path_len - 1):
56
- for j in range(i+1, path_len):
57
- if j - i == 1: # adjacent edges, skip
58
- continue
54
+ for j in range(i + 2, path_len):
59
55
  new_path = best_path[:]
60
56
  new_path[i:j] = best_path[j-1:i-1:-1]
61
57
  new_dist = path_length(new_path, G)
@@ -75,9 +71,7 @@ def two_opt(path, G):
75
71
  while improved:
76
72
  improved = False
77
73
  for i in range(1, len(path) - 2):
78
- for j in range(i+1, len(path) - 1):
79
- if j - i == 1: # adjacent edges, skip
80
- continue
74
+ for j in range(i + 2, len(path) - 1):
81
75
  new_path = best_path[:]
82
76
  new_path[i:j] = best_path[j-1:i-1:-1] # reverse segment
83
77
  new_dist = path_length(new_path, G)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 2.0.1
3
+ Version: 2.0.2
4
4
  Summary: Near-ideal closed-form solutions for transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -51,7 +51,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
51
51
 
52
52
  setup(
53
53
  name='pyqrackising',
54
- version='2.0.1',
54
+ version='2.0.2',
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