pennylane-qrack 0.20.2__tar.gz → 0.20.3__tar.gz

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.

Files changed (33) hide show
  1. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/PKG-INFO +1 -1
  2. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/_version.py +1 -1
  3. pennylane_qrack-0.20.3/pennylane_qrack/libqrack_device.so +0 -0
  4. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/qrack_ace_device.py +3 -4
  5. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/qrack_device.py +3 -4
  6. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack.egg-info/PKG-INFO +1 -1
  7. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack.egg-info/SOURCES.txt +1 -0
  8. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/CHANGELOG.md +0 -0
  9. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/CMakeLists.txt +0 -0
  10. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/LICENSE +0 -0
  11. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/MANIFEST.in +0 -0
  12. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/Makefile +0 -0
  13. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/README.rst +0 -0
  14. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/catalyst/runtime/include/DataView.hpp +0 -0
  15. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/catalyst/runtime/include/DynamicLibraryLoader.hpp +0 -0
  16. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/catalyst/runtime/include/Exception.hpp +0 -0
  17. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/catalyst/runtime/include/QuantumDevice.hpp +0 -0
  18. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/catalyst/runtime/include/RuntimeCAPI.h +0 -0
  19. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/catalyst/runtime/include/Types.h +0 -0
  20. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/QrackAceDeviceConfig.toml +0 -0
  21. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/QrackDeviceConfig.toml +0 -0
  22. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/__init__.py +0 -0
  23. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack/qrack_device.cpp +0 -0
  24. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack.egg-info/dependency_links.txt +0 -0
  25. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack.egg-info/entry_points.txt +0 -0
  26. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack.egg-info/requires.txt +0 -0
  27. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/pennylane_qrack.egg-info/top_level.txt +0 -0
  28. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/requirements.txt +0 -0
  29. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/setup.cfg +0 -0
  30. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/setup.py +0 -0
  31. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/tests/test_apply.py +0 -0
  32. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/tests/test_integration.py +0 -0
  33. {pennylane_qrack-0.20.2 → pennylane_qrack-0.20.3}/tests/test_units.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pennylane-qrack
3
- Version: 0.20.2
3
+ Version: 0.20.3
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.20.2"
19
+ __version__ = "0.20.3"
@@ -431,10 +431,9 @@ class QrackAceDevice(QubitDevice):
431
431
 
432
432
  return self._samples
433
433
 
434
- samples = np.array(
435
- self._state.measure_shots(list(range(self.num_wires - 1, -1, -1)), self.shots)
436
- )
437
- self._samples = QubitDevice.states_to_binary(samples, self.num_wires)
434
+ # QubitDevice.states_to_binary() doesn't work for >64qb. (Fix by Elara, the custom OpenAI GPT)
435
+ samples = self._state.measure_shots(list(range(self.num_wires - 1, -1, -1)), self.shots)
436
+ self._samples = np.array([list(format(b, f"0{self.num_wires}b")) for b in samples], dtype=np.int8)
438
437
 
439
438
  return self._samples
440
439
 
@@ -718,10 +718,9 @@ class QrackDevice(QubitDevice):
718
718
 
719
719
  return self._samples
720
720
 
721
- samples = np.array(
722
- self._state.measure_shots(list(range(self.num_wires - 1, -1, -1)), self.shots)
723
- )
724
- self._samples = QubitDevice.states_to_binary(samples, self.num_wires)
721
+ # QubitDevice.states_to_binary() doesn't work for >64qb. (Fix by Elara, the custom OpenAI GPT)
722
+ samples = self._state.measure_shots(list(range(self.num_wires - 1, -1, -1)), self.shots)
723
+ self._samples = np.array([list(format(b, f"0{self.num_wires}b")) for b in samples], dtype=np.int8)
725
724
 
726
725
  return self._samples
727
726
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pennylane-qrack
3
- Version: 0.20.2
3
+ Version: 0.20.3
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -16,6 +16,7 @@ pennylane_qrack/QrackAceDeviceConfig.toml
16
16
  pennylane_qrack/QrackDeviceConfig.toml
17
17
  pennylane_qrack/__init__.py
18
18
  pennylane_qrack/_version.py
19
+ pennylane_qrack/libqrack_device.so
19
20
  pennylane_qrack/qrack_ace_device.py
20
21
  pennylane_qrack/qrack_device.cpp
21
22
  pennylane_qrack/qrack_device.py