pyqrack-cpu 1.66.8__py3-none-manylinux_2_39_x86_64.whl → 1.67.0__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 pyqrack-cpu might be problematic. Click here for more details.
- pyqrack/qrack_simulator.py +22 -0
- pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so +0 -0
- pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.26.0 +0 -0
- pyqrack/qrack_system/qrack_system.py +3 -0
- {pyqrack_cpu-1.66.8.dist-info → pyqrack_cpu-1.67.0.dist-info}/METADATA +1 -1
- {pyqrack_cpu-1.66.8.dist-info → pyqrack_cpu-1.67.0.dist-info}/RECORD +9 -9
- pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.25.8 +0 -0
- {pyqrack_cpu-1.66.8.dist-info → pyqrack_cpu-1.67.0.dist-info}/WHEEL +0 -0
- {pyqrack_cpu-1.66.8.dist-info → pyqrack_cpu-1.67.0.dist-info}/licenses/LICENSE +0 -0
- {pyqrack_cpu-1.66.8.dist-info → pyqrack_cpu-1.67.0.dist-info}/top_level.txt +0 -0
pyqrack/qrack_simulator.py
CHANGED
|
@@ -2312,6 +2312,28 @@ class QrackSimulator:
|
|
|
2312
2312
|
self._throw_if_error()
|
|
2313
2313
|
return [complex(r, i) for r, i in self._pairwise(flat_rdm)]
|
|
2314
2314
|
|
|
2315
|
+
def highest_prob_perm(self):
|
|
2316
|
+
"""Get the permutation (bit string) with the highest probability
|
|
2317
|
+
|
|
2318
|
+
Returns the single highest-probability bit string in the Hilbert space
|
|
2319
|
+
|
|
2320
|
+
Raises:
|
|
2321
|
+
RuntimeError: QrackSimulator raised an exception.
|
|
2322
|
+
|
|
2323
|
+
Returns:
|
|
2324
|
+
Highest probability dimension index
|
|
2325
|
+
"""
|
|
2326
|
+
num_q = self.num_qubits()
|
|
2327
|
+
num_words = (num_q + 63) // 64
|
|
2328
|
+
_r = (ctypes.c_ulonglong * num_words)()
|
|
2329
|
+
Qrack.qrack_lib.HighestProbAll(self.sid, _r)
|
|
2330
|
+
self._throw_if_error()
|
|
2331
|
+
r = 0
|
|
2332
|
+
for w in range(num_words):
|
|
2333
|
+
r <<= 64
|
|
2334
|
+
r |= _r[w]
|
|
2335
|
+
return r
|
|
2336
|
+
|
|
2315
2337
|
def prob_all(self, q):
|
|
2316
2338
|
"""Probabilities of all subset permutations
|
|
2317
2339
|
|
|
Binary file
|
|
Binary file
|
|
@@ -158,6 +158,9 @@ class QrackSystem:
|
|
|
158
158
|
|
|
159
159
|
# pseudo-quantum
|
|
160
160
|
|
|
161
|
+
self.qrack_lib.HighestProbAll.restype = None
|
|
162
|
+
self.qrack_lib.HighestProbAll.argtypes = [c_ulonglong, POINTER(c_ulonglong)]
|
|
163
|
+
|
|
161
164
|
self.qrack_lib.ProbAll.restype = None
|
|
162
165
|
if self.fppow == 5:
|
|
163
166
|
self.qrack_lib.ProbAll.argtypes = [
|
|
@@ -5,19 +5,19 @@ pyqrack/qrack_ace_backend.py,sha256=Prw1NhVVt0csbHiJeW8MJI9rl1P1YS63sXM5quoNPrI,
|
|
|
5
5
|
pyqrack/qrack_circuit.py,sha256=vDCKGbcEHJDFUKprjCpWgit8lXFnMrPimKHURD2_Hj4,19538
|
|
6
6
|
pyqrack/qrack_neuron.py,sha256=UiJdjAGB6usjAGHWSosSFCUUeIkhh3MtZbsaxfsIsNw,9043
|
|
7
7
|
pyqrack/qrack_neuron_torch_layer.py,sha256=Bs5BLC2GFevfSpo_jSJ2AZl-hfDRJmzlGN9pFw1CtoQ,6160
|
|
8
|
-
pyqrack/qrack_simulator.py,sha256=
|
|
8
|
+
pyqrack/qrack_simulator.py,sha256=EoYBDgonRy9jYSTUVyBWXGnvvT2sOiwNX9KfJo1YRHQ,145471
|
|
9
9
|
pyqrack/qrack_stabilizer.py,sha256=O-7VJ9Vw4h25PK_kesSjIqHXGSo8lLrQLIyGgmzG7Co,2124
|
|
10
10
|
pyqrack/quimb_circuit_type.py,sha256=Sk-Tmn38kUYmAkJJ75btWuhYZyTXOOezmowFhfdiGDc,621
|
|
11
11
|
pyqrack/qrack_system/__init__.py,sha256=-oZ9dsb1hixsnrkUJRY_C5DzQ_l6MtifF_Z465BgqV4,334
|
|
12
|
-
pyqrack/qrack_system/qrack_system.py,sha256=
|
|
12
|
+
pyqrack/qrack_system/qrack_system.py,sha256=7Vluae5m-PeVrn8eg8b_wibU7AMMo4lwntcTbi0wfBU,43530
|
|
13
13
|
pyqrack/qrack_system/qrack_cl_precompile/qrack_cl_precompile,sha256=Yt1YxAOJ9vqlndghgIIXrosZEE3AZDG7eNpsmVUqBr4,16392
|
|
14
|
-
pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so,sha256=
|
|
15
|
-
pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.
|
|
14
|
+
pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so,sha256=ZPLxCCJBK_SAIKgvFzp42MhHrjxb_haGW4P_cc8dBo8,3722848
|
|
15
|
+
pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.26.0,sha256=ZPLxCCJBK_SAIKgvFzp42MhHrjxb_haGW4P_cc8dBo8,3722848
|
|
16
16
|
pyqrack/stats/__init__.py,sha256=Hla85my2fY_roR9lIjGBVpEG7ySOTMwjWa8D6-kgCnY,276
|
|
17
17
|
pyqrack/stats/load_quantized_data.py,sha256=z12u9F7Nt3P-i44nY1xxvso_klS6WIHS3iqq7R2_lqE,1184
|
|
18
18
|
pyqrack/stats/quantize_by_range.py,sha256=UM0_7jJDdQ7g30cR3UQAxkbzkqrmsy1oUfqg0h11FUY,2270
|
|
19
|
-
pyqrack_cpu-1.
|
|
20
|
-
pyqrack_cpu-1.
|
|
21
|
-
pyqrack_cpu-1.
|
|
22
|
-
pyqrack_cpu-1.
|
|
23
|
-
pyqrack_cpu-1.
|
|
19
|
+
pyqrack_cpu-1.67.0.dist-info/licenses/LICENSE,sha256=HxB-7SaWTuewAk1nz-3_3FUD6QhgX73kNT_taKVUTq8,1069
|
|
20
|
+
pyqrack_cpu-1.67.0.dist-info/METADATA,sha256=JmnkxsPtoM_iq9-itWPWtZrlRT2y48oeP6aMBhUbfxQ,6181
|
|
21
|
+
pyqrack_cpu-1.67.0.dist-info/WHEEL,sha256=k8EuOMBHdXsN9XSTE5LrpwS4FtdLkoSlyO_7W-lE_zg,109
|
|
22
|
+
pyqrack_cpu-1.67.0.dist-info/top_level.txt,sha256=YE_3q9JTGRLMilNg2tGP1y7uU-Dx8PDao2OhwoIbv8E,8
|
|
23
|
+
pyqrack_cpu-1.67.0.dist-info/RECORD,,
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|