pyqrackising 9.5.5__py3-none-manylinux_2_39_x86_64.whl → 9.5.6__py3-none-manylinux_2_39_x86_64.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.

Potentially problematic release.


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

pyqrackising/otoc.py CHANGED
@@ -53,7 +53,7 @@ def get_otoc_hamming_distribution(J=-1.0, h=2.0, z=4, theta=0.0, t=5, n_qubits=6
53
53
  # Normalize:
54
54
  diff_z /= diff_z.sum()
55
55
 
56
- entropy_frac = np.atan2(entropy_frac, math.sqrt(n_qubits))
56
+ entropy_frac = np.atan(2 ** (entropy_frac / math.sqrt(n_qubits)) - 1) * 2 / np.pi
57
57
  max_entropy = np.empty(n_bias, dtype=np.float64)
58
58
  tot_prob = 0
59
59
  p = 1.0
@@ -192,7 +192,7 @@ def generate_otoc_samples(J=-1.0, h=2.0, z=4, theta=0.0, t=5, n_qubits=65, pauli
192
192
  for pauli_string in pauli_strings:
193
193
  pauli_string = list(pauli_string)
194
194
  entropy_frac += pauli_string.count('X') + pauli_string.count('Y') + pauli_string.count('Z')
195
- entropy_frac = np.atan2(entropy_frac, math.sqrt(n_qubits))
195
+ entropy_frac = np.atan(2 ** (entropy_frac / math.sqrt(n_qubits)) - 1) * 2 / np.pi
196
196
 
197
197
  row_len, col_len = factor_width(n_qubits)
198
198
  inv_dist = np.zeros(n_qubits, dtype=np.float64)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrackising
3
- Version: 9.5.5
3
+ Version: 9.5.6
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
@@ -6,7 +6,7 @@ pyqrackising/maxcut_tfim.py,sha256=05nRjk5hhEjNFjtXdKVObL0cYYuJ8URfcjrOGK5tGi4,1
6
6
  pyqrackising/maxcut_tfim_sparse.py,sha256=zMgaVmEgfZWL2tp728PuEg5Dc_jbQBUPsgbP3lXiMiA,11194
7
7
  pyqrackising/maxcut_tfim_streaming.py,sha256=EcRXKurqLiQs6pMNz-rhMp2YQzRXD726RnkXsPt4IJ0,6346
8
8
  pyqrackising/maxcut_tfim_util.py,sha256=2FSBcba8Ys8HEe_h-ayB68pAqeeJXeveEHGmZKg_tkI,16889
9
- pyqrackising/otoc.py,sha256=IBSwwqkY0ztBXVGlTbvagGTx4HqOgCFjuymE0F45S_g,7615
9
+ pyqrackising/otoc.py,sha256=Jkrm_yTdRZOZUoqPyTJAplZBIPiPRAExYaaPTt0FHG0,7661
10
10
  pyqrackising/spin_glass_solver.py,sha256=YtsIfYfpwhEMQPVd_sbjqpz6nQcrv8p2mUBYZ-wRpnM,13792
11
11
  pyqrackising/spin_glass_solver_sparse.py,sha256=E4Ft7H-uKXZyq1cS7Z77AgdkL5fMlKMK6DwnXgrgOhk,14740
12
12
  pyqrackising/spin_glass_solver_streaming.py,sha256=xpWq63yODMzBPQQtpDuB1Tro6ta8pPbVwc0ZkDWVASk,10018
@@ -14,8 +14,8 @@ pyqrackising/tfim_magnetization.py,sha256=On1MhCNGGHRxJFRmCOpMcdqQJiy25gWkjz0Ka8
14
14
  pyqrackising/tfim_square_magnetization.py,sha256=9uJCT8ytyufcGFrZiignjCkWJr9UcP44sAAy0BIBw34,531
15
15
  pyqrackising/tsp.py,sha256=kqDxU2RCjad-T4tW_C9WO1I-COSwX7fHB6VhIuQsjfQ,62464
16
16
  pyqrackising/tsp_maxcut.py,sha256=ngxfSJgePXVwJXfNXYdk4jv1ISznx8zHOqR-Vbf33B0,9772
17
- pyqrackising-9.5.5.dist-info/licenses/LICENSE.md,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
18
- pyqrackising-9.5.5.dist-info/METADATA,sha256=hdoMVoEefQC05lsDpei1yzU515H-tSc5Kbvfyidwo8U,1143
19
- pyqrackising-9.5.5.dist-info/WHEEL,sha256=k8EuOMBHdXsN9XSTE5LrpwS4FtdLkoSlyO_7W-lE_zg,109
20
- pyqrackising-9.5.5.dist-info/top_level.txt,sha256=bxlfGuLwzeVEI8Jm5D9HvC_WedgvvkSrpFwbGDjg-Ag,13
21
- pyqrackising-9.5.5.dist-info/RECORD,,
17
+ pyqrackising-9.5.6.dist-info/licenses/LICENSE.md,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
18
+ pyqrackising-9.5.6.dist-info/METADATA,sha256=_-OLzGTnWpL3g1ufcGXXn4wb-Xb7BxSIG4G6jKST53o,1143
19
+ pyqrackising-9.5.6.dist-info/WHEEL,sha256=k8EuOMBHdXsN9XSTE5LrpwS4FtdLkoSlyO_7W-lE_zg,109
20
+ pyqrackising-9.5.6.dist-info/top_level.txt,sha256=bxlfGuLwzeVEI8Jm5D9HvC_WedgvvkSrpFwbGDjg-Ag,13
21
+ pyqrackising-9.5.6.dist-info/RECORD,,