PyQrackIsing 1.8.2__tar.gz → 1.8.3__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 (20) hide show
  1. {pyqrackising-1.8.2/PyQrackIsing.egg-info → pyqrackising-1.8.3}/PKG-INFO +1 -1
  2. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/spin_glass_solver.py +2 -2
  3. {pyqrackising-1.8.2 → pyqrackising-1.8.3/PyQrackIsing.egg-info}/PKG-INFO +1 -1
  4. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/pyproject.toml +1 -1
  5. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/setup.py +1 -1
  6. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/CMakeLists.txt +0 -0
  7. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/LICENSE.md +0 -0
  8. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/MANIFEST.in +0 -0
  9. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/__init__.py +0 -0
  10. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/_pyqrack_ising.cpp +0 -0
  11. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/generate_tfim_samples.py +0 -0
  12. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/maxcut_tfim.py +0 -0
  13. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/tfim_magnetization.py +0 -0
  14. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing/tfim_square_magnetization.py +0 -0
  15. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing.egg-info/SOURCES.txt +0 -0
  16. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing.egg-info/dependency_links.txt +0 -0
  17. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing.egg-info/not-zip-safe +0 -0
  18. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/PyQrackIsing.egg-info/top_level.txt +0 -0
  19. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/README.md +0 -0
  20. {pyqrackising-1.8.2 → pyqrackising-1.8.3}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.8.2
3
+ Version: 1.8.3
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
@@ -64,7 +64,7 @@ def spin_glass_solver(G, quality=2, best_guess=None):
64
64
  if isinstance(best_guess, str):
65
65
  bitstring = best_guess
66
66
  elif isinstance(best_guess, int):
67
- bitstring = int_to_bitstring(best_guess)
67
+ bitstring = int_to_bitstring(best_guess, G.number_of_nodes())
68
68
  elif isinstance(best_guess, list):
69
69
  bitstring = "".join(["1" if b else "0" for b in best_guess])
70
70
  else:
@@ -112,4 +112,4 @@ def spin_glass_solver(G, quality=2, best_guess=None):
112
112
 
113
113
  cut_value, cut_edges = evaluate_cut_edges(sample, edge_keys, edge_values)
114
114
 
115
- return cut_value, bitstring, cut_edges, min_energy
115
+ return float(cut_value), bitstring, cut_edges, float(min_energy)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.8.2
3
+ Version: 1.8.3
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 = "1.8.2"
14
+ version = "1.8.3"
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"}
@@ -51,7 +51,7 @@ ext_modules = [CMakeExtension('tfim_sampler')]
51
51
 
52
52
  setup(
53
53
  name='PyQrackIsing',
54
- version='1.8.2',
54
+ version='1.8.3',
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