pennylane-qrack 0.10.16__tar.gz → 0.10.17__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 (30) hide show
  1. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/Makefile +1 -1
  2. {pennylane_qrack-0.10.16/pennylane_qrack.egg-info → pennylane_qrack-0.10.17}/PKG-INFO +1 -1
  3. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/QrackDeviceConfig.toml +2 -0
  4. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/_version.py +1 -1
  5. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/qrack_device.cpp +12 -6
  6. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/qrack_device.py +4 -0
  7. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17/pennylane_qrack.egg-info}/PKG-INFO +1 -1
  8. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/CHANGELOG.md +0 -0
  9. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/CMakeLists.txt +0 -0
  10. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/LICENSE +0 -0
  11. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/MANIFEST.in +0 -0
  12. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/README.rst +0 -0
  13. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/DataView.hpp +0 -0
  14. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/DynamicLibraryLoader.hpp +0 -0
  15. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/Exception.hpp +0 -0
  16. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/QuantumDevice.hpp +0 -0
  17. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/RuntimeCAPI.h +0 -0
  18. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/Types.h +0 -0
  19. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/__init__.py +0 -0
  20. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/SOURCES.txt +0 -0
  21. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/dependency_links.txt +0 -0
  22. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/entry_points.txt +0 -0
  23. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/requires.txt +0 -0
  24. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/top_level.txt +0 -0
  25. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/requirements.txt +0 -0
  26. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/setup.cfg +0 -0
  27. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/setup.py +0 -0
  28. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/tests/test_apply.py +0 -0
  29. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/tests/test_integration.py +0 -0
  30. {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/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 45c91f5549bfd60e26489c911f20c65699f945ea; cd ..
27
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout 5010a034723ff0af666aa45ae3e9ea87400588a4; 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.1
2
2
  Name: pennylane-qrack
3
- Version: 0.10.16
3
+ Version: 0.10.17
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -140,6 +140,8 @@ is_schmidt_decomposition_parallel = "isSchmidtDecomposeMulti"
140
140
  is_qbdd = "isBinaryDecisionTree"
141
141
  # Use GPU acceleration? (Default is "true")
142
142
  is_gpu = "isOpenCL"
143
+ # Use multi-GPU (or "multi-page") acceleration? (Default is "false")
144
+ is_paged = "isPaged"
143
145
  # Use CPU/GPU method hybridization? (Default is "false")
144
146
  is_hybrid_cpu_gpu = "isCpuGpuHybrid"
145
147
  # 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)
@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.10.16"
19
+ __version__ = "0.10.17"
@@ -6,7 +6,7 @@
6
6
  #define CL_HPP_TARGET_OPENCL_VERSION 300
7
7
  #include "qrack/qfactory.hpp"
8
8
 
9
- #define QSIM_CONFIG(numQubits) Qrack::CreateArrangedLayersFull(nw, md, sd, sh, bdt, true, tn, hy, oc, numQubits, Qrack::ZERO_BCI, nullptr, Qrack::CMPLX_DEFAULT_ARG, false, true, hp)
9
+ #define QSIM_CONFIG(numQubits) Qrack::CreateArrangedLayersFull(nw, md, sd, sh, bdt, pg, tn, hy, oc, numQubits, Qrack::ZERO_BCI, nullptr, Qrack::CMPLX_DEFAULT_ARG, false, true, hp)
10
10
 
11
11
  std::string trim(std::string s)
12
12
  {
@@ -38,6 +38,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
38
38
  bool md;
39
39
  bool bdt;
40
40
  bool oc;
41
+ bool pg;
41
42
  bool hy;
42
43
  bool hp;
43
44
  bool nw;
@@ -386,6 +387,7 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
386
387
  , md(true)
387
388
  , bdt(false)
388
389
  , oc(true)
390
+ , pg(false)
389
391
  , hy(false)
390
392
  , hp(false)
391
393
  , nw(false)
@@ -405,9 +407,10 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
405
407
  keyMap["'is_schmidt_decomposition_parallel'"] = 4;
406
408
  keyMap["'is_qbdd'"] = 5;
407
409
  keyMap["'is_gpu'"] = 6;
408
- keyMap["'is_hybrid_cpu_gpu'"] = 7;
409
- keyMap["'is_host_pointer'"] =8;
410
- keyMap["'noise'"] = 9;
410
+ keyMap["'is_paged'"] = 7;
411
+ keyMap["'is_hybrid_cpu_gpu'"] = 8;
412
+ keyMap["'is_host_pointer'"] =9;
413
+ keyMap["'noise'"] = 10;
411
414
 
412
415
  size_t pos;
413
416
  Qrack::real1_f noiseParam = 0;
@@ -438,12 +441,15 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
438
441
  oc = val;
439
442
  break;
440
443
  case 7:
441
- hy = val;
444
+ pg = val;
442
445
  break;
443
446
  case 8:
444
- hp = val;
447
+ hy = val;
445
448
  break;
446
449
  case 9:
450
+ hp = val;
451
+ break;
452
+ case 10:
447
453
  noiseParam = std::stof(value);
448
454
  nw = noiseParam > ZERO_R1;
449
455
  break;
@@ -157,6 +157,8 @@ class QrackDevice(QubitDevice):
157
157
  isBinaryDecisionTree = False
158
158
  # Use GPU acceleration? (Default is "true")
159
159
  isOpenCL = True
160
+ # Use multi-GPU (or "multi-page") acceleration? (Default is "false")
161
+ isPaged = False
160
162
  # Use CPU/GPU method hybridization? (Default is "false")
161
163
  isCpuGpuHybrid = False
162
164
  # 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)
@@ -188,6 +190,8 @@ class QrackDevice(QubitDevice):
188
190
  self.isBinaryDecisionTree = options["isBinaryDecisionTree"]
189
191
  if "isOpenCL" in options:
190
192
  self.isOpenCL = options["isOpenCL"]
193
+ if "isPaged" in options:
194
+ self.isPaged = options["isPaged"]
191
195
  if "isCpuGpuHybrid" in options:
192
196
  self.isCpuGpuHybrid = options["isCpuGpuHybrid"]
193
197
  if "isHostPointer" in options:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.10.16
3
+ Version: 0.10.17
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q