PyQrackIsing 3.1.0__tar.gz → 3.2.0__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 (23) hide show
  1. {pyqrackising-3.1.0/pyqrackising.egg-info → pyqrackising-3.2.0}/PKG-INFO +1 -1
  2. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/README.md +2 -2
  3. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyproject.toml +1 -1
  4. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/tsp_asymmetric.py +1 -1
  5. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/tsp_symmetric.py +1 -1
  6. {pyqrackising-3.1.0 → pyqrackising-3.2.0/pyqrackising.egg-info}/PKG-INFO +1 -1
  7. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/setup.py +1 -1
  8. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/CMakeLists.txt +0 -0
  9. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/LICENSE.md +0 -0
  10. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/MANIFEST.in +0 -0
  11. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/__init__.py +0 -0
  12. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/_pyqrack_ising.cpp +0 -0
  13. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/generate_tfim_samples.py +0 -0
  14. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/kernels.cl +0 -0
  15. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/maxcut_tfim.py +0 -0
  16. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/spin_glass_solver.py +0 -0
  17. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/tfim_magnetization.py +0 -0
  18. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising/tfim_square_magnetization.py +0 -0
  19. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising.egg-info/SOURCES.txt +0 -0
  20. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising.egg-info/dependency_links.txt +0 -0
  21. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising.egg-info/not-zip-safe +0 -0
  22. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/pyqrackising.egg-info/top_level.txt +0 -0
  23. {pyqrackising-3.1.0 → pyqrackising-3.2.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 3.1.0
3
+ Version: 3.2.0
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
@@ -106,14 +106,14 @@ circuit, path_length = tsp_symmetric(
106
106
  correction_quality=2,
107
107
  is_cyclic=True,
108
108
  multi_start=1,
109
- k_neighbors=20
109
+ k_neighbors=16
110
110
  )
111
111
 
112
112
  print(f"Node count: {n_nodes}")
113
113
  print(f"Path: {circuit}")
114
114
  print(f"Path length: {path_length}")
115
115
  ```
116
- We only provide a solver for the symmetric version of the TSP (i.e., the distance from "A" to "B" is considered the same as from "B" to "A"). `monte_carlo=True` switches out the MAXCUT-based heuristic for pure Monte Carlo recursive bipartitioning. `multi_start` controls how many stochastic repeats of MAXCUT are tried to select the best result, at every level of recursion.
116
+ We provide solvers for both the symmetric version of the TSP (i.e., the distance from "A" to "B" is considered the same as from "B" to "A") and asymmetric version (`tsp_asymmetric()`). `monte_carlo=True` switches out the MAXCUT-based heuristic for pure Monte Carlo recursive bipartitioning. `multi_start` controls how many stochastic repeats of MAXCUT are tried to select the best result, at every level of recursion. `k_neighbors` limits the count of nearest-neighbor connections considered for 3-opt.
117
117
 
118
118
  ## About
119
119
  Transverse field Ising model (TFIM) is the basis of most claimed algorithmic "quantum advantage," circa 2025, with the notable exception of Shor's integer factoring algorithm.
@@ -11,7 +11,7 @@ build-backend = "setuptools.build_meta"
11
11
 
12
12
  [project]
13
13
  name = "pyqrackising"
14
- version = "3.1.0"
14
+ version = "3.2.0"
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"}
@@ -110,7 +110,7 @@ def symmetric_to_atsp_path_and_weight(sym_path, G_asym, nodes, is_cyclic):
110
110
  return [nodes[x] for x in atsp_path], atsp_weight
111
111
 
112
112
 
113
- def tsp_asymmetric(G, start_node=None, end_node=None, quality=1, shots=None, correction_quality=2, monte_carlo=False, k_neighbors=20, is_cyclic=True, multi_start=1, is_top_level=True):
113
+ def tsp_asymmetric(G, start_node=None, end_node=None, quality=1, shots=None, correction_quality=2, monte_carlo=False, k_neighbors=32, is_cyclic=True, multi_start=1, is_top_level=True):
114
114
  nodes = None
115
115
  n_nodes = 0
116
116
  G_m = None
@@ -314,7 +314,7 @@ def tsp_bruteforce(G_m, nodes, perms, is_cyclic):
314
314
  return best_path, best_weight
315
315
 
316
316
 
317
- def tsp_symmetric(G, start_node=None, end_node=None, quality=1, shots=None, correction_quality=2, monte_carlo=False, k_neighbors=20, is_cyclic=True, multi_start=1, is_top_level=True):
317
+ def tsp_symmetric(G, start_node=None, end_node=None, quality=1, shots=None, correction_quality=2, monte_carlo=False, k_neighbors=16, is_cyclic=True, multi_start=1, is_top_level=True):
318
318
  nodes = None
319
319
  n_nodes = 0
320
320
  G_m = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 3.1.0
3
+ Version: 3.2.0
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='3.1.0',
54
+ version='3.2.0',
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