pennylane-qrack 0.10.20__py3-none-macosx_13_0_x86_64.whl → 0.11.1__py3-none-macosx_13_0_x86_64.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.
- pennylane_qrack/CMakeCache.txt +7 -7
- pennylane_qrack/Makefile +10 -10
- pennylane_qrack/QrackDeviceConfig.toml +85 -126
- pennylane_qrack/_version.py +1 -1
- pennylane_qrack/libqrack_device.dylib +0 -0
- pennylane_qrack/qrack_device.py +15 -3
- {pennylane_qrack-0.10.20.dist-info → pennylane_qrack-0.11.1.dist-info}/METADATA +2 -2
- pennylane_qrack-0.11.1.dist-info/RECORD +15 -0
- pennylane_qrack-0.10.20.dist-info/RECORD +0 -15
- {pennylane_qrack-0.10.20.dist-info → pennylane_qrack-0.11.1.dist-info}/LICENSE +0 -0
- {pennylane_qrack-0.10.20.dist-info → pennylane_qrack-0.11.1.dist-info}/WHEEL +0 -0
- {pennylane_qrack-0.10.20.dist-info → pennylane_qrack-0.11.1.dist-info}/entry_points.txt +0 -0
- {pennylane_qrack-0.10.20.dist-info → pennylane_qrack-0.11.1.dist-info}/top_level.txt +0 -0
pennylane_qrack/CMakeCache.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This is the CMakeCache file.
|
|
2
2
|
# For build in directory: /Users/runner/work/pennylane-qrack/pennylane-qrack/pennylane_qrack
|
|
3
|
-
# It was generated by CMake: /usr/local/
|
|
3
|
+
# It was generated by CMake: /usr/local/bin/cmake
|
|
4
4
|
# You can edit this file to change values found and used by cmake.
|
|
5
5
|
# If you do not want to change any of the values, simply exit the editor.
|
|
6
6
|
# If you do want to change a value, simply edit, save, and exit the editor.
|
|
@@ -247,15 +247,15 @@ CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
|
|
247
247
|
//Minor version of cmake used to create the current loaded cache
|
|
248
248
|
CMAKE_CACHE_MINOR_VERSION:INTERNAL=31
|
|
249
249
|
//Patch version of cmake used to create the current loaded cache
|
|
250
|
-
CMAKE_CACHE_PATCH_VERSION:INTERNAL=
|
|
250
|
+
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
|
|
251
251
|
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
|
|
252
252
|
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
|
|
253
253
|
//Path to CMake executable.
|
|
254
|
-
CMAKE_COMMAND:INTERNAL=/usr/local/
|
|
254
|
+
CMAKE_COMMAND:INTERNAL=/usr/local/bin/cmake
|
|
255
255
|
//Path to cpack program executable.
|
|
256
|
-
CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/
|
|
256
|
+
CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/bin/cpack
|
|
257
257
|
//Path to ctest program executable.
|
|
258
|
-
CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/
|
|
258
|
+
CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/bin/ctest
|
|
259
259
|
//ADVANCED property for variable: CMAKE_CXX_COMPILER
|
|
260
260
|
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
|
|
261
261
|
//ADVANCED property for variable: CMAKE_CXX_FLAGS
|
|
@@ -283,7 +283,7 @@ CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
|
|
283
283
|
//ADVANCED property for variable: CMAKE_DLLTOOL
|
|
284
284
|
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
|
|
285
285
|
//Path to cache edit program executable.
|
|
286
|
-
CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/
|
|
286
|
+
CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/bin/ccmake
|
|
287
287
|
//Executable file format
|
|
288
288
|
CMAKE_EXECUTABLE_FORMAT:INTERNAL=MACHO
|
|
289
289
|
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
|
|
@@ -342,7 +342,7 @@ CMAKE_RANLIB-ADVANCED:INTERNAL=1
|
|
|
342
342
|
//ADVANCED property for variable: CMAKE_READELF
|
|
343
343
|
CMAKE_READELF-ADVANCED:INTERNAL=1
|
|
344
344
|
//Path to CMake installation.
|
|
345
|
-
CMAKE_ROOT:INTERNAL=/usr/local/
|
|
345
|
+
CMAKE_ROOT:INTERNAL=/usr/local/share/cmake
|
|
346
346
|
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
|
|
347
347
|
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
|
348
348
|
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
pennylane_qrack/Makefile
CHANGED
|
@@ -48,10 +48,10 @@ cmake_force:
|
|
|
48
48
|
SHELL = /bin/sh
|
|
49
49
|
|
|
50
50
|
# The CMake executable.
|
|
51
|
-
CMAKE_COMMAND = /usr/local/
|
|
51
|
+
CMAKE_COMMAND = /usr/local/bin/cmake
|
|
52
52
|
|
|
53
53
|
# The command to remove a file.
|
|
54
|
-
RM = /usr/local/
|
|
54
|
+
RM = /usr/local/bin/cmake -E rm -f
|
|
55
55
|
|
|
56
56
|
# Escaping for special characters.
|
|
57
57
|
EQUALS = =
|
|
@@ -68,7 +68,7 @@ CMAKE_BINARY_DIR = /Users/runner/work/pennylane-qrack/pennylane-qrack/pennylane_
|
|
|
68
68
|
# Special rule for the target edit_cache
|
|
69
69
|
edit_cache:
|
|
70
70
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake cache editor..."
|
|
71
|
-
/usr/local/
|
|
71
|
+
/usr/local/bin/ccmake -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
|
72
72
|
.PHONY : edit_cache
|
|
73
73
|
|
|
74
74
|
# Special rule for the target edit_cache
|
|
@@ -78,7 +78,7 @@ edit_cache/fast: edit_cache
|
|
|
78
78
|
# Special rule for the target rebuild_cache
|
|
79
79
|
rebuild_cache:
|
|
80
80
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Running CMake to regenerate build system..."
|
|
81
|
-
/usr/local/
|
|
81
|
+
/usr/local/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
|
82
82
|
.PHONY : rebuild_cache
|
|
83
83
|
|
|
84
84
|
# Special rule for the target rebuild_cache
|
|
@@ -97,37 +97,37 @@ list_install_components/fast: list_install_components
|
|
|
97
97
|
# Special rule for the target install
|
|
98
98
|
install: preinstall
|
|
99
99
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
|
|
100
|
-
/usr/local/
|
|
100
|
+
/usr/local/bin/cmake -P cmake_install.cmake
|
|
101
101
|
.PHONY : install
|
|
102
102
|
|
|
103
103
|
# Special rule for the target install
|
|
104
104
|
install/fast: preinstall/fast
|
|
105
105
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Install the project..."
|
|
106
|
-
/usr/local/
|
|
106
|
+
/usr/local/bin/cmake -P cmake_install.cmake
|
|
107
107
|
.PHONY : install/fast
|
|
108
108
|
|
|
109
109
|
# Special rule for the target install/local
|
|
110
110
|
install/local: preinstall
|
|
111
111
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
|
|
112
|
-
/usr/local/
|
|
112
|
+
/usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
|
113
113
|
.PHONY : install/local
|
|
114
114
|
|
|
115
115
|
# Special rule for the target install/local
|
|
116
116
|
install/local/fast: preinstall/fast
|
|
117
117
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing only the local directory..."
|
|
118
|
-
/usr/local/
|
|
118
|
+
/usr/local/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
|
|
119
119
|
.PHONY : install/local/fast
|
|
120
120
|
|
|
121
121
|
# Special rule for the target install/strip
|
|
122
122
|
install/strip: preinstall
|
|
123
123
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
|
|
124
|
-
/usr/local/
|
|
124
|
+
/usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
|
125
125
|
.PHONY : install/strip
|
|
126
126
|
|
|
127
127
|
# Special rule for the target install/strip
|
|
128
128
|
install/strip/fast: preinstall/fast
|
|
129
129
|
@$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --cyan "Installing the project stripped..."
|
|
130
|
-
/usr/local/
|
|
130
|
+
/usr/local/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
|
|
131
131
|
.PHONY : install/strip/fast
|
|
132
132
|
|
|
133
133
|
# The main all target
|
|
@@ -1,88 +1,67 @@
|
|
|
1
|
-
|
|
2
|
-
schema = 2
|
|
1
|
+
schema = 3
|
|
3
2
|
|
|
4
|
-
# The
|
|
5
|
-
#
|
|
6
|
-
#
|
|
3
|
+
# The set of all gate types supported at the runtime execution interface of the
|
|
4
|
+
# device, i.e., what is supported by the `execute` method. The gate definitions
|
|
5
|
+
# should have the following format:
|
|
7
6
|
#
|
|
8
|
-
# GATE = { properties = [ PROPS ],
|
|
7
|
+
# GATE = { properties = [ PROPS ], conditions = [ CONDS ] }
|
|
9
8
|
#
|
|
10
|
-
#
|
|
9
|
+
# where PROPS and CONS are zero or more comma separated quoted strings.
|
|
11
10
|
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
15
|
-
#
|
|
11
|
+
# PROPS: additional support provided for each gate.
|
|
12
|
+
# - "controllable": if a controlled version of this gate is supported.
|
|
13
|
+
# - "invertible": if the adjoint of this operation is supported.
|
|
14
|
+
# - "differentiable": if device gradient is supported for this gate.
|
|
15
|
+
# CONDS: constraints on the support for each gate.
|
|
16
|
+
# - "analytic" or "finiteshots": if this operation is only supported in
|
|
17
|
+
# either analytic execution or with shots, respectively.
|
|
16
18
|
#
|
|
17
|
-
[operators.gates
|
|
19
|
+
[operators.gates]
|
|
18
20
|
|
|
19
|
-
PauliX
|
|
20
|
-
PauliY
|
|
21
|
-
PauliZ
|
|
22
|
-
SX
|
|
23
|
-
MultiRZ
|
|
24
|
-
Hadamard
|
|
25
|
-
S
|
|
26
|
-
T
|
|
27
|
-
CNOT
|
|
28
|
-
SWAP
|
|
29
|
-
CSWAP
|
|
30
|
-
ISWAP
|
|
31
|
-
PSWAP
|
|
32
|
-
Toffoli
|
|
33
|
-
CY
|
|
34
|
-
CZ
|
|
35
|
-
PhaseShift
|
|
36
|
-
ControlledPhaseShift
|
|
37
|
-
CPhase
|
|
38
|
-
RX
|
|
39
|
-
RY
|
|
40
|
-
RZ
|
|
41
|
-
Rot
|
|
42
|
-
CRX
|
|
43
|
-
CRY
|
|
44
|
-
CRZ
|
|
45
|
-
CRot
|
|
46
|
-
U3
|
|
47
|
-
MultiControlledX
|
|
48
|
-
Identity
|
|
21
|
+
PauliX = { properties = [ "controllable", "invertible" ] }
|
|
22
|
+
PauliY = { properties = [ "controllable", "invertible" ] }
|
|
23
|
+
PauliZ = { properties = [ "controllable", "invertible" ] }
|
|
24
|
+
SX = { properties = [ "controllable", "invertible" ] }
|
|
25
|
+
MultiRZ = { properties = [ "controllable", "invertible" ] }
|
|
26
|
+
Hadamard = { properties = [ "controllable", "invertible" ] }
|
|
27
|
+
S = { properties = [ "controllable", "invertible" ] }
|
|
28
|
+
T = { properties = [ "controllable", "invertible" ] }
|
|
29
|
+
CNOT = { properties = [ "controllable", "invertible" ] }
|
|
30
|
+
SWAP = { properties = [ "controllable", "invertible" ] }
|
|
31
|
+
CSWAP = { properties = [ "controllable", "invertible" ] }
|
|
32
|
+
ISWAP = { properties = [ "controllable", "invertible" ] }
|
|
33
|
+
PSWAP = { properties = [ "controllable", "invertible" ] }
|
|
34
|
+
Toffoli = { properties = [ "controllable", "invertible" ] }
|
|
35
|
+
CY = { properties = [ "controllable", "invertible" ] }
|
|
36
|
+
CZ = { properties = [ "controllable", "invertible" ] }
|
|
37
|
+
PhaseShift = { properties = [ "controllable", "invertible" ] }
|
|
38
|
+
ControlledPhaseShift = { properties = [ "controllable", "invertible" ] }
|
|
39
|
+
CPhase = { properties = [ "controllable", "invertible" ] }
|
|
40
|
+
RX = { properties = [ "controllable", "invertible" ] }
|
|
41
|
+
RY = { properties = [ "controllable", "invertible" ] }
|
|
42
|
+
RZ = { properties = [ "controllable", "invertible" ] }
|
|
43
|
+
Rot = { properties = [ "controllable", "invertible" ] }
|
|
44
|
+
CRX = { properties = [ "controllable", "invertible" ] }
|
|
45
|
+
CRY = { properties = [ "controllable", "invertible" ] }
|
|
46
|
+
CRZ = { properties = [ "controllable", "invertible" ] }
|
|
47
|
+
CRot = { properties = [ "controllable", "invertible" ] }
|
|
48
|
+
U3 = { properties = [ "controllable", "invertible" ] }
|
|
49
|
+
MultiControlledX = { properties = [ "controllable", "invertible" ] }
|
|
50
|
+
Identity = { properties = [ "controllable", "invertible" ] }
|
|
49
51
|
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
|
|
57
|
-
#
|
|
58
|
-
#
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
# DiagonalQubitUnitary = {}
|
|
64
|
-
# SingleExcitation = {}
|
|
65
|
-
# SingleExcitationPlus = {}
|
|
66
|
-
# SingleExcitationMinus = {}
|
|
67
|
-
# DoubleExcitation = {}
|
|
68
|
-
# DoubleExcitationPlus = {}
|
|
69
|
-
# DoubleExcitationMinus = {}
|
|
70
|
-
# QubitCarry = {}
|
|
71
|
-
# QubitSum = {}
|
|
72
|
-
# OrbitalRotation = {}
|
|
73
|
-
# ECR = {}
|
|
74
|
-
# IsingXX = {}
|
|
75
|
-
# IsingYY = {}
|
|
76
|
-
# IsingZZ = {}
|
|
77
|
-
# IsingXY = {}
|
|
78
|
-
# U2 = {}
|
|
79
|
-
# U1 = {}
|
|
80
|
-
# QFT = {}
|
|
81
|
-
|
|
82
|
-
# Gates which should be translated to QubitUnitary
|
|
83
|
-
# [operators.gates.matrix]
|
|
84
|
-
|
|
85
|
-
# Observables supported by the device
|
|
52
|
+
# Observables supported by the device for measurements. The observables defined
|
|
53
|
+
# in this section should have the following format:
|
|
54
|
+
#
|
|
55
|
+
# OBSERVABLE = { conditions = [ CONDS ] }
|
|
56
|
+
#
|
|
57
|
+
# where CONDS is zero or more comma separated quoted strings, same as above.
|
|
58
|
+
#
|
|
59
|
+
# CONDS: constraints on the support for each observable.
|
|
60
|
+
# - "analytic" or "finiteshots": if this observable is only supported in
|
|
61
|
+
# either analytic execution or with shots, respectively.
|
|
62
|
+
# - "terms-commute": if a composite operator is only supported under the
|
|
63
|
+
# condition that its terms commute.
|
|
64
|
+
#
|
|
86
65
|
[operators.observables]
|
|
87
66
|
|
|
88
67
|
PauliX = {}
|
|
@@ -99,60 +78,40 @@ Prod = {}
|
|
|
99
78
|
# SProd = {}
|
|
100
79
|
# Exp = {}
|
|
101
80
|
|
|
81
|
+
# Types of measurement processes supported on the device. The measurements in
|
|
82
|
+
# this section should have the following format:
|
|
83
|
+
#
|
|
84
|
+
# MEASUREMENT_PROCESS = { conditions = [ CONDS ] }
|
|
85
|
+
#
|
|
86
|
+
# where CONDS is zero or more comma separated quoted strings, same as above.
|
|
87
|
+
#
|
|
88
|
+
# CONDS: constraints on the support for each measurement process.
|
|
89
|
+
# - "analytic" or "finiteshots": if this measurement is only supported
|
|
90
|
+
# in either analytic execution or with shots, respectively.
|
|
91
|
+
#
|
|
102
92
|
[measurement_processes]
|
|
103
93
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
94
|
+
ExpectationMP = { conditions = [ "analytic" ] }
|
|
95
|
+
VarianceMP = { conditions = [ "analytic" ] }
|
|
96
|
+
ProbabilityMP = { conditions = [ "analytic" ] }
|
|
97
|
+
StateMP = { conditions = [ "analytic" ] }
|
|
98
|
+
SampleMP = { conditions = [ "finiteshots" ] }
|
|
99
|
+
CountsMP = { conditions = [ "finiteshots" ] }
|
|
110
100
|
|
|
101
|
+
# Additional support that the device may provide that informs the compilation
|
|
102
|
+
# process. All accepted fields and their default values are listed below.
|
|
111
103
|
[compilation]
|
|
112
104
|
|
|
113
|
-
#
|
|
105
|
+
# Whether the device is compatible with qjit.
|
|
114
106
|
qjit_compatible = true
|
|
115
|
-
# If the device requires run time generation of the quantum circuit.
|
|
116
|
-
runtime_code_generation = false
|
|
117
|
-
# If the device supports mid circuit measurements natively
|
|
118
|
-
mid_circuit_measurement = true
|
|
119
|
-
# This field is currently unchecked but it is reserved for the purpose of
|
|
120
|
-
# determining if the device supports dynamic qubit allocation/deallocation.
|
|
121
|
-
dynamic_qubit_management = true
|
|
122
107
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# These options represent runtime parameters that can be passed to the device
|
|
126
|
-
# upon the device initialization.
|
|
127
|
-
# The option key will be the key in a dictionary.
|
|
128
|
-
# The string corresponds to a field queried in the `qml.Device` instance.
|
|
108
|
+
# Whether the device requires run time generation of the quantum circuit.
|
|
109
|
+
runtime_code_generation = false
|
|
129
110
|
|
|
130
|
-
#
|
|
131
|
-
|
|
132
|
-
# Use "tensor network" optimization? (Default is "true"; prevents dynamic qubit de-allocation; might function sub-optimally with "hybrid" stabilizer enabled)
|
|
133
|
-
is_tensor_network = "isTensorNetwork"
|
|
134
|
-
# Use Schmidt decomposition optimizations? (Default is "true")
|
|
135
|
-
is_schmidt_decomposed = "isSchmidtDecompose"
|
|
136
|
-
# Distribute Schmidt-decomposed qubit subsystems to multiple GPUs or accelerators, if available? (Default is "true"; mismatched device capacities might hurt overall performance)
|
|
137
|
-
is_schmidt_decomposition_parallel = "isSchmidtDecomposeMulti"
|
|
138
|
-
# Use "quantum binary decision diagram" ("QBDD") methods? (Default is "false"; note that QBDD is CPU-only)
|
|
139
|
-
is_qbdd = "isBinaryDecisionTree"
|
|
140
|
-
# Use GPU acceleration? (Default is "true")
|
|
141
|
-
is_gpu = "isOpenCL"
|
|
142
|
-
# Use multi-GPU (or "multi-page") acceleration? (Default is "false")
|
|
143
|
-
is_paged = "isPaged"
|
|
144
|
-
# Use CPU/GPU method hybridization? (Default is "false")
|
|
145
|
-
is_hybrid_cpu_gpu = "isCpuGpuHybrid"
|
|
146
|
-
# 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)
|
|
147
|
-
is_host_pointer = "isHostPointer"
|
|
148
|
-
# Noise parameter. (Default is "0"; depolarizing noise intensity can also be controlled by "QRACK_GATE_DEPOLARIZATION" environment variable)
|
|
149
|
-
noise = "noise"
|
|
111
|
+
# Whether the device supports allocating and releasing qubits during execution.
|
|
112
|
+
dynamic_qubit_management = true
|
|
150
113
|
|
|
151
|
-
#
|
|
152
|
-
#
|
|
153
|
-
#
|
|
154
|
-
|
|
155
|
-
# During the initialization of your `class QuantumDevice`, the dictionary
|
|
156
|
-
# will be sent to the constructor of your implementation of `class QuantumDevice`.
|
|
157
|
-
# The dictionary will be a JSON string like the following:
|
|
158
|
-
# { 'option_key': option_field }
|
|
114
|
+
# The methods of handling mid-circuit measurements that the device supports,
|
|
115
|
+
# e.g., "one-shot", "tree-traversal", "device", etc. An empty list indicates
|
|
116
|
+
# that the device does not support mid-circuit measurements.
|
|
117
|
+
supported_mcm_methods = [ "device", "one-shot" ]
|
pennylane_qrack/_version.py
CHANGED
|
Binary file
|
pennylane_qrack/qrack_device.py
CHANGED
|
@@ -66,9 +66,9 @@ class QrackDevice(QubitDevice):
|
|
|
66
66
|
"PauliY": Pauli.PauliY,
|
|
67
67
|
"PauliZ": Pauli.PauliZ,
|
|
68
68
|
"Identity": Pauli.PauliI,
|
|
69
|
+
"Hadamard": None,
|
|
70
|
+
"Hermitian": None,
|
|
69
71
|
"Prod": None,
|
|
70
|
-
# "Hadamard": None,
|
|
71
|
-
# "Hermitian": None,
|
|
72
72
|
# "Sum": None,
|
|
73
73
|
# "SProd": None,
|
|
74
74
|
# "Exp": None,
|
|
@@ -141,7 +141,7 @@ class QrackDevice(QubitDevice):
|
|
|
141
141
|
"C(MultiControlledX)",
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
config_filepath = pathlib.Path(
|
|
145
145
|
os.path.dirname(sys.modules[__name__].__file__) + "/QrackDeviceConfig.toml"
|
|
146
146
|
)
|
|
147
147
|
|
|
@@ -213,6 +213,18 @@ class QrackDevice(QubitDevice):
|
|
|
213
213
|
isHostPointer=self.isHostPointer,
|
|
214
214
|
noise=self.noise,
|
|
215
215
|
)
|
|
216
|
+
self.device_kwargs = {
|
|
217
|
+
"is_hybrid_stabilizer": self.isStabilizerHybrid,
|
|
218
|
+
"is_tensor_network": self.isTensorNetwork,
|
|
219
|
+
"is_schmidt_decompose": self.isSchmidtDecompose,
|
|
220
|
+
"is_schmidt_decompose_parallel": self.isSchmidtDecomposeMulti,
|
|
221
|
+
"is_qpdd": self.isBinaryDecisionTree,
|
|
222
|
+
"is_gpu": self.isOpenCL,
|
|
223
|
+
"is_paged": self.isPaged,
|
|
224
|
+
"is_hybrid_cpu_gpu": self.isCpuGpuHybrid,
|
|
225
|
+
"is_host_pointer": self.isHostPointer,
|
|
226
|
+
"noise": self.noise,
|
|
227
|
+
}
|
|
216
228
|
self._circuit = []
|
|
217
229
|
|
|
218
230
|
def _reverse_state(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pennylane-qrack
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.11.1
|
|
4
4
|
Summary: PennyLane plugin for Qrack.
|
|
5
5
|
Home-page: http://github.com/vm6502q
|
|
6
6
|
Maintainer: vm6502q
|
|
@@ -26,7 +26,7 @@ Classifier: Topic :: Scientific/Engineering :: Physics
|
|
|
26
26
|
Provides: pennylane_qrack
|
|
27
27
|
Description-Content-Type: text/x-rst
|
|
28
28
|
License-File: LICENSE
|
|
29
|
-
Requires-Dist: pennylane>=0.
|
|
29
|
+
Requires-Dist: pennylane>=0.39.0
|
|
30
30
|
Requires-Dist: pyqrack>=1.30.0
|
|
31
31
|
Requires-Dist: numpy>=1.16
|
|
32
32
|
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
pennylane_qrack/CMakeCache.txt,sha256=ptXhplUpYBN1c7Rw07PpJabie_U8JFdNFP0lBUTAPJ0,15973
|
|
2
|
+
pennylane_qrack/Makefile,sha256=7H-NP7fL_lUHTi5KHAl1PVsUpAC3I7_di2sx-trsTCQ,7589
|
|
3
|
+
pennylane_qrack/QrackDeviceConfig.toml,sha256=oR9-dIAP6BzP3e2QSLroacaloHZsx7iJiKE6w7LGxUo,5459
|
|
4
|
+
pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
|
|
5
|
+
pennylane_qrack/_version.py,sha256=OQD_I9xQl7z6dOlJ7tlIMR1rPfH6DrVD0-D3_y4QYIA,692
|
|
6
|
+
pennylane_qrack/cmake_install.cmake,sha256=3koGjuUDHxfI9o9wTp4oRYWMlvN-NeoyjamIYYMbcJ8,3274
|
|
7
|
+
pennylane_qrack/libqrack_device.dylib,sha256=CAsgqqi8b6G2SXTAHWH57KhIlepHVzMABkvjrLLVdqc,3296768
|
|
8
|
+
pennylane_qrack/qrack_device.cpp,sha256=KmFmugfYT_q2wt_iSvaHkhD3CzUe5UrlT_OYdNlVEgo,36953
|
|
9
|
+
pennylane_qrack/qrack_device.py,sha256=Vr_j4UkvMmcCd14pkmjeYIr1DscmfPqZuvjewdat4jY,27881
|
|
10
|
+
pennylane_qrack-0.11.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
pennylane_qrack-0.11.1.dist-info/METADATA,sha256=NCP7UCE6WvcFeWSGOFOOlGw1-8koF7GaaE5YweORwHU,5527
|
|
12
|
+
pennylane_qrack-0.11.1.dist-info/WHEEL,sha256=Xt26AAX4_fmqNkpuR0LOzcu8ijipXBEOs3CoLcgrDhc,106
|
|
13
|
+
pennylane_qrack-0.11.1.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
|
|
14
|
+
pennylane_qrack-0.11.1.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
15
|
+
pennylane_qrack-0.11.1.dist-info/RECORD,,
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
pennylane_qrack/CMakeCache.txt,sha256=-FeWgCaAiSbeqS8DyCG-4_wKu41ifPjMlYX7Ler_-fc,16093
|
|
2
|
-
pennylane_qrack/Makefile,sha256=5bHWbw8K7aNYIizXIkWdGdcAZ-dqvX6-HCqaOkC9ZkA,7789
|
|
3
|
-
pennylane_qrack/QrackDeviceConfig.toml,sha256=qIamMrYN8kqkhoAuYrgmvmaUi3JXdjXLlhjMrpxIZK8,6379
|
|
4
|
-
pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
|
|
5
|
-
pennylane_qrack/_version.py,sha256=IQ8qpsCUIoEeQZ2JwjurqZeuAzsrineW20nNYqdJprI,693
|
|
6
|
-
pennylane_qrack/cmake_install.cmake,sha256=3koGjuUDHxfI9o9wTp4oRYWMlvN-NeoyjamIYYMbcJ8,3274
|
|
7
|
-
pennylane_qrack/libqrack_device.dylib,sha256=43VIH7H-WmKJbV7SVhbCi7b4fANs0XXGIHLAsew7THQ,3296768
|
|
8
|
-
pennylane_qrack/qrack_device.cpp,sha256=KmFmugfYT_q2wt_iSvaHkhD3CzUe5UrlT_OYdNlVEgo,36953
|
|
9
|
-
pennylane_qrack/qrack_device.py,sha256=9BrO9gwt9nb6VkpYaA4E4Al49dGMlUg2O9uQVWlIWao,27320
|
|
10
|
-
pennylane_qrack-0.10.20.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
-
pennylane_qrack-0.10.20.dist-info/METADATA,sha256=eSon5S48NDDFPFavpr1pQyuB6ng_ry6UtMykK4jN5FM,5526
|
|
12
|
-
pennylane_qrack-0.10.20.dist-info/WHEEL,sha256=Xt26AAX4_fmqNkpuR0LOzcu8ijipXBEOs3CoLcgrDhc,106
|
|
13
|
-
pennylane_qrack-0.10.20.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
|
|
14
|
-
pennylane_qrack-0.10.20.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
15
|
-
pennylane_qrack-0.10.20.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|