pennylane-qrack 0.10.15__py3-none-win_amd64.whl → 0.10.17__py3-none-win_amd64.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.

@@ -140,6 +140,10 @@ 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"
145
+ # Use CPU/GPU method hybridization? (Default is "false")
146
+ is_hybrid_cpu_gpu = "isCpuGpuHybrid"
143
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)
144
148
  is_host_pointer = "isHostPointer"
145
149
  # Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
@@ -16,4 +16,4 @@
16
16
  Version number (major.minor.patch[-label])
17
17
  """
18
18
 
19
- __version__ = "0.10.15"
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, true, 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,8 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
38
38
  bool md;
39
39
  bool bdt;
40
40
  bool oc;
41
+ bool pg;
42
+ bool hy;
41
43
  bool hp;
42
44
  bool nw;
43
45
  size_t shots;
@@ -385,6 +387,8 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
385
387
  , md(true)
386
388
  , bdt(false)
387
389
  , oc(true)
390
+ , pg(false)
391
+ , hy(false)
388
392
  , hp(false)
389
393
  , nw(false)
390
394
  , shots(1U)
@@ -403,8 +407,10 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
403
407
  keyMap["'is_schmidt_decomposition_parallel'"] = 4;
404
408
  keyMap["'is_qbdd'"] = 5;
405
409
  keyMap["'is_gpu'"] = 6;
406
- keyMap["'is_host_pointer'"] =7;
407
- keyMap["'noise'"] = 8;
410
+ keyMap["'is_paged'"] = 7;
411
+ keyMap["'is_hybrid_cpu_gpu'"] = 8;
412
+ keyMap["'is_host_pointer'"] =9;
413
+ keyMap["'noise'"] = 10;
408
414
 
409
415
  size_t pos;
410
416
  Qrack::real1_f noiseParam = 0;
@@ -435,9 +441,15 @@ struct QrackDevice final : public Catalyst::Runtime::QuantumDevice {
435
441
  oc = val;
436
442
  break;
437
443
  case 7:
438
- hp = val;
444
+ pg = val;
439
445
  break;
440
446
  case 8:
447
+ hy = val;
448
+ break;
449
+ case 9:
450
+ hp = val;
451
+ break;
452
+ case 10:
441
453
  noiseParam = std::stof(value);
442
454
  nw = noiseParam > ZERO_R1;
443
455
  break;
@@ -157,6 +157,10 @@ 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
162
+ # Use CPU/GPU method hybridization? (Default is "false")
163
+ isCpuGpuHybrid = False
160
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)
161
165
  isHostPointer = False
162
166
  # Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
@@ -186,6 +190,10 @@ class QrackDevice(QubitDevice):
186
190
  self.isBinaryDecisionTree = options["isBinaryDecisionTree"]
187
191
  if "isOpenCL" in options:
188
192
  self.isOpenCL = options["isOpenCL"]
193
+ if "isPaged" in options:
194
+ self.isPaged = options["isPaged"]
195
+ if "isCpuGpuHybrid" in options:
196
+ self.isCpuGpuHybrid = options["isCpuGpuHybrid"]
189
197
  if "isHostPointer" in options:
190
198
  self.isHostPointer = options["isHostPointer"]
191
199
  if "noise" in options:
@@ -201,6 +209,7 @@ class QrackDevice(QubitDevice):
201
209
  isSchmidtDecompose=self.isSchmidtDecompose,
202
210
  isBinaryDecisionTree=self.isBinaryDecisionTree,
203
211
  isOpenCL=self.isOpenCL,
212
+ isCpuGpuHybrid=self.isCpuGpuHybrid,
204
213
  isHostPointer=self.isHostPointer,
205
214
  noise=self.noise,
206
215
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pennylane-qrack
3
- Version: 0.10.15
3
+ Version: 0.10.17
4
4
  Summary: PennyLane plugin for Qrack.
5
5
  Home-page: http://github.com/vm6502q
6
6
  Maintainer: vm6502q
@@ -0,0 +1,11 @@
1
+ pennylane_qrack/QrackDeviceConfig.toml,sha256=N1o-xnt0tJUOyL1EbGgpLKfw2IvvVyuJMRdcM50mcGI,6562
2
+ pennylane_qrack/__init__.py,sha256=5iuZ5OqhRPLxj5cs9jGaUTDv55iPXRVbcDHM6FNk-5c,689
3
+ pennylane_qrack/_version.py,sha256=rqV0dQJu8cLln69yICzOh1lB9rRvMIW1jX_FmPgdKVU,712
4
+ pennylane_qrack/qrack_device.cpp,sha256=hbrL0XpvT6tORcH_UUTB-8p58EA0wZ0BJaO_VKvxXL4,37821
5
+ pennylane_qrack/qrack_device.py,sha256=9pIH3eG9O3I5vhU3GsIgtED-xRfqgmDrwxjUBr2W6po,28072
6
+ pennylane_qrack-0.10.17.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
7
+ pennylane_qrack-0.10.17.dist-info/METADATA,sha256=ru6-4uUcJqHuVBL9hV0QYbOdjGSaeG1Y1CgzDdDvfmM,5670
8
+ pennylane_qrack-0.10.17.dist-info/WHEEL,sha256=rNPRVbVGKrjWvrFestJftL7zG4L3SaPg4hx5cyTUI8U,98
9
+ pennylane_qrack-0.10.17.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
10
+ pennylane_qrack-0.10.17.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
11
+ pennylane_qrack-0.10.17.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- pennylane_qrack/QrackDeviceConfig.toml,sha256=cVamrrq847D0AoU6OA06S_8PA8MI0QT6JehZlrClSSk,6374
2
- pennylane_qrack/__init__.py,sha256=5iuZ5OqhRPLxj5cs9jGaUTDv55iPXRVbcDHM6FNk-5c,689
3
- pennylane_qrack/_version.py,sha256=3W_YFJqe1Z4-M1vEXpKZgtMa3f2mLyFs7gBi3lqNfto,712
4
- pennylane_qrack/qrack_device.cpp,sha256=n1n980XQM9xLkbmHDS2J6uRS4kYdA0JXtwZ5-GoXQUo,37504
5
- pennylane_qrack/qrack_device.py,sha256=MrEirGksx-DGa2k1Svl449en_MY9n6GQ0crtpZ8wfAY,27655
6
- pennylane_qrack-0.10.15.dist-info/LICENSE,sha256=HrhfyXIkWY2tGFK11kg7vPCqhgh5DcxleloqdhrpyMY,11558
7
- pennylane_qrack-0.10.15.dist-info/METADATA,sha256=bhRJEE2DkCMBjaOgoNcdObHz0zwy4ezozcq77omo7do,5670
8
- pennylane_qrack-0.10.15.dist-info/WHEEL,sha256=rNPRVbVGKrjWvrFestJftL7zG4L3SaPg4hx5cyTUI8U,98
9
- pennylane_qrack-0.10.15.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
10
- pennylane_qrack-0.10.15.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
11
- pennylane_qrack-0.10.15.dist-info/RECORD,,