pennylane-qrack 0.10.2__py3-none-manylinux_2_31_x86_64.whl → 0.10.3__py3-none-manylinux_2_31_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/qrack_device.py +4 -5
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.3.dist-info}/METADATA +1 -1
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.3.dist-info}/RECORD +8 -8
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.3.dist-info}/LICENSE +0 -0
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.3.dist-info}/WHEEL +0 -0
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.3.dist-info}/entry_points.txt +0 -0
- {pennylane_qrack-0.10.2.dist-info → pennylane_qrack-0.10.3.dist-info}/top_level.txt +0 -0
pennylane_qrack/_version.py
CHANGED
pennylane_qrack/qrack_device.py
CHANGED
|
@@ -192,6 +192,7 @@ class QrackDevice(QubitDevice):
|
|
|
192
192
|
if (self.noise != 0) and (shots is None):
|
|
193
193
|
raise ValueError("Shots must be finite for noisy simulation (not analytical mode).")
|
|
194
194
|
super().__init__(wires=wires, shots=shots)
|
|
195
|
+
self.shots = shots
|
|
195
196
|
self._state = QrackSimulator(
|
|
196
197
|
self.num_wires,
|
|
197
198
|
isStabilizerHybrid=self.isStabilizerHybrid,
|
|
@@ -673,14 +674,12 @@ class QrackDevice(QubitDevice):
|
|
|
673
674
|
)
|
|
674
675
|
|
|
675
676
|
if self.noise != 0:
|
|
676
|
-
|
|
677
|
+
samples = []
|
|
677
678
|
for _ in range(self.shots):
|
|
678
679
|
self._state.reset_all()
|
|
679
680
|
self._apply()
|
|
680
|
-
|
|
681
|
-
self._samples = QubitDevice.states_to_binary(
|
|
682
|
-
np.array([self._generate_sample()]), self.num_wires
|
|
683
|
-
)
|
|
681
|
+
samples.append(self._generate_sample())
|
|
682
|
+
self._samples = QubitDevice.states_to_binary(np.array(samples), self.num_wires)
|
|
684
683
|
self._circuit = []
|
|
685
684
|
|
|
686
685
|
return self._samples
|
|
@@ -2,14 +2,14 @@ pennylane_qrack/CMakeCache.txt,sha256=UwcfEk5uCE5VsfbDrfam1HOek_DqR3sZY1x18PdFz7
|
|
|
2
2
|
pennylane_qrack/Makefile,sha256=S9Y76wF2BB8oc3vDHA8v5RY-cuUM9L1AYRtC0Uu8r60,7584
|
|
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=Noitb1jPb-iVIDs8IGKqYwQ5c7eiVBUCv8nnrpZp83s,692
|
|
6
6
|
pennylane_qrack/cmake_install.cmake,sha256=kW9d9vjuxI8PW08r6P09h7d6vmG74xsRzq1AuqYchh8,3336
|
|
7
7
|
pennylane_qrack/libqrack_device.so,sha256=OvLIyr3W8K0hVTgAU4II4c-ae3-9pwWROzpo0fPIExI,5519272
|
|
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=h479xWH_2c6pzBZ8ZUyXL5Mi_Okb5-4hm6VhmJQYCe4,26914
|
|
10
|
+
pennylane_qrack-0.10.3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
pennylane_qrack-0.10.3.dist-info/METADATA,sha256=n--RspcC0tyX-uwjrFeUiX_eFefVCsB5WtXtzcpREds,5525
|
|
12
|
+
pennylane_qrack-0.10.3.dist-info/WHEEL,sha256=vhkxkeQo6qYm0IR8SRPDozzBUxC5K_7HGPrR2uA3AC8,110
|
|
13
|
+
pennylane_qrack-0.10.3.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
|
|
14
|
+
pennylane_qrack-0.10.3.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
15
|
+
pennylane_qrack-0.10.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|