PyQrackIsing 1.14.3__tar.gz → 1.14.6__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.14.3/PyQrackIsing.egg-info → pyqrackising-1.14.6}/PKG-INFO +1 -1
  2. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/maxcut_tfim.py +1 -1
  3. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/spin_glass_solver.py +2 -2
  4. {pyqrackising-1.14.3 → pyqrackising-1.14.6/PyQrackIsing.egg-info}/PKG-INFO +1 -1
  5. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/README.md +1 -1
  6. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/pyproject.toml +1 -1
  7. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/setup.py +1 -1
  8. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/CMakeLists.txt +0 -0
  9. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/LICENSE.md +0 -0
  10. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/MANIFEST.in +0 -0
  11. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/__init__.py +0 -0
  12. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/_pyqrack_ising.cpp +0 -0
  13. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/generate_tfim_samples.py +0 -0
  14. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/tfim_magnetization.py +0 -0
  15. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/tfim_square_magnetization.py +0 -0
  16. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing/tsp_symmetric.py +0 -0
  17. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing.egg-info/SOURCES.txt +0 -0
  18. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing.egg-info/dependency_links.txt +0 -0
  19. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing.egg-info/not-zip-safe +0 -0
  20. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/PyQrackIsing.egg-info/top_level.txt +0 -0
  21. {pyqrackising-1.14.3 → pyqrackising-1.14.6}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.14.3
3
+ Version: 1.14.6
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
@@ -237,7 +237,7 @@ def maxcut_tfim(
237
237
  shared_size = (n_qubits - 1) * 8
238
238
 
239
239
  if quality is None:
240
- quality = math.ceil(math.log2(128 * group_size))
240
+ quality = 8
241
241
 
242
242
  if shots is None:
243
243
  # Number of measurement shots
@@ -66,8 +66,8 @@ def spin_glass_solver(G, quality=None, shots=None, correction_quality=2, best_gu
66
66
  if n_qubits == 1:
67
67
  return "0", 0, ([nodes[0]], [])
68
68
 
69
- # Warp size is 32:
70
- group_size = 32
69
+ if quality is None:
70
+ quality = 5
71
71
 
72
72
  bitstring = ""
73
73
  if isinstance(best_guess, str):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.14.3
3
+ Version: 1.14.6
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
@@ -49,7 +49,7 @@ G = nx.petersen_graph()
49
49
  best_solution_bit_string, best_cut_value, best_node_groups = maxcut_tfim(G, quality=8)
50
50
  ```
51
51
 
52
- The (integer) `quality` setting is optional, with a default value optimized to barely engage CUDA, but you can turn it up for higher-quality results, or turn it down to save time. (You can also optionally specify the number of measurement `shots` as an argument, if you want specific fine-grained control over resource usage.) If you want to run MAXCUT on a graph with non-uniform edge weights, specify them as the `weight` attribute of each edge, with `networkx`. (If any `weight` attribute is not defined, the solver assumes it's `1.0` for that edge.)
52
+ The (integer) `quality` setting is optional, with a default value of `8`, but you can turn it up for higher-quality results, or turn it down to save time. (You can also optionally specify the number of measurement `shots` as an argument, if you want specific fine-grained control over resource usage.) If you want to run MAXCUT on a graph with non-uniform edge weights, specify them as the `weight` attribute of each edge, with `networkx`. (If any `weight` attribute is not defined, the solver assumes it's `1.0` for that edge.)
53
53
 
54
54
  Based on a combination of the TFIM-inspired MAXCUT solver and another technique for finding ground-state energy in quantum chemistry that we call the _"binary Clifford eigensolver,"_ we also provide an (approximate) spin glass ground-state solver:
55
55
  ```py
@@ -12,7 +12,7 @@ build-backend = "setuptools.build_meta"
12
12
 
13
13
  [project]
14
14
  name = "PyQrackIsing"
15
- version = "1.14.3"
15
+ version = "1.14.6"
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.14.3',
54
+ version='1.14.6',
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