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.
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/Makefile +1 -1
- {pennylane_qrack-0.10.16/pennylane_qrack.egg-info → pennylane_qrack-0.10.17}/PKG-INFO +1 -1
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/QrackDeviceConfig.toml +2 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/_version.py +1 -1
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/qrack_device.cpp +12 -6
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/qrack_device.py +4 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17/pennylane_qrack.egg-info}/PKG-INFO +1 -1
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/CHANGELOG.md +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/CMakeLists.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/LICENSE +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/MANIFEST.in +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/README.rst +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/DataView.hpp +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/DynamicLibraryLoader.hpp +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/Exception.hpp +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/QuantumDevice.hpp +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/RuntimeCAPI.h +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/Types.h +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack/__init__.py +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/SOURCES.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/dependency_links.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/entry_points.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/requires.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/top_level.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/requirements.txt +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/setup.cfg +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/setup.py +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/tests/test_apply.py +0 -0
- {pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/tests/test_integration.py +0 -0
- {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
|
|
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)
|
|
@@ -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)
|
|
@@ -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,
|
|
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["'
|
|
409
|
-
keyMap["'
|
|
410
|
-
keyMap["'
|
|
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
|
-
|
|
444
|
+
pg = val;
|
|
442
445
|
break;
|
|
443
446
|
case 8:
|
|
444
|
-
|
|
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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/catalyst/runtime/include/QuantumDevice.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pennylane_qrack-0.10.16 → pennylane_qrack-0.10.17}/pennylane_qrack.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|