pennylane-qrack 0.20.2__py3-none-win_amd64.whl → 0.20.3__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.
Potentially problematic release.
This version of pennylane-qrack might be problematic. Click here for more details.
- pennylane_qrack/_version.py +1 -1
- pennylane_qrack/qrack_ace_device.py +3 -4
- pennylane_qrack/qrack_device.py +3 -4
- {pennylane_qrack-0.20.2.dist-info → pennylane_qrack-0.20.3.dist-info}/METADATA +1 -1
- pennylane_qrack-0.20.3.dist-info/RECORD +13 -0
- pennylane_qrack-0.20.2.dist-info/RECORD +0 -13
- {pennylane_qrack-0.20.2.dist-info → pennylane_qrack-0.20.3.dist-info}/LICENSE +0 -0
- {pennylane_qrack-0.20.2.dist-info → pennylane_qrack-0.20.3.dist-info}/WHEEL +0 -0
- {pennylane_qrack-0.20.2.dist-info → pennylane_qrack-0.20.3.dist-info}/entry_points.txt +0 -0
- {pennylane_qrack-0.20.2.dist-info → pennylane_qrack-0.20.3.dist-info}/top_level.txt +0 -0
pennylane_qrack/_version.py
CHANGED
|
@@ -431,10 +431,9 @@ class QrackAceDevice(QubitDevice):
|
|
|
431
431
|
|
|
432
432
|
return self._samples
|
|
433
433
|
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
)
|
|
437
|
-
self._samples = QubitDevice.states_to_binary(samples, self.num_wires)
|
|
434
|
+
# QubitDevice.states_to_binary() doesn't work for >64qb. (Fix by Elara, the custom OpenAI GPT)
|
|
435
|
+
samples = self._state.measure_shots(list(range(self.num_wires - 1, -1, -1)), self.shots)
|
|
436
|
+
self._samples = np.array([list(format(b, f"0{self.num_wires}b")) for b in samples], dtype=np.int8)
|
|
438
437
|
|
|
439
438
|
return self._samples
|
|
440
439
|
|
pennylane_qrack/qrack_device.py
CHANGED
|
@@ -718,10 +718,9 @@ class QrackDevice(QubitDevice):
|
|
|
718
718
|
|
|
719
719
|
return self._samples
|
|
720
720
|
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
)
|
|
724
|
-
self._samples = QubitDevice.states_to_binary(samples, self.num_wires)
|
|
721
|
+
# QubitDevice.states_to_binary() doesn't work for >64qb. (Fix by Elara, the custom OpenAI GPT)
|
|
722
|
+
samples = self._state.measure_shots(list(range(self.num_wires - 1, -1, -1)), self.shots)
|
|
723
|
+
self._samples = np.array([list(format(b, f"0{self.num_wires}b")) for b in samples], dtype=np.int8)
|
|
725
724
|
|
|
726
725
|
return self._samples
|
|
727
726
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
pennylane_qrack/QrackAceDeviceConfig.toml,sha256=zrGB9gVmB105WX4s7MS-MceoXC5sNTRysxNa_StBpl0,4625
|
|
2
|
+
pennylane_qrack/QrackDeviceConfig.toml,sha256=M3rIJH9GlMJv6lapfSXses5qauSvezs8OqnHYLq6in0,5576
|
|
3
|
+
pennylane_qrack/__init__.py,sha256=5iuZ5OqhRPLxj5cs9jGaUTDv55iPXRVbcDHM6FNk-5c,689
|
|
4
|
+
pennylane_qrack/_version.py,sha256=MQMuwbwC7fYCP41cpabw0A2PHedvmue3rUW050l0tZ0,708
|
|
5
|
+
pennylane_qrack/qrack_ace_device.py,sha256=I5sYLocBzM5IzudHX_iQ-VhYf56GLDUI-ay0tth1axA,17482
|
|
6
|
+
pennylane_qrack/qrack_device.cpp,sha256=EUfSydbidPUjnbK6KfOWUOVvtvM-B59JPJNHrYvtIpM,39004
|
|
7
|
+
pennylane_qrack/qrack_device.py,sha256=-A523IUL30-w8ZLiX50dPZEo2xNg1j8on0omAn3wMPA,29072
|
|
8
|
+
pennylane_qrack-0.20.3.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
9
|
+
pennylane_qrack-0.20.3.dist-info/METADATA,sha256=KgXznQhIXM-G_J50LAT7B59PAu5aJRt_ZtSiOnfh3fU,5985
|
|
10
|
+
pennylane_qrack-0.20.3.dist-info/WHEEL,sha256=JMWfR_Dj7ISokcwe0cBhCfK6JKnIi-ZX11L6d_ntt6o,98
|
|
11
|
+
pennylane_qrack-0.20.3.dist-info/entry_points.txt,sha256=OrkJ6JVk-yndlQjqc-8dm8PxE-jNoNQRFXFeUBxVuCg,139
|
|
12
|
+
pennylane_qrack-0.20.3.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
13
|
+
pennylane_qrack-0.20.3.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
pennylane_qrack/QrackAceDeviceConfig.toml,sha256=zrGB9gVmB105WX4s7MS-MceoXC5sNTRysxNa_StBpl0,4625
|
|
2
|
-
pennylane_qrack/QrackDeviceConfig.toml,sha256=M3rIJH9GlMJv6lapfSXses5qauSvezs8OqnHYLq6in0,5576
|
|
3
|
-
pennylane_qrack/__init__.py,sha256=5iuZ5OqhRPLxj5cs9jGaUTDv55iPXRVbcDHM6FNk-5c,689
|
|
4
|
-
pennylane_qrack/_version.py,sha256=5G-iG1Y5-M0TaOg2aMqm-5urCH35KJXJPmF3O7O8oYA,708
|
|
5
|
-
pennylane_qrack/qrack_ace_device.py,sha256=4a7l51VAf3DRsYrKGkYOZmU-ge_VZ8NWAORgyvxqcNI,17383
|
|
6
|
-
pennylane_qrack/qrack_device.cpp,sha256=EUfSydbidPUjnbK6KfOWUOVvtvM-B59JPJNHrYvtIpM,39004
|
|
7
|
-
pennylane_qrack/qrack_device.py,sha256=tu2QiTYqyg8yhdcgjYD5wgbWFS7WK5K9_oCutJrXITc,28973
|
|
8
|
-
pennylane_qrack-0.20.2.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
|
|
9
|
-
pennylane_qrack-0.20.2.dist-info/METADATA,sha256=oWSp7-YWXLtuSKaHi5MqTsGckOAiQCdZM7PlCNuuKAw,5985
|
|
10
|
-
pennylane_qrack-0.20.2.dist-info/WHEEL,sha256=JMWfR_Dj7ISokcwe0cBhCfK6JKnIi-ZX11L6d_ntt6o,98
|
|
11
|
-
pennylane_qrack-0.20.2.dist-info/entry_points.txt,sha256=OrkJ6JVk-yndlQjqc-8dm8PxE-jNoNQRFXFeUBxVuCg,139
|
|
12
|
-
pennylane_qrack-0.20.2.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
13
|
-
pennylane_qrack-0.20.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|