pennylane-qrack 0.11.5__py3-none-macosx_13_0_x86_64.whl → 0.11.6__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/QrackDeviceConfig.toml +126 -85
- pennylane_qrack/_version.py +1 -1
- pennylane_qrack/qrack_device.py +1 -13
- {pennylane_qrack-0.11.5.dist-info → pennylane_qrack-0.11.6.dist-info}/METADATA +1 -1
- {pennylane_qrack-0.11.5.dist-info → pennylane_qrack-0.11.6.dist-info}/RECORD +9 -9
- {pennylane_qrack-0.11.5.dist-info → pennylane_qrack-0.11.6.dist-info}/LICENSE +0 -0
- {pennylane_qrack-0.11.5.dist-info → pennylane_qrack-0.11.6.dist-info}/WHEEL +0 -0
- {pennylane_qrack-0.11.5.dist-info → pennylane_qrack-0.11.6.dist-info}/entry_points.txt +0 -0
- {pennylane_qrack-0.11.5.dist-info → pennylane_qrack-0.11.6.dist-info}/top_level.txt +0 -0
|
@@ -1,67 +1,88 @@
|
|
|
1
|
-
|
|
1
|
+
# Which version of the specification format is being used.
|
|
2
|
+
schema = 2
|
|
2
3
|
|
|
3
|
-
# The
|
|
4
|
-
# device
|
|
5
|
-
#
|
|
4
|
+
# The union of all gate types listed in this section must match what
|
|
5
|
+
# the device considers "supported" through PennyLane's device API.
|
|
6
|
+
# The gate definition has the following format:
|
|
6
7
|
#
|
|
7
|
-
# GATE = { properties = [ PROPS ],
|
|
8
|
+
# GATE = { properties = [ PROPS ], condition = [ COND ] }
|
|
8
9
|
#
|
|
9
|
-
#
|
|
10
|
+
# Where:
|
|
10
11
|
#
|
|
11
|
-
#
|
|
12
|
-
#
|
|
13
|
-
#
|
|
14
|
-
#
|
|
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.
|
|
12
|
+
# PROPS: zero or more comma-separated quoted strings:
|
|
13
|
+
# "controllable", "invertible", "differentiable"
|
|
14
|
+
# COND: quoted string, on of:
|
|
15
|
+
# "analytic", "finiteshots"
|
|
18
16
|
#
|
|
19
|
-
[operators.gates]
|
|
17
|
+
[operators.gates.native]
|
|
20
18
|
|
|
21
|
-
PauliX
|
|
22
|
-
PauliY
|
|
23
|
-
PauliZ
|
|
24
|
-
SX
|
|
25
|
-
MultiRZ
|
|
26
|
-
Hadamard
|
|
27
|
-
S
|
|
28
|
-
T
|
|
29
|
-
CNOT
|
|
30
|
-
SWAP
|
|
31
|
-
CSWAP
|
|
32
|
-
ISWAP
|
|
33
|
-
PSWAP
|
|
34
|
-
Toffoli
|
|
35
|
-
CY
|
|
36
|
-
CZ
|
|
37
|
-
PhaseShift
|
|
38
|
-
ControlledPhaseShift
|
|
39
|
-
CPhase
|
|
40
|
-
RX
|
|
41
|
-
RY
|
|
42
|
-
RZ
|
|
43
|
-
Rot
|
|
44
|
-
CRX
|
|
45
|
-
CRY
|
|
46
|
-
CRZ
|
|
47
|
-
CRot
|
|
48
|
-
U3
|
|
49
|
-
MultiControlledX
|
|
50
|
-
Identity
|
|
19
|
+
PauliX = { properties = [ "controllable", "invertible"] }
|
|
20
|
+
PauliY = { properties = [ "controllable", "invertible"] }
|
|
21
|
+
PauliZ = { properties = [ "controllable", "invertible"] }
|
|
22
|
+
SX = { properties = [ "controllable", "invertible"] }
|
|
23
|
+
MultiRZ = { properties = [ "controllable", "invertible" ] }
|
|
24
|
+
Hadamard = { properties = [ "controllable", "invertible"] }
|
|
25
|
+
S = { properties = [ "controllable", "invertible" ] }
|
|
26
|
+
T = { properties = [ "controllable", "invertible" ] }
|
|
27
|
+
CNOT = { properties = [ "controllable", "invertible" ] }
|
|
28
|
+
SWAP = { properties = [ "controllable", "invertible" ] }
|
|
29
|
+
CSWAP = { properties = [ "controllable", "invertible" ] }
|
|
30
|
+
ISWAP = { properties = [ "controllable", "invertible"] }
|
|
31
|
+
PSWAP = { properties = [ "controllable", "invertible"] }
|
|
32
|
+
Toffoli = { properties = [ "controllable", "invertible" ] }
|
|
33
|
+
CY = { properties = [ "controllable", "invertible" ] }
|
|
34
|
+
CZ = { properties = [ "controllable", "invertible" ] }
|
|
35
|
+
PhaseShift = { properties = [ "controllable", "invertible" ] }
|
|
36
|
+
ControlledPhaseShift = { properties = [ "controllable", "invertible" ] }
|
|
37
|
+
CPhase = { properties = [ "controllable", "invertible" ] }
|
|
38
|
+
RX = { properties = [ "controllable", "invertible" ] }
|
|
39
|
+
RY = { properties = [ "controllable", "invertible" ] }
|
|
40
|
+
RZ = { properties = [ "controllable", "invertible" ] }
|
|
41
|
+
Rot = { properties = [ "controllable", "invertible" ] }
|
|
42
|
+
CRX = { properties = [ "controllable", "invertible" ] }
|
|
43
|
+
CRY = { properties = [ "controllable", "invertible" ] }
|
|
44
|
+
CRZ = { properties = [ "controllable", "invertible" ] }
|
|
45
|
+
CRot = { properties = [ "controllable", "invertible" ] }
|
|
46
|
+
U3 = { properties = [ "controllable", "invertible" ] }
|
|
47
|
+
MultiControlledX = { properties = [ "controllable", "invertible" ] }
|
|
48
|
+
Identity = { properties = [ "controllable", "invertible" ] }
|
|
51
49
|
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
#
|
|
55
|
-
#
|
|
56
|
-
#
|
|
57
|
-
#
|
|
58
|
-
|
|
59
|
-
#
|
|
60
|
-
#
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
50
|
+
# Operators that should be decomposed according to the algorithm used
|
|
51
|
+
# by PennyLane's device API.
|
|
52
|
+
# Optional, since gates not listed in this list will typically be decomposed by
|
|
53
|
+
# default, but can be useful to express a deviation from this device's regular
|
|
54
|
+
# strategy in PennyLane.
|
|
55
|
+
# [operators.gates.decomp]
|
|
56
|
+
|
|
57
|
+
# QubitUnitary = {}
|
|
58
|
+
# SISWAP = {}
|
|
59
|
+
# SQISW = {}
|
|
60
|
+
# BasisState = {}
|
|
61
|
+
# StatePrep = {}
|
|
62
|
+
# ControlledQubitUnitary = {}
|
|
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
|
|
65
86
|
[operators.observables]
|
|
66
87
|
|
|
67
88
|
PauliX = {}
|
|
@@ -78,40 +99,60 @@ Prod = {}
|
|
|
78
99
|
# SProd = {}
|
|
79
100
|
# Exp = {}
|
|
80
101
|
|
|
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
|
-
#
|
|
92
102
|
[measurement_processes]
|
|
93
103
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
Expval = { condition = [ "analytic" ] }
|
|
105
|
+
Var = { condition = [ "analytic" ] }
|
|
106
|
+
Probs = { condition = [ "analytic" ] }
|
|
107
|
+
State = { condition = [ "analytic" ] }
|
|
108
|
+
Sample = { condition = [ "finiteshots" ] }
|
|
109
|
+
Counts = { condition = [ "finiteshots" ] }
|
|
100
110
|
|
|
101
|
-
# Additional support that the device may provide that informs the compilation
|
|
102
|
-
# process. All accepted fields and their default values are listed below.
|
|
103
111
|
[compilation]
|
|
104
112
|
|
|
105
|
-
#
|
|
113
|
+
# If the device is compatible with qjit
|
|
106
114
|
qjit_compatible = true
|
|
107
|
-
|
|
108
|
-
# Whether the device requires run time generation of the quantum circuit.
|
|
115
|
+
# If the device requires run time generation of the quantum circuit.
|
|
109
116
|
runtime_code_generation = false
|
|
110
|
-
|
|
111
|
-
|
|
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.
|
|
112
121
|
dynamic_qubit_management = true
|
|
113
122
|
|
|
114
|
-
|
|
115
|
-
#
|
|
116
|
-
# that
|
|
117
|
-
|
|
123
|
+
[options]
|
|
124
|
+
# Options is an optional field.
|
|
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.
|
|
129
|
+
|
|
130
|
+
# Use "hybrid" stabilizer optimization? (Default is "true"; non-Clifford circuits will fall back to near-Clifford or universal simulation)
|
|
131
|
+
is_hybrid_stabilizer = "isStabilizerHybrid"
|
|
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"
|
|
150
|
+
|
|
151
|
+
# In the above example, a dictionary will be constructed at run time.
|
|
152
|
+
# The dictionary will contain the string key "option_key" and its value
|
|
153
|
+
# will be the value in `qml.Device` `option_field`.
|
|
154
|
+
# The value can be any Python type, but will be converted to a string.
|
|
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 }
|
pennylane_qrack/_version.py
CHANGED
pennylane_qrack/qrack_device.py
CHANGED
|
@@ -141,7 +141,7 @@ class QrackDevice(QubitDevice):
|
|
|
141
141
|
"C(MultiControlledX)",
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
config = pathlib.Path(
|
|
145
145
|
os.path.dirname(sys.modules[__name__].__file__) + "/QrackDeviceConfig.toml"
|
|
146
146
|
)
|
|
147
147
|
|
|
@@ -213,18 +213,6 @@ 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
|
-
}
|
|
228
216
|
self._circuit = []
|
|
229
217
|
|
|
230
218
|
def _reverse_state(self):
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
pennylane_qrack/CMakeCache.txt,sha256=QhPrE2VDP0fZdyqq-R-A_Dv-tcX-ydQshsA2tVbXom8,15973
|
|
2
2
|
pennylane_qrack/Makefile,sha256=7H-NP7fL_lUHTi5KHAl1PVsUpAC3I7_di2sx-trsTCQ,7589
|
|
3
|
-
pennylane_qrack/QrackDeviceConfig.toml,sha256=
|
|
3
|
+
pennylane_qrack/QrackDeviceConfig.toml,sha256=qIamMrYN8kqkhoAuYrgmvmaUi3JXdjXLlhjMrpxIZK8,6379
|
|
4
4
|
pennylane_qrack/__init__.py,sha256=_g4NKu07_pXqxvQaxjdAPe769S5tWwYjqyHi3z7YKHc,673
|
|
5
|
-
pennylane_qrack/_version.py,sha256=
|
|
5
|
+
pennylane_qrack/_version.py,sha256=ljaTxt5k_GcPpU8iyXnJkLj_YCskNVrUnmuqfNlJExs,692
|
|
6
6
|
pennylane_qrack/cmake_install.cmake,sha256=3koGjuUDHxfI9o9wTp4oRYWMlvN-NeoyjamIYYMbcJ8,3274
|
|
7
7
|
pennylane_qrack/libqrack_device.dylib,sha256=Xxq-8F7PG6HtwW0tYzfIhABJQ_CQdAV0xgMcfzx6sQQ,3297344
|
|
8
8
|
pennylane_qrack/qrack_device.cpp,sha256=KmFmugfYT_q2wt_iSvaHkhD3CzUe5UrlT_OYdNlVEgo,36953
|
|
9
|
-
pennylane_qrack/qrack_device.py,sha256=
|
|
10
|
-
pennylane_qrack-0.11.
|
|
11
|
-
pennylane_qrack-0.11.
|
|
12
|
-
pennylane_qrack-0.11.
|
|
13
|
-
pennylane_qrack-0.11.
|
|
14
|
-
pennylane_qrack-0.11.
|
|
15
|
-
pennylane_qrack-0.11.
|
|
9
|
+
pennylane_qrack/qrack_device.py,sha256=hfzQ7Bz7iY7LwRGELVHTAU5Dic1k_QVU9yxU9FQecsI,27316
|
|
10
|
+
pennylane_qrack-0.11.6.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
pennylane_qrack-0.11.6.dist-info/METADATA,sha256=F8DmkBq0OzHBBgdAdPVBrvMot6DEh590r6ZU0-SYqNA,5527
|
|
12
|
+
pennylane_qrack-0.11.6.dist-info/WHEEL,sha256=Xt26AAX4_fmqNkpuR0LOzcu8ijipXBEOs3CoLcgrDhc,106
|
|
13
|
+
pennylane_qrack-0.11.6.dist-info/entry_points.txt,sha256=V6f1sN6IZZZaEvxrI47A3K_kksp8fDUWjLWD0Met7Ww,79
|
|
14
|
+
pennylane_qrack-0.11.6.dist-info/top_level.txt,sha256=5NFMNHqCHtVLwNkLg66xz846uUJAlnOJ5VGa6ulW1ow,16
|
|
15
|
+
pennylane_qrack-0.11.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|