pennylane-qrack 0.22.7__py3-none-macosx_14_0_arm64.whl → 0.22.8__py3-none-macosx_14_0_arm64.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_stabilizer_device.py +17 -0
- {pennylane_qrack-0.22.7.dist-info → pennylane_qrack-0.22.8.dist-info}/METADATA +1 -1
- {pennylane_qrack-0.22.7.dist-info → pennylane_qrack-0.22.8.dist-info}/RECORD +9 -9
- {pennylane_qrack-0.22.7.dist-info → pennylane_qrack-0.22.8.dist-info}/WHEEL +0 -0
- {pennylane_qrack-0.22.7.dist-info → pennylane_qrack-0.22.8.dist-info}/entry_points.txt +0 -0
- {pennylane_qrack-0.22.7.dist-info → pennylane_qrack-0.22.8.dist-info}/licenses/LICENSE +0 -0
- {pennylane_qrack-0.22.7.dist-info → pennylane_qrack-0.22.8.dist-info}/top_level.txt +0 -0
pennylane_qrack/_version.py
CHANGED
|
Binary file
|
|
@@ -244,7 +244,24 @@ class QrackStabilizerDevice(QubitDevice):
|
|
|
244
244
|
b = [self._observable_map[observable.name]]
|
|
245
245
|
|
|
246
246
|
if None not in b:
|
|
247
|
+
# This will trigger Gaussian elimination,
|
|
248
|
+
# so it only happens once.
|
|
249
|
+
self._state.try_separate_1qb(0)
|
|
250
|
+
# It's cheap to clone a stabilizer,
|
|
251
|
+
# but we don't want to have to transform
|
|
252
|
+
# back after terminal measurement.
|
|
253
|
+
state_clone = self._state.clone()
|
|
254
|
+
|
|
247
255
|
q = self.map_wires(observable.wires)
|
|
256
|
+
for qb, base in zip(q, b):
|
|
257
|
+
match base:
|
|
258
|
+
case Pauli.PauliX:
|
|
259
|
+
state_clone.h(qb)
|
|
260
|
+
case Pauli.PauliY:
|
|
261
|
+
state_clone.adjs(qb)
|
|
262
|
+
state_clone.h(qb)
|
|
263
|
+
b = [Pauli.PauliZ] * len(b)
|
|
264
|
+
|
|
248
265
|
return self._state.pauli_expectation(q, b)
|
|
249
266
|
|
|
250
267
|
# exact expectation value
|
|
@@ -4,16 +4,16 @@ pennylane_qrack/QrackAceDeviceConfig.toml,sha256=KmPPJEa6TMYpbQqQgMSAPfeGPQE8f1l
|
|
|
4
4
|
pennylane_qrack/QrackDeviceConfig.toml,sha256=oR9-dIAP6BzP3e2QSLroacaloHZsx7iJiKE6w7LGxUo,5459
|
|
5
5
|
pennylane_qrack/QrackStabilizerDeviceConfig.toml,sha256=zm2M2FBR--RnKkNCtZih7xxtr-Vl6MtI4g1L3SrjFWw,3965
|
|
6
6
|
pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
|
|
7
|
-
pennylane_qrack/_version.py,sha256=
|
|
7
|
+
pennylane_qrack/_version.py,sha256=kBG47-4Uvu1WK45nr0yKFbvytyyNk3osFyZNs2Ad47c,689
|
|
8
8
|
pennylane_qrack/cmake_install.cmake,sha256=ZhG9tI7bh8oZnfUnP0eAVtodPUizqINLahqbb_TXwxY,3108
|
|
9
|
-
pennylane_qrack/libqrack_device.dylib,sha256=
|
|
9
|
+
pennylane_qrack/libqrack_device.dylib,sha256=BaWSKE4E4Bydbv3xMLkPbHxwuLUo7gFD11uewlZcPQ8,3322408
|
|
10
10
|
pennylane_qrack/qrack_ace_device.py,sha256=RaD2nxFSW6mW1pu19FDaI5CJx3s9D1K3-5VHjwzsBcM,17093
|
|
11
11
|
pennylane_qrack/qrack_device.cpp,sha256=FFP1GLdgqOho9irwdaAF1Lo1T9KIsaVKMiiIglkrOmE,37194
|
|
12
12
|
pennylane_qrack/qrack_device.py,sha256=LkfoH_KHm8VcUNT6Xzo3NZE24iGUMcLz8f1Nk8Jp6Sk,28358
|
|
13
|
-
pennylane_qrack/qrack_stabilizer_device.py,sha256=
|
|
14
|
-
pennylane_qrack-0.22.
|
|
15
|
-
pennylane_qrack-0.22.
|
|
16
|
-
pennylane_qrack-0.22.
|
|
17
|
-
pennylane_qrack-0.22.
|
|
18
|
-
pennylane_qrack-0.22.
|
|
19
|
-
pennylane_qrack-0.22.
|
|
13
|
+
pennylane_qrack/qrack_stabilizer_device.py,sha256=1LuIczUAvq-vI0lZiWohn771-n_owtjM7wVc-MQv1NQ,10665
|
|
14
|
+
pennylane_qrack-0.22.8.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
15
|
+
pennylane_qrack-0.22.8.dist-info/METADATA,sha256=-UiarvH_LUzOgqtPQCP2OdlkmB9-4pom7oKzXp2_zM4,6181
|
|
16
|
+
pennylane_qrack-0.22.8.dist-info/WHEEL,sha256=97pmOSfusofyzGlW1jJA8mX_ciF6NJq3BQs-Zshjrk4,105
|
|
17
|
+
pennylane_qrack-0.22.8.dist-info/entry_points.txt,sha256=5eoa4LFV7DuSLFbs6tzFvuVIHr6zOovxqlDsn2cinP4,220
|
|
18
|
+
pennylane_qrack-0.22.8.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
19
|
+
pennylane_qrack-0.22.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|