PyQrackIsing 1.25.0__tar.gz → 1.26.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.
Files changed (21) hide show
  1. {pyqrackising-1.25.0/PyQrackIsing.egg-info → pyqrackising-1.26.1}/PKG-INFO +1 -1
  2. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/maxcut_tfim.py +2 -2
  3. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/spin_glass_solver.py +1 -1
  4. {pyqrackising-1.25.0 → pyqrackising-1.26.1/PyQrackIsing.egg-info}/PKG-INFO +1 -1
  5. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/pyproject.toml +1 -1
  6. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/setup.py +1 -1
  7. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/CMakeLists.txt +0 -0
  8. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/LICENSE.md +0 -0
  9. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/MANIFEST.in +0 -0
  10. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/__init__.py +0 -0
  11. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/_pyqrack_ising.cpp +0 -0
  12. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/generate_tfim_samples.py +0 -0
  13. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/tfim_magnetization.py +0 -0
  14. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/tfim_square_magnetization.py +0 -0
  15. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing/tsp_symmetric.py +0 -0
  16. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing.egg-info/SOURCES.txt +0 -0
  17. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing.egg-info/dependency_links.txt +0 -0
  18. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing.egg-info/not-zip-safe +0 -0
  19. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/PyQrackIsing.egg-info/top_level.txt +0 -0
  20. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/README.md +0 -0
  21. {pyqrackising-1.25.0 → pyqrackising-1.26.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.25.0
3
+ Version: 1.26.1
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
@@ -264,7 +264,7 @@ def init_J_and_z(G_m):
264
264
  J_max = -float("inf")
265
265
  for n in range(n_qubits):
266
266
  degree = sum(G_m[n] != 0.0)
267
- J = -G_m[n].sum() / degree
267
+ J = -G_m[n].sum() / degree if degree > 0 else 0
268
268
  degrees[n] = degree
269
269
  J_eff[n] = J
270
270
  J_abs = abs(J)
@@ -365,7 +365,7 @@ def maxcut_tfim(
365
365
  return "01", weight, ([nodes[0]], [nodes[1]])
366
366
 
367
367
  if quality is None:
368
- quality = 3
368
+ quality = 8
369
369
 
370
370
  if shots is None:
371
371
  # Number of measurement shots
@@ -85,7 +85,7 @@ def spin_glass_solver(G, quality=None, shots=None, correction_quality=None, best
85
85
  if correction_quality is None:
86
86
  # maxcut_tfim(G) scales roughly like n^4,
87
87
  # so its match order of overhead.
88
- correction_quality = 4
88
+ correction_quality = 2
89
89
 
90
90
  bitstring = ""
91
91
  if isinstance(best_guess, str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.25.0
3
+ Version: 1.26.1
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
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
12
12
 
13
13
  [project]
14
14
  name = "PyQrackIsing"
15
- version = "1.25.0"
15
+ version = "1.26.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.25.0',
54
+ version='1.26.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