PyQrackIsing 9.3.2__py3-none-win_amd64.whl → 9.3.4__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/otoc.py +2 -3
- {pyqrackising-9.3.2.dist-info → pyqrackising-9.3.4.dist-info}/METADATA +1 -1
- {pyqrackising-9.3.2.dist-info → pyqrackising-9.3.4.dist-info}/RECORD +6 -6
- {pyqrackising-9.3.2.dist-info → pyqrackising-9.3.4.dist-info}/WHEEL +0 -0
- {pyqrackising-9.3.2.dist-info → pyqrackising-9.3.4.dist-info}/licenses/LICENSE.md +0 -0
- {pyqrackising-9.3.2.dist-info → pyqrackising-9.3.4.dist-info}/top_level.txt +0 -0
pyqrackising/otoc.py
CHANGED
|
@@ -10,12 +10,12 @@ def get_otoc_hamming_distribution(J=-1.0, h=2.0, z=4, theta=0.174532925199432957
|
|
|
10
10
|
raise ValueError("OTOCS pauli_string must be same length as n_qubits! (Use 'I' for qubits that aren't changed.)")
|
|
11
11
|
|
|
12
12
|
fwd = probability_by_hamming_weight(J, h, z, theta, t, n_qubits + 1)
|
|
13
|
-
rev = probability_by_hamming_weight(-J, -h, z,
|
|
13
|
+
rev = probability_by_hamming_weight(-J, -h, z, theta + np.pi, t, n_qubits + 1)
|
|
14
14
|
diff_theta = rev - fwd
|
|
15
15
|
|
|
16
16
|
phi = theta - np.pi / 2
|
|
17
17
|
fwd = probability_by_hamming_weight(J, h, z, phi, t, n_qubits + 1)
|
|
18
|
-
rev = probability_by_hamming_weight(-J, -h, z,
|
|
18
|
+
rev = probability_by_hamming_weight(-J, -h, z, phi + np.pi, t, n_qubits + 1)
|
|
19
19
|
diff_phi = rev - fwd
|
|
20
20
|
|
|
21
21
|
diff_theta *= cycles
|
|
@@ -69,7 +69,6 @@ def fix_cdf(hamming_prob):
|
|
|
69
69
|
return cum_prob
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
@njit
|
|
73
72
|
def take_all(b, basis, sample):
|
|
74
73
|
for i in range(len(basis)):
|
|
75
74
|
if basis[i] == b:
|
|
@@ -6,7 +6,7 @@ pyqrackising/maxcut_tfim.py,sha256=U1nNjyfMS48TtTQk7TRf5_VF3pVPfAcZEa2awc2nR8k,1
|
|
|
6
6
|
pyqrackising/maxcut_tfim_sparse.py,sha256=eenJNSEwRvgwACfKoH0tj6rpn7uqH6nNTBuxUPh_lDg,11941
|
|
7
7
|
pyqrackising/maxcut_tfim_streaming.py,sha256=FkBsRoXSRhv4gUeN9O7Ivx54oxq_SqiCDKnYsyxU4bs,6664
|
|
8
8
|
pyqrackising/maxcut_tfim_util.py,sha256=nMLrbvDMsCtVgbS4vbRNSZYpdne5YzdifjlQbbWmKjU,16935
|
|
9
|
-
pyqrackising/otoc.py,sha256
|
|
9
|
+
pyqrackising/otoc.py,sha256=-I8RFmpTXJFc6uokp4hjX6mJuMNO61ViR8WqCxr9OTg,5542
|
|
10
10
|
pyqrackising/spin_glass_solver.py,sha256=tgmdJ6b1TetnFM--QEzOZFsNkquQYRVYiHVSzIGYvMI,14207
|
|
11
11
|
pyqrackising/spin_glass_solver_sparse.py,sha256=cmXfAR43n1beRk4LaQbwfrQWkkhMPzPXpdK2T1HhQrk,15159
|
|
12
12
|
pyqrackising/spin_glass_solver_streaming.py,sha256=joQLMKotgjQMwbG0msv_AookiWva_AiVBIR0Xr1Unho,10310
|
|
@@ -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=k8VK6fKw_niR-dVz8MyOT7LedABIwTzcSkhTOircYBg,64290
|
|
16
16
|
pyqrackising/tsp_maxcut.py,sha256=lEDruz5lhjVu0ufvH5VaMJW3_nohO-rEijJJabEtuSU,10084
|
|
17
|
-
pyqrackising-9.3.
|
|
18
|
-
pyqrackising-9.3.
|
|
19
|
-
pyqrackising-9.3.
|
|
20
|
-
pyqrackising-9.3.
|
|
21
|
-
pyqrackising-9.3.
|
|
17
|
+
pyqrackising-9.3.4.dist-info/licenses/LICENSE.md,sha256=fTqV5eBpeAZO0_jit8j4Ref9ikBSlHJ8xwj5TLg7gFk,7817
|
|
18
|
+
pyqrackising-9.3.4.dist-info/METADATA,sha256=ypbZUY6uAsyLTYwPVFBKK9rvZD0IFumucAdsq5sxAiI,1170
|
|
19
|
+
pyqrackising-9.3.4.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
|
|
20
|
+
pyqrackising-9.3.4.dist-info/top_level.txt,sha256=bxlfGuLwzeVEI8Jm5D9HvC_WedgvvkSrpFwbGDjg-Ag,13
|
|
21
|
+
pyqrackising-9.3.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|