pyqrack-cpu 1.52.8__py3-none-manylinux_2_39_x86_64.whl → 1.53.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_ace_backend.py +3 -4
- {pyqrack_cpu-1.52.8.dist-info → pyqrack_cpu-1.53.0.dist-info}/METADATA +1 -5
- {pyqrack_cpu-1.52.8.dist-info → pyqrack_cpu-1.53.0.dist-info}/RECORD +6 -6
- {pyqrack_cpu-1.52.8.dist-info → pyqrack_cpu-1.53.0.dist-info}/WHEEL +0 -0
- {pyqrack_cpu-1.52.8.dist-info → pyqrack_cpu-1.53.0.dist-info}/licenses/LICENSE +0 -0
- {pyqrack_cpu-1.52.8.dist-info → pyqrack_cpu-1.53.0.dist-info}/top_level.txt +0 -0
pyqrack/qrack_ace_backend.py
CHANGED
|
@@ -146,8 +146,7 @@ class QrackAceBackend:
|
|
|
146
146
|
col_len -= 1
|
|
147
147
|
row_len = width // col_len
|
|
148
148
|
|
|
149
|
-
self.col_length = row_len if reverse else col_len
|
|
150
|
-
self.row_length = col_len if reverse else row_len
|
|
149
|
+
self.col_length, self.row_length = (row_len, col_len) if reverse else (col_len, row_len)
|
|
151
150
|
|
|
152
151
|
def _ct_pair_prob(self, q1, q2):
|
|
153
152
|
p1 = self.sim[q1[0]].prob(q1[1])
|
|
@@ -534,8 +533,6 @@ class QrackAceBackend:
|
|
|
534
533
|
hq1 = self._unpack(lq1)
|
|
535
534
|
hq2 = self._unpack(lq2)
|
|
536
535
|
|
|
537
|
-
self._correct(lq1)
|
|
538
|
-
|
|
539
536
|
if lq1_lr and lq2_lr:
|
|
540
537
|
b1 = hq1[0]
|
|
541
538
|
b2 = hq2[0]
|
|
@@ -546,6 +543,8 @@ class QrackAceBackend:
|
|
|
546
543
|
shadow(b1, b2)
|
|
547
544
|
return
|
|
548
545
|
|
|
546
|
+
self._correct(lq1)
|
|
547
|
+
|
|
549
548
|
if (lq2_col in connected_cols) and (connected_cols.index(lq2_col) < boundary):
|
|
550
549
|
# lq2_col < lq1_col
|
|
551
550
|
self._encode_decode(hq1)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pyqrack-cpu
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.53.0
|
|
4
4
|
Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
|
|
5
5
|
Home-page: https://github.com/vm6502q/pyqrack
|
|
6
6
|
Author: Daniel Strano
|
|
@@ -62,10 +62,6 @@ This is the **purely CPU-based** variant of PyQrack (with module name `pyqrack-c
|
|
|
62
62
|
|
|
63
63
|
**If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
|
|
64
64
|
|
|
65
|
-
(**If you installing from source,** it doesn't matter whether you use `pyqrack` or `pyqrack-cpu`, because the build version of C++ Qrack you intend to use must already be installed locally.)
|
|
66
|
-
|
|
67
|
-
**If you're looking for Mac ARM support, use the package `pyqrack`, not `pyqrack-cpu`.** Mac officially "deprecated" OpenCL years ago. Hence, accelerator support is not included in ARM-based Mac wheels, and OpenCL installation is **not** required on these systems, but, if you have a CUDA accelerator on ARM-based Mac, you could try the package `pyqrack-cuda` instead.
|
|
68
|
-
|
|
69
65
|
**Performance can benefit greatly from following the [Qrack repository "Quick Start" and "Power user considerations."](https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start)**
|
|
70
66
|
|
|
71
67
|
Import and instantiate [`QrackSimulator`](https://github.com/unitaryfund/pyqrack/blob/main/pyqrack/qrack_simulator.py) instances. This simulator can perform arbitrary single qubit and controlled-single-qubit gates, as well as other specific gates like `SWAP`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
pyqrack/__init__.py,sha256=3tBwfCCD-zQjQ2g1EUZdggKdn-3b2uSFTbT7LS0YLaU,785
|
|
2
2
|
pyqrack/neuron_activation_fn.py,sha256=fQTTFfsvwcot_43Vopacot47IV2Rxk8pelUyuzwpXPs,593
|
|
3
3
|
pyqrack/pauli.py,sha256=wg500wDOwdIU4lEVJoMmjtbAdmtakZYzLPjdzC2rwUQ,654
|
|
4
|
-
pyqrack/qrack_ace_backend.py,sha256=
|
|
4
|
+
pyqrack/qrack_ace_backend.py,sha256=cklm--ClsdlngSyTmVKkuDNfI72UwHUCafgmks3SINc,41279
|
|
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
|
|
@@ -15,8 +15,8 @@ pyqrack/qrack_system/qrack_lib/libqrack_pinvoke.so.9.20.0,sha256=JFdxEoymJQvL6_Z
|
|
|
15
15
|
pyqrack/stats/__init__.py,sha256=Hla85my2fY_roR9lIjGBVpEG7ySOTMwjWa8D6-kgCnY,276
|
|
16
16
|
pyqrack/stats/load_quantized_data.py,sha256=z12u9F7Nt3P-i44nY1xxvso_klS6WIHS3iqq7R2_lqE,1184
|
|
17
17
|
pyqrack/stats/quantize_by_range.py,sha256=UM0_7jJDdQ7g30cR3UQAxkbzkqrmsy1oUfqg0h11FUY,2270
|
|
18
|
-
pyqrack_cpu-1.
|
|
19
|
-
pyqrack_cpu-1.
|
|
20
|
-
pyqrack_cpu-1.
|
|
21
|
-
pyqrack_cpu-1.
|
|
22
|
-
pyqrack_cpu-1.
|
|
18
|
+
pyqrack_cpu-1.53.0.dist-info/licenses/LICENSE,sha256=HxB-7SaWTuewAk1nz-3_3FUD6QhgX73kNT_taKVUTq8,1069
|
|
19
|
+
pyqrack_cpu-1.53.0.dist-info/METADATA,sha256=BcZj2O6v3ej9MpvWex_OH0uCG4lfgry65nl-16B31bg,6140
|
|
20
|
+
pyqrack_cpu-1.53.0.dist-info/WHEEL,sha256=k8EuOMBHdXsN9XSTE5LrpwS4FtdLkoSlyO_7W-lE_zg,109
|
|
21
|
+
pyqrack_cpu-1.53.0.dist-info/top_level.txt,sha256=YE_3q9JTGRLMilNg2tGP1y7uU-Dx8PDao2OhwoIbv8E,8
|
|
22
|
+
pyqrack_cpu-1.53.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|