PyQrackIsing 9.16.5__tar.gz → 9.16.7__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.
- {pyqrackising-9.16.5/pyqrackising.egg-info → pyqrackising-9.16.7}/PKG-INFO +1 -1
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyproject.toml +1 -1
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/generate_tfim_samples.py +1 -2
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/otoc.py +4 -4
- {pyqrackising-9.16.5 → pyqrackising-9.16.7/pyqrackising.egg-info}/PKG-INFO +1 -1
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/setup.py +1 -1
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/LICENSE.md +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/MANIFEST.in +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/README.md +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/__init__.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/kernels.cl +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/maxcut_tfim.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/maxcut_tfim_sparse.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/maxcut_tfim_streaming.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/maxcut_tfim_util.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/solve_maxcut_bnb.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/solve_maxcut_bnb_sparse.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/solve_maxcut_bnb_streaming.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/solve_maxcut_exact.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/solve_maxcut_exact_sparse.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/solve_maxcut_exact_streaming.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/spin_glass_solver.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/spin_glass_solver_hybrid.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/spin_glass_solver_sparse.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/spin_glass_solver_streaming.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/tfim_magnetization.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/tfim_square_magnetization.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/tsp.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising/tsp_maxcut.py +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising.egg-info/SOURCES.txt +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising.egg-info/dependency_links.txt +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising.egg-info/not-zip-safe +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising.egg-info/requires.txt +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/pyqrackising.egg-info/top_level.txt +0 -0
- {pyqrackising-9.16.5 → pyqrackising-9.16.7}/setup.cfg +0 -0
|
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
|
|
|
7
7
|
|
|
8
8
|
[project]
|
|
9
9
|
name = "pyqrackising"
|
|
10
|
-
version = "9.16.
|
|
10
|
+
version = "9.16.7"
|
|
11
11
|
requires-python = ">=3.8"
|
|
12
12
|
description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
|
|
13
13
|
readme = {file = "README.txt", content-type = "text/markdown"}
|
|
@@ -321,7 +321,6 @@ def tilt(bias, beta, n_qubits):
|
|
|
321
321
|
|
|
322
322
|
|
|
323
323
|
def sample_from_bias(bias, shots, n_qubits):
|
|
324
|
-
n_rows, n_cols = factor_width(n_qubits)
|
|
325
324
|
counts = np.random.multinomial(shots, bias)
|
|
326
325
|
samples = []
|
|
327
326
|
samples += [0] * counts[0]
|
|
@@ -332,7 +331,7 @@ def sample_from_bias(bias, shots, n_qubits):
|
|
|
332
331
|
mask = (1 << n_qubits) - 1
|
|
333
332
|
samples += [(mask ^ int(1 << np.random.randint(n_qubits))) for _ in range(counts[-2])]
|
|
334
333
|
for hw in range(2, len(bias) - 2):
|
|
335
|
-
samples +=
|
|
334
|
+
samples += [random_fixed_hamming_state(n_qubits, hw) for _ in range(counts[hw])]
|
|
336
335
|
np.random.shuffle(samples)
|
|
337
336
|
return samples
|
|
338
337
|
|
|
@@ -54,12 +54,12 @@ def get_otoc_hamming_distribution(J=-1.0, h=2.0, z=4, theta=0.0, t=5, n_qubits=6
|
|
|
54
54
|
for b in pauli_string:
|
|
55
55
|
match b:
|
|
56
56
|
case "X":
|
|
57
|
-
diff_z +=
|
|
57
|
+
diff_z += diff_phi
|
|
58
58
|
case "Z":
|
|
59
|
-
diff_x +=
|
|
59
|
+
diff_x += diff_theta
|
|
60
60
|
case "Y":
|
|
61
|
-
diff_z +=
|
|
62
|
-
diff_x +=
|
|
61
|
+
diff_z += diff_phi
|
|
62
|
+
diff_x += diff_theta
|
|
63
63
|
case _:
|
|
64
64
|
pass
|
|
65
65
|
|
|
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="pyqrackising",
|
|
10
|
-
version="9.16.
|
|
10
|
+
version="9.16.7",
|
|
11
11
|
author="Dan Strano",
|
|
12
12
|
author_email="stranoj@gmail.com",
|
|
13
13
|
description="Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|