pennylane-qrack 0.18.7__tar.gz → 0.19.0__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 (31) hide show
  1. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/Makefile +1 -1
  2. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/PKG-INFO +2 -2
  3. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/README.rst +1 -1
  4. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack/_version.py +2 -2
  5. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack/qrack_device.py +10 -2
  6. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack.egg-info/PKG-INFO +2 -2
  7. pennylane_qrack-0.19.0/requirements.txt +3 -0
  8. pennylane_qrack-0.18.7/requirements.txt +0 -3
  9. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/CHANGELOG.md +0 -0
  10. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/CMakeLists.txt +0 -0
  11. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/LICENSE +0 -0
  12. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/MANIFEST.in +0 -0
  13. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/catalyst/runtime/include/DataView.hpp +0 -0
  14. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/catalyst/runtime/include/DynamicLibraryLoader.hpp +0 -0
  15. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/catalyst/runtime/include/Exception.hpp +0 -0
  16. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/catalyst/runtime/include/QuantumDevice.hpp +0 -0
  17. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/catalyst/runtime/include/RuntimeCAPI.h +0 -0
  18. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/catalyst/runtime/include/Types.h +0 -0
  19. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack/QrackDeviceConfig.toml +0 -0
  20. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack/__init__.py +0 -0
  21. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack/qrack_device.cpp +0 -0
  22. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack.egg-info/SOURCES.txt +0 -0
  23. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack.egg-info/dependency_links.txt +0 -0
  24. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack.egg-info/entry_points.txt +0 -0
  25. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack.egg-info/requires.txt +0 -0
  26. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/pennylane_qrack.egg-info/top_level.txt +0 -0
  27. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/setup.cfg +0 -0
  28. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/setup.py +0 -0
  29. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/tests/test_apply.py +0 -0
  30. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/tests/test_integration.py +0 -0
  31. {pennylane_qrack-0.18.7 → pennylane_qrack-0.19.0}/tests/test_units.py +0 -0
@@ -24,7 +24,7 @@ help:
24
24
  build-deps:
25
25
  ifneq ($(OS),Windows_NT)
26
26
  ifeq ($(QRACK_PRESENT),)
27
- git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout ce668dd0177a28b52da4fb66380cd51fafd39a56; cd ..
27
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout f0738286f49fb0ffaeb46d6e5d2294dbfc7f6138; cd ..
28
28
  endif
29
29
  mkdir -p qrack/build
30
30
  ifeq ($(UNAME_S),Linux)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pennylane-qrack
3
- Version: 0.18.7
3
+ Version: 0.19.0
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -48,7 +48,7 @@ PennyLane-Qrack Plugin
48
48
 
49
49
  The PennyLane-Qrack plugin integrates the Qrack quantum computing framework with PennyLane's quantum machine learning capabilities.
50
50
 
51
- **Performance can benefit greatly from following the [Qrack repository "Quick Start" and "Power user considerations."](https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start)**
51
+ Performance can benefit greatly from following the `Qrack repository "Quick Start" and "Power user considerations." <https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start>`__
52
52
 
53
53
  This plugin is addapted from the `PennyLane-Qulacs plugin, <https://github.com/PennyLaneAI/pennylane-qulacs>`__ under the Apache License 2.0, with many thanks to the original developers!
54
54
 
@@ -5,7 +5,7 @@ PennyLane-Qrack Plugin
5
5
 
6
6
  The PennyLane-Qrack plugin integrates the Qrack quantum computing framework with PennyLane's quantum machine learning capabilities.
7
7
 
8
- **Performance can benefit greatly from following the [Qrack repository "Quick Start" and "Power user considerations."](https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start)**
8
+ Performance can benefit greatly from following the `Qrack repository "Quick Start" and "Power user considerations." <https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start>`__
9
9
 
10
10
  This plugin is addapted from the `PennyLane-Qulacs plugin, <https://github.com/PennyLaneAI/pennylane-qulacs>`__ under the Apache License 2.0, with many thanks to the original developers!
11
11
 
@@ -13,7 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  """Version information.
16
- Version number (major.minor.patch[-label])
16
+ Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.18.7"
19
+ __version__ = "0.19.0"
@@ -23,7 +23,15 @@ import itertools as it
23
23
 
24
24
  import numpy as np
25
25
 
26
- from pennylane import DeviceError, QuantumFunctionError
26
+ # PennyLane v0.42 introduced the `exceptions` module and will raise
27
+ # deprecation warnings if they are imported from the top-level module.
28
+
29
+ # This ensures backwards compatibility with older versions of PennyLane.
30
+ try:
31
+ from pennylane.exceptions import DeviceError, QuantumFunctionError
32
+ except (ModuleNotFoundError, ImportError) as import_error:
33
+ from pennylane import DeviceError, QuantumFunctionError
34
+
27
35
  from pennylane.devices import QubitDevice
28
36
  from pennylane.ops import (
29
37
  StatePrep,
@@ -159,7 +167,7 @@ class QrackDevice(QubitDevice):
159
167
  # Use CPU/GPU method hybridization? (Default is "false")
160
168
  isCpuGpuHybrid = True
161
169
  # Allocate GPU buffer from general host heap? (Default is "false"; "true" might improve performance or reliability in certain cases, like if using an Intel HD as accelerator)
162
- isHostPointer = True if os.environ.get('PYQRACK_HOST_POINTER_DEFAULT_ON') else False
170
+ isHostPointer = True if os.environ.get("PYQRACK_HOST_POINTER_DEFAULT_ON") else False
163
171
  # Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
164
172
  noise = 0
165
173
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pennylane-qrack
3
- Version: 0.18.7
3
+ Version: 0.19.0
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -48,7 +48,7 @@ PennyLane-Qrack Plugin
48
48
 
49
49
  The PennyLane-Qrack plugin integrates the Qrack quantum computing framework with PennyLane's quantum machine learning capabilities.
50
50
 
51
- **Performance can benefit greatly from following the [Qrack repository "Quick Start" and "Power user considerations."](https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start)**
51
+ Performance can benefit greatly from following the `Qrack repository "Quick Start" and "Power user considerations." <https://github.com/unitaryfund/qrack/blob/main/README.md#quick-start>`__
52
52
 
53
53
  This plugin is addapted from the `PennyLane-Qulacs plugin, <https://github.com/PennyLaneAI/pennylane-qulacs>`__ under the Apache License 2.0, with many thanks to the original developers!
54
54
 
@@ -0,0 +1,3 @@
1
+ pennylane>=0.39
2
+ pyqrack>=1.30.0
3
+ numpy>=1.16
@@ -1,3 +0,0 @@
1
- pennylane>=0.32
2
- pyqrack>=0.13.0
3
- numpy>=1.16