pennylane-qrack 0.10.2__py3-none-macosx_12_0_x86_64.whl → 0.10.5__py3-none-macosx_12_0_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 pennylane-qrack might be problematic. Click here for more details.
- pennylane_qrack/_version.py +1 -1
- pennylane_qrack/libqrack_device.dylib +0 -0
- pennylane_qrack/qrack_device.py +6 -6
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.5.dist-info}/METADATA +1 -1
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.5.dist-info}/RECORD +9 -9
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.5.dist-info}/LICENSE +0 -0
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.5.dist-info}/WHEEL +0 -0
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.5.dist-info}/entry_points.txt +0 -0
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.5.dist-info}/top_level.txt +0 -0
pennylane_qrack/_version.py
CHANGED
|
Binary file
|
pennylane_qrack/qrack_device.py
CHANGED
|
@@ -24,7 +24,8 @@ import itertools as it
|
|
|
24
24
|
|
|
25
25
|
import numpy as np
|
|
26
26
|
|
|
27
|
-
from pennylane import
|
|
27
|
+
from pennylane import DeviceError, QuantumFunctionError
|
|
28
|
+
from pennylane.devices import QubitDevice
|
|
28
29
|
from pennylane.ops import (
|
|
29
30
|
QubitStateVector,
|
|
30
31
|
BasisState,
|
|
@@ -192,6 +193,7 @@ class QrackDevice(QubitDevice):
|
|
|
192
193
|
if (self.noise != 0) and (shots is None):
|
|
193
194
|
raise ValueError("Shots must be finite for noisy simulation (not analytical mode).")
|
|
194
195
|
super().__init__(wires=wires, shots=shots)
|
|
196
|
+
self.shots = shots
|
|
195
197
|
self._state = QrackSimulator(
|
|
196
198
|
self.num_wires,
|
|
197
199
|
isStabilizerHybrid=self.isStabilizerHybrid,
|
|
@@ -673,14 +675,12 @@ class QrackDevice(QubitDevice):
|
|
|
673
675
|
)
|
|
674
676
|
|
|
675
677
|
if self.noise != 0:
|
|
676
|
-
|
|
678
|
+
samples = []
|
|
677
679
|
for _ in range(self.shots):
|
|
678
680
|
self._state.reset_all()
|
|
679
681
|
self._apply()
|
|
680
|
-
|
|
681
|
-
self._samples = QubitDevice.states_to_binary(
|
|
682
|
-
np.array([self._generate_sample()]), self.num_wires
|
|
683
|
-
)
|
|
682
|
+
samples.append(self._generate_sample())
|
|
683
|
+
self._samples = QubitDevice.states_to_binary(np.array(samples), self.num_wires)
|
|
684
684
|
self._circuit = []
|
|
685
685
|
|
|
686
686
|
return self._samples
|
|
@@ -2,14 +2,14 @@ pennylane_qrack/CMakeCache.txt,sha256=SqPMf-mg1R1CvN9iEW0oO-5uja146cRHYJ_4L1Rzc-
|
|
|
2
2
|
pennylane_qrack/Makefile,sha256=WgHeF4eQjsjX_OjNyuhzcuo1-YJMsVX9j82iABayQAQ,7789
|
|
3
3
|
pennylane_qrack/QrackDeviceConfig.toml,sha256=t_IQVSFR-GJ3VuqpQqm4M5gA3TVL4-y0qPq-f0FJwac,6219
|
|
4
4
|
pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
|
|
5
|
-
pennylane_qrack/_version.py,sha256=
|
|
5
|
+
pennylane_qrack/_version.py,sha256=u2A_X30FyfhRe0r9AkpRMpEs_tV_oMYKNR_FcMP2yZc,692
|
|
6
6
|
pennylane_qrack/cmake_install.cmake,sha256=dmMUx-ivWcELMTui1SWnnN_Jxw0s4hwgBYdGF--L8rI,3088
|
|
7
|
-
pennylane_qrack/libqrack_device.dylib,sha256=
|
|
7
|
+
pennylane_qrack/libqrack_device.dylib,sha256=8P_0xQ2emTCVnGZBru2-UZEn6v65kg7ld08AcKyzJ8c,2944680
|
|
8
8
|
pennylane_qrack/qrack_device.cpp,sha256=eRoowI7n9XV63aoZEaDjWmK1NC4JQ1GBeL2uggDttG0,36846
|
|
9
|
-
pennylane_qrack/qrack_device.py,sha256=
|
|
10
|
-
pennylane_qrack-0.10.
|
|
11
|
-
pennylane_qrack-0.10.
|
|
12
|
-
pennylane_qrack-0.10.
|
|
13
|
-
pennylane_qrack-0.10.
|
|
14
|
-
pennylane_qrack-0.10.
|
|
15
|
-
pennylane_qrack-0.10.
|
|
9
|
+
pennylane_qrack/qrack_device.py,sha256=JMMV6yiLg97qcEZjioLfTlqIW6Tq5vnVG6pTtT4MkDI,26943
|
|
10
|
+
pennylane_qrack-0.10.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
pennylane_qrack-0.10.5.dist-info/METADATA,sha256=PJ9D8fa7QeKWTSWL3xJR_uZGxUJU625IRmUzkzIp4vg,5525
|
|
12
|
+
pennylane_qrack-0.10.5.dist-info/WHEEL,sha256=TDv-5Q9jJVEbUyNu42LU9Oimw5zgp_TWJrwih-3m70Q,106
|
|
13
|
+
pennylane_qrack-0.10.5.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
|
|
14
|
+
pennylane_qrack-0.10.5.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
15
|
+
pennylane_qrack-0.10.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|