pyqrackising 9.5.10__tar.gz → 9.5.11__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.

Potentially problematic release.


This version of pyqrackising might be problematic. Click here for more details.

Files changed (28) hide show
  1. {pyqrackising-9.5.10/pyqrackising.egg-info → pyqrackising-9.5.11}/PKG-INFO +1 -1
  2. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyproject.toml +1 -1
  3. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/otoc.py +6 -6
  4. {pyqrackising-9.5.10 → pyqrackising-9.5.11/pyqrackising.egg-info}/PKG-INFO +1 -1
  5. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/setup.py +1 -1
  6. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/LICENSE.md +0 -0
  7. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/MANIFEST.in +0 -0
  8. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/README.md +0 -0
  9. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/__init__.py +0 -0
  10. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/convert_tensor_network_to_tsp.py +0 -0
  11. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/generate_tfim_samples.py +0 -0
  12. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/kernels.cl +0 -0
  13. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/maxcut_tfim.py +0 -0
  14. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/maxcut_tfim_sparse.py +0 -0
  15. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/maxcut_tfim_streaming.py +0 -0
  16. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/maxcut_tfim_util.py +0 -0
  17. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/spin_glass_solver.py +0 -0
  18. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/spin_glass_solver_sparse.py +0 -0
  19. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/spin_glass_solver_streaming.py +0 -0
  20. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/tfim_magnetization.py +0 -0
  21. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/tfim_square_magnetization.py +0 -0
  22. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/tsp.py +0 -0
  23. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising/tsp_maxcut.py +0 -0
  24. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising.egg-info/SOURCES.txt +0 -0
  25. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising.egg-info/dependency_links.txt +0 -0
  26. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising.egg-info/not-zip-safe +0 -0
  27. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/pyqrackising.egg-info/top_level.txt +0 -0
  28. {pyqrackising-9.5.10 → pyqrackising-9.5.11}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 9.5.10
3
+ Version: 9.5.11
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
@@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"
10
10
 
11
11
  [project]
12
12
  name = "pyqrackising"
13
- version = "9.5.10"
13
+ version = "9.5.11"
14
14
  requires-python = ">=3.8"
15
15
  description = "Fast MAXCUT, TSP, and sampling heuristics from near-ideal transverse field Ising model (TFIM)"
16
16
  readme = {file = "README.txt", content-type = "text/markdown"}
@@ -141,7 +141,7 @@ def take_sample(n_qubits, sample, m, inv_dist):
141
141
  return sample
142
142
 
143
143
 
144
- def get_willow_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len):
144
+ def get_willow_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len, t):
145
145
  inv_dist = np.zeros(n_qubits, dtype=np.float64)
146
146
  for idx in butterfly_idx_x:
147
147
  b_row, b_col = divmod(idx, row_len)
@@ -153,12 +153,12 @@ def get_willow_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col
153
153
  for q in range(n_qubits):
154
154
  q_row, q_col = divmod(q, row_len)
155
155
  inv_dist[q] -= abs(q_row - b_row) + abs(q_col - b_col)
156
- inv_dist = 2 ** inv_dist
156
+ inv_dist = 2 ** (inv_dist / t)
157
157
 
158
158
  return inv_dist
159
159
 
160
160
 
161
- def get_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len):
161
+ def get_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len, t):
162
162
  inv_dist = np.zeros(n_qubits, dtype=np.float64)
163
163
  half_row = row_len >> 1
164
164
  half_col = col_len >> 1
@@ -184,7 +184,7 @@ def get_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len):
184
184
  if col_d > half_col:
185
185
  col_d = col_len - col_d
186
186
  inv_dist[q] -= row_d + col_d
187
- inv_dist = 2 ** inv_dist
187
+ inv_dist = 2 ** (inv_dist / t)
188
188
 
189
189
  return inv_dist
190
190
 
@@ -200,9 +200,9 @@ def generate_otoc_samples(J=-1.0, h=2.0, z=4, theta=0.0, t=5, n_qubits=65, pauli
200
200
  butterfly_idx_x = find_all_str_occurrences(pauli_string, 'X')
201
201
  butterfly_idx_z = find_all_str_occurrences(pauli_string, 'Z')
202
202
  if is_orbifold:
203
- inv_dist += get_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len)
203
+ inv_dist += get_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len, t)
204
204
  else:
205
- inv_dist += get_willow_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len)
205
+ inv_dist += get_willow_inv_dist(butterfly_idx_x, butterfly_idx_z, n_qubits, row_len, col_len, t)
206
206
  inv_dist /= 2.0
207
207
 
208
208
  qubit_pows = [1 << q for q in range(n_qubits)]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 9.5.10
3
+ Version: 9.5.11
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
@@ -7,7 +7,7 @@ with open(README_PATH) as readme_file:
7
7
 
8
8
  setup(
9
9
  name='pyqrackising',
10
- version='9.5.10',
10
+ version='9.5.11',
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