pennylane-qrack 0.10.2__py3-none-macosx_15_0_arm64.whl → 0.10.3__py3-none-macosx_15_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.

@@ -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.3"
@@ -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
- self._samples = []
677
+ samples = []
677
678
  for _ in range(self.shots):
678
679
  self._state.reset_all()
679
680
  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
- )
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.10.2
3
+ Version: 0.10.3
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=vU7fFLVZidEenjm533XQfBVZ0XRQD-81SCxkIhrk2H
2
2
  pennylane_qrack/Makefile,sha256=t7k0AbfvtdZhj-gehrEfc-iqgt8uUxZl1DhsqP52HVE,7819
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=Noitb1jPb-iVIDs8IGKqYwQ5c7eiVBUCv8nnrpZp83s,692
6
6
  pennylane_qrack/cmake_install.cmake,sha256=8mDrBby8o2HLca1roUJWE1epPctqmEB12TY4aKH-xUE,3084
7
7
  pennylane_qrack/libqrack_device.dylib,sha256=rIDYpoPxb5rYJfRk1-XgXOwDBn9VBttZ4Fa3MnXQ_aA,3124552
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=L9OiqwRP5f5EB4FRcVTBXKRnMGqfQGwY7xRuVdb4FQE,5525
12
- pennylane_qrack-0.10.2.dist-info/WHEEL,sha256=aWq2NianA54n9mHzP-MkJz20XAyit1aB8iHHQ_lAOo8,105
13
- pennylane_qrack-0.10.2.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
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=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=aWq2NianA54n9mHzP-MkJz20XAyit1aB8iHHQ_lAOo8,105
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,,