Skip to content

Commit de0aede

Browse files
Can afford O(n^2) Gray search complexity per thread
1 parent 0c41de1 commit de0aede

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
1010

1111
[project]
1212
name = "pyqrackising"
13-
version = "9.5.13"
13+
version = "9.6.0"
1414
requires-python = ">=3.8"
1515
description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
1616
readme = {file = "README.txt", content-type = "text/markdown"}

pyqrackising/spin_glass_solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def spin_glass_solver(
308308
best_theta = np.array([b == "1" for b in list(bitstring)], dtype=np.bool_)
309309

310310
if gray_iterations is None:
311-
gray_iterations = n_qubits * os.cpu_count()
311+
gray_iterations = n_qubits * n_qubits * os.cpu_count()
312312

313313
if gray_seed_multiple is None:
314314
gray_seed_multiple = os.cpu_count()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name='pyqrackising',
10-
version='9.5.13',
10+
version='9.6.0',
1111
author='Dan Strano',
1212
author_email='stranoj@gmail.com',
1313
description='Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)',

0 commit comments

Comments
 (0)