PyQrackIsing 9.2.4__py3-none-win_amd64.whl → 9.2.5__py3-none-win_amd64.whl

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.
pyqrackising/tsp.py CHANGED
@@ -1,7 +1,6 @@
1
1
  from .maxcut_tfim_util import binary_search, opencl_context, to_scipy_sparse_upper_triangular
2
- from .maxcut_tfim import maxcut_tfim
2
+ from .spin_glass_solver import spin_glass_solver
3
3
  from concurrent.futures import ProcessPoolExecutor
4
- import time
5
4
  import itertools
6
5
  import networkx as nx
7
6
  from numba import njit, prange
@@ -639,7 +638,7 @@ def tsp_symmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repulsi
639
638
  for _ in range(multi_start):
640
639
  bits = ([], [])
641
640
  while (len(bits[0]) == 0) or (len(bits[1]) == 0):
642
- _, cut_value, bits = maxcut_tfim(G_m, quality=quality, shots=shots, anneal_t=anneal_t, anneal_h=anneal_h, repulsion_base=repulsion_base)
641
+ _, cut_value, bits, _ = spin_glass_solver(G_m, is_spin_glass=False, quality=quality, shots=shots, anneal_t=anneal_t, anneal_h=anneal_h, repulsion_base=repulsion_base)
643
642
  if cut_value > best_cut:
644
643
  best_cut = cut_value
645
644
  a, b = bits
@@ -851,7 +850,7 @@ def tsp_asymmetric_header(G_m, nodes, quality, shots, anneal_t, anneal_h, repuls
851
850
  for _ in range(multi_start):
852
851
  bits = ([], [])
853
852
  while (len(bits[0]) == 0) or (len(bits[1]) == 0):
854
- _, cut_value, bits = maxcut_tfim((G_m + G_m.T) / 2, quality=quality, shots=shots, anneal_t=anneal_t, anneal_h=anneal_h, repulsion_base=repulsion_base)
853
+ _, cut_value, bits, _ = spin_glass_solver((G_m + G_m.T) / 2, is_spin_glass=False, quality=quality, shots=shots, anneal_t=anneal_t, anneal_h=anneal_h, repulsion_base=repulsion_base)
855
854
  if cut_value > best_cut:
856
855
  best_cut = cut_value
857
856
  a, b = bits
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 9.2.4
3
+ Version: 9.2.5
4
4
  Summary: Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)
5
5
  Home-page: https://github.com/vm6502q/PyQrackIsing
6
6
  Author: Dan Strano
@@ -11,10 +11,10 @@ pyqrackising/spin_glass_solver_sparse.py,sha256=cmXfAR43n1beRk4LaQbwfrQWkkhMPzPX
11
11
  pyqrackising/spin_glass_solver_streaming.py,sha256=joQLMKotgjQMwbG0msv_AookiWva_AiVBIR0Xr1Unho,10310
12
12
  pyqrackising/tfim_magnetization.py,sha256=On1MhCNGGHRxJFRmCOpMcdqQJiy25gWkjz0Ka8i5f-Q,499
13
13
  pyqrackising/tfim_square_magnetization.py,sha256=9uJCT8ytyufcGFrZiignjCkWJr9UcP44sAAy0BIBw34,531
14
- pyqrackising/tsp.py,sha256=En1Dw66gSi1wit627jI_eKuZMlFNTJU5T3TKZ1R05eE,64231
14
+ pyqrackising/tsp.py,sha256=k8VK6fKw_niR-dVz8MyOT7LedABIwTzcSkhTOircYBg,64290
15
15
  pyqrackising/tsp_maxcut.py,sha256=lEDruz5lhjVu0ufvH5VaMJW3_nohO-rEijJJabEtuSU,10084
16
- pyqrackising-9.2.4.dist-info/licenses/LICENSE.md,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
17
- pyqrackising-9.2.4.dist-info/METADATA,sha256=k-dQ0Djj0ZaYQzGxYEvU2S7g5WXDPmLDM_mCuxy4B0c,1170
18
- pyqrackising-9.2.4.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
19
- pyqrackising-9.2.4.dist-info/top_level.txt,sha256=bxlfGuLwzeVEI8Jm5D9HvC_WedgvvkSrpFwbGDjg-Ag,13
20
- pyqrackising-9.2.4.dist-info/RECORD,,
16
+ pyqrackising-9.2.5.dist-info/licenses/LICENSE.md,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
17
+ pyqrackising-9.2.5.dist-info/METADATA,sha256=G37WYQ20T-a2LA_5E-fMuPNAowBF9YokbeVRKjC47oc,1170
18
+ pyqrackising-9.2.5.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
19
+ pyqrackising-9.2.5.dist-info/top_level.txt,sha256=bxlfGuLwzeVEI8Jm5D9HvC_WedgvvkSrpFwbGDjg-Ag,13
20
+ pyqrackising-9.2.5.dist-info/RECORD,,