PyQrackIsing 1.5.1__tar.gz → 1.5.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.5.1
3
+ Version: 1.5.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
@@ -114,6 +114,7 @@ std::vector<double> maxcut_hamming_cdf(
114
114
  x /= tot_prob;
115
115
  }
116
116
 
117
+ tot_prob = 0.0;
117
118
  for (size_t i = 0U; i < hamming_prob.size(); ++i) {
118
119
  tot_prob += hamming_prob[i];
119
120
  hamming_prob[i] = tot_prob;
@@ -1,7 +1,6 @@
1
1
  import networkx as nx
2
2
  import numpy as np
3
3
  import tfim_sampler
4
- from numba import njit
5
4
 
6
5
 
7
6
  # Written by Elara (OpenAI custom GPT)
@@ -50,7 +49,6 @@ def local_repulsion_choice(adjacency, degrees, weights, n, m):
50
49
  return mask
51
50
 
52
51
 
53
- @njit
54
52
  def evaluate_cut_edges(samples, flat_edges):
55
53
  best_value = -1
56
54
  best_solution = None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: PyQrackIsing
3
- Version: 1.5.1
3
+ Version: 1.5.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
@@ -46,10 +46,10 @@ from PyQrackIsing import maxcut_tfim
46
46
  import networkx as nx
47
47
 
48
48
  G = nx.petersen_graph()
49
- best_cut_value, best_solution_bit_string, best_cut_edges = maxcut_tfim(G, quality=10)
49
+ best_cut_value, best_solution_bit_string, best_cut_edges = maxcut_tfim(G, quality=12)
50
50
  ```
51
51
 
52
- The (integer) `quality` setting is optional, with a default value of `10`, 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 `12`, 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
  ## About
55
55
  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.
@@ -5,13 +5,12 @@ requires = [
5
5
  "setuptools",
6
6
  "networkx",
7
7
  "numpy",
8
- "numba",
9
8
  ]
10
9
  build-backend = "setuptools.build_meta"
11
10
 
12
11
  [project]
13
12
  name = "PyQrackIsing"
14
- version = "1.5.1"
13
+ version = "1.5.3"
15
14
  requires-python = ">=3.8"
16
15
  description = "Near-ideal closed-form solutions for transverse field Ising model (TFIM)"
17
16
  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.5.1',
54
+ version='1.5.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