pennylane-qrack 0.10.2__py3-none-manylinux_2_35_x86_64.whl → 0.10.4__py3-none-manylinux_2_35_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.

@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.10.2"
19
+ __version__ = "0.10.4"
@@ -24,7 +24,8 @@ import itertools as it
24
24
 
25
25
  import numpy as np
26
26
 
27
- from pennylane import QubitDevice, DeviceError, QuantumFunctionError
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
- self._samples = []
678
+ samples = []
677
679
  for _ in range(self.shots):
678
680
  self._state.reset_all()
679
681
  self._apply()
680
- self._samples.append(self._generate_sample())
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.10.2
3
+ Version: 0.10.4
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -2,14 +2,14 @@ pennylane_qrack/CMakeCache.txt,sha256=Dssnx3Dy2DVDwydlVsVPbWvzIIU0RSEXWlet-V4fg9
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=YL61LFzCM_V-BsclpB2jHSN9t5GG3al6nqVVC3JGW7A,692
5
+ pennylane_qrack/_version.py,sha256=5C2wPWY_CU6Br-x-4lRUtK2tJJfVKEqKzaBwkhyy0e8,692
6
6
  pennylane_qrack/cmake_install.cmake,sha256=kW9d9vjuxI8PW08r6P09h7d6vmG74xsRzq1AuqYchh8,3336
7
7
  pennylane_qrack/libqrack_device.so,sha256=pikKXVUH9YqQNiw-hpaMsr-yYmeYa75d0gqUQj5AXKc,5650432
8
8
  pennylane_qrack/qrack_device.cpp,sha256=eRoowI7n9XV63aoZEaDjWmK1NC4JQ1GBeL2uggDttG0,36846
9
- pennylane_qrack/qrack_device.py,sha256=VFwbhAKvIKwpO9_fZ_sGv__DvYzTqRW77Hd8k0-DByk,26947
10
- pennylane_qrack-0.10.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
- pennylane_qrack-0.10.2.dist-info/METADATA,sha256=qK-Vj9UIYh0fAqJp67jLLi5pdEPNjc70JvTVxNDIfxw,5545
12
- pennylane_qrack-0.10.2.dist-info/WHEEL,sha256=cTK4TPu87HyF0mAi3vsyzDbl-x2gUIogftiNCFkKyUY,110
13
- pennylane_qrack-0.10.2.dist-info/entry_points.txt,sha256=CuMkXXiFq8_T_vUTLu_8fd9uh5C40M1e7x5vrWmsr48,80
14
- pennylane_qrack-0.10.2.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
15
- pennylane_qrack-0.10.2.dist-info/RECORD,,
9
+ pennylane_qrack/qrack_device.py,sha256=JMMV6yiLg97qcEZjioLfTlqIW6Tq5vnVG6pTtT4MkDI,26943
10
+ pennylane_qrack-0.10.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
11
+ pennylane_qrack-0.10.4.dist-info/METADATA,sha256=epjhd6KcXQT69Cza_mPAAQDU_XZgW12xnqA57DdQD-8,5545
12
+ pennylane_qrack-0.10.4.dist-info/WHEEL,sha256=cTK4TPu87HyF0mAi3vsyzDbl-x2gUIogftiNCFkKyUY,110
13
+ pennylane_qrack-0.10.4.dist-info/entry_points.txt,sha256=CuMkXXiFq8_T_vUTLu_8fd9uh5C40M1e7x5vrWmsr48,80
14
+ pennylane_qrack-0.10.4.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
15
+ pennylane_qrack-0.10.4.dist-info/RECORD,,