pennylane-qrack 0.20.0__tar.gz → 0.20.2__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.20.0 → pennylane_qrack-0.20.2}/PKG-INFO +2 -1
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/README.rst +1 -0
- pennylane_qrack-0.20.0/pennylane_qrack/QrackDeviceConfig.toml → pennylane_qrack-0.20.2/pennylane_qrack/QrackAceDeviceConfig.toml +6 -6
- pennylane_qrack-0.20.0/pennylane_qrack/QrackAceDeviceConfig.toml → pennylane_qrack-0.20.2/pennylane_qrack/QrackDeviceConfig.toml +6 -6
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack/_version.py +1 -1
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack/qrack_ace_device.py +6 -11
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/PKG-INFO +2 -1
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/CHANGELOG.md +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/CMakeLists.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/LICENSE +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/MANIFEST.in +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/Makefile +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/DataView.hpp +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/DynamicLibraryLoader.hpp +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/Exception.hpp +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/QuantumDevice.hpp +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/RuntimeCAPI.h +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/Types.h +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack/__init__.py +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack/qrack_device.cpp +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack/qrack_device.py +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/SOURCES.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/dependency_links.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/entry_points.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/requires.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/top_level.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/requirements.txt +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/setup.cfg +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/setup.py +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/tests/test_apply.py +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/tests/test_integration.py +0 -0
- {pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/tests/test_units.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pennylane-qrack
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.2
|
|
4
4
|
Summary: PennyLane plugin for Qrack.
|
|
5
5
|
Home-page: http://github.com/vm6502q
|
|
6
6
|
Maintainer: vm6502q
|
|
@@ -65,6 +65,7 @@ Features
|
|
|
65
65
|
|
|
66
66
|
* Provides access to a PyQrack simulator backend via the ``qrack.simulator`` device
|
|
67
67
|
* Provides access to a (C++) Qrack simulator backend for Catalyst (also) via the ``qrack.simulator`` device
|
|
68
|
+
* Provides access to a PyQrack simulator backend optimized for approximate NISQ-scale TFIM via the ``qrack.ace`` device
|
|
68
69
|
|
|
69
70
|
.. installation-start-inclusion-marker-do-not-remove
|
|
70
71
|
|
|
@@ -22,6 +22,7 @@ Features
|
|
|
22
22
|
|
|
23
23
|
* Provides access to a PyQrack simulator backend via the ``qrack.simulator`` device
|
|
24
24
|
* Provides access to a (C++) Qrack simulator backend for Catalyst (also) via the ``qrack.simulator`` device
|
|
25
|
+
* Provides access to a PyQrack simulator backend optimized for approximate NISQ-scale TFIM via the ``qrack.ace`` device
|
|
25
26
|
|
|
26
27
|
.. installation-start-inclusion-marker-do-not-remove
|
|
27
28
|
|
|
@@ -82,10 +82,10 @@ Prod = {}
|
|
|
82
82
|
#
|
|
83
83
|
[measurement_processes]
|
|
84
84
|
|
|
85
|
-
ExpectationMP = { conditions = [ "
|
|
86
|
-
VarianceMP = { conditions = [ "
|
|
87
|
-
ProbabilityMP = { conditions = [ "
|
|
88
|
-
StateMP = { conditions = [ "
|
|
85
|
+
ExpectationMP = { conditions = [ "finiteshots" ] }
|
|
86
|
+
VarianceMP = { conditions = [ "finiteshots" ] }
|
|
87
|
+
ProbabilityMP = { conditions = [ "finiteshots" ] }
|
|
88
|
+
StateMP = { conditions = [ "finiteshots" ] }
|
|
89
89
|
SampleMP = { conditions = [ "finiteshots" ] }
|
|
90
90
|
CountsMP = { conditions = [ "finiteshots" ] }
|
|
91
91
|
|
|
@@ -94,13 +94,13 @@ CountsMP = { conditions = [ "finiteshots" ] }
|
|
|
94
94
|
[compilation]
|
|
95
95
|
|
|
96
96
|
# Whether the device is compatible with qjit.
|
|
97
|
-
qjit_compatible =
|
|
97
|
+
qjit_compatible = false
|
|
98
98
|
|
|
99
99
|
# Whether the device requires run time generation of the quantum circuit.
|
|
100
100
|
runtime_code_generation = false
|
|
101
101
|
|
|
102
102
|
# Whether the device supports allocating and releasing qubits during execution.
|
|
103
|
-
dynamic_qubit_management =
|
|
103
|
+
dynamic_qubit_management = false
|
|
104
104
|
|
|
105
105
|
# The methods of handling mid-circuit measurements that the device supports,
|
|
106
106
|
# e.g., "one-shot", "tree-traversal", "device", etc. An empty list indicates
|
|
@@ -91,10 +91,10 @@ Prod = {}
|
|
|
91
91
|
#
|
|
92
92
|
[measurement_processes]
|
|
93
93
|
|
|
94
|
-
ExpectationMP = { conditions = [ "
|
|
95
|
-
VarianceMP = { conditions = [ "
|
|
96
|
-
ProbabilityMP = { conditions = [ "
|
|
97
|
-
StateMP = { conditions = [ "
|
|
94
|
+
ExpectationMP = { conditions = [ "analytic" ] }
|
|
95
|
+
VarianceMP = { conditions = [ "analytic" ] }
|
|
96
|
+
ProbabilityMP = { conditions = [ "analytic" ] }
|
|
97
|
+
StateMP = { conditions = [ "analytic" ] }
|
|
98
98
|
SampleMP = { conditions = [ "finiteshots" ] }
|
|
99
99
|
CountsMP = { conditions = [ "finiteshots" ] }
|
|
100
100
|
|
|
@@ -103,13 +103,13 @@ CountsMP = { conditions = [ "finiteshots" ] }
|
|
|
103
103
|
[compilation]
|
|
104
104
|
|
|
105
105
|
# Whether the device is compatible with qjit.
|
|
106
|
-
qjit_compatible =
|
|
106
|
+
qjit_compatible = true
|
|
107
107
|
|
|
108
108
|
# Whether the device requires run time generation of the quantum circuit.
|
|
109
109
|
runtime_code_generation = false
|
|
110
110
|
|
|
111
111
|
# Whether the device supports allocating and releasing qubits during execution.
|
|
112
|
-
dynamic_qubit_management =
|
|
112
|
+
dynamic_qubit_management = true
|
|
113
113
|
|
|
114
114
|
# The methods of handling mid-circuit measurements that the device supports,
|
|
115
115
|
# e.g., "one-shot", "tree-traversal", "device", etc. An empty list indicates
|
|
@@ -52,7 +52,7 @@ class QrackAceDevice(QubitDevice):
|
|
|
52
52
|
"""Qrack Ace device"""
|
|
53
53
|
|
|
54
54
|
name = "Qrack device"
|
|
55
|
-
short_name = "qrack.
|
|
55
|
+
short_name = "qrack.ace"
|
|
56
56
|
pennylane_requires = ">=0.11.0"
|
|
57
57
|
version = __version__
|
|
58
58
|
author = "Daniel Strano, adapted from Steven Oud and Xanadu"
|
|
@@ -85,11 +85,6 @@ class QrackAceDevice(QubitDevice):
|
|
|
85
85
|
"Identity",
|
|
86
86
|
"C(Identity)",
|
|
87
87
|
"MultiRZ",
|
|
88
|
-
"C(MultiRZ)",
|
|
89
|
-
"CRX",
|
|
90
|
-
"CRY",
|
|
91
|
-
"CRZ",
|
|
92
|
-
"CRot",
|
|
93
88
|
"SWAP",
|
|
94
89
|
"ISWAP",
|
|
95
90
|
"PSWAP",
|
|
@@ -110,20 +105,17 @@ class QrackAceDevice(QubitDevice):
|
|
|
110
105
|
"Hadamard",
|
|
111
106
|
"SX",
|
|
112
107
|
"PhaseShift",
|
|
113
|
-
"C(PhaseShift)",
|
|
114
108
|
"U3",
|
|
115
109
|
"Rot",
|
|
116
|
-
"ControlledPhaseShift",
|
|
117
|
-
"CPhase",
|
|
118
110
|
}
|
|
119
111
|
|
|
120
112
|
config_filepath = pathlib.Path(
|
|
121
|
-
os.path.dirname(sys.modules[__name__].__file__) + "/
|
|
113
|
+
os.path.dirname(sys.modules[__name__].__file__) + "/QrackAceDeviceConfig.toml"
|
|
122
114
|
)
|
|
123
115
|
|
|
124
116
|
# Use "hybrid" stabilizer optimization? (Default is "true"; non-Clifford circuits will fall back to near-Clifford or universal simulation)
|
|
125
117
|
isStabilizerHybrid = False
|
|
126
|
-
# Use "tensor network" optimization? (Default is "
|
|
118
|
+
# Use "tensor network" optimization? (Default is "false"; prevents dynamic qubit de-allocation; might function sub-optimally with "hybrid" stabilizer enabled)
|
|
127
119
|
isTensorNetwork = False
|
|
128
120
|
# Use Schmidt decomposition optimizations? (Default is "true")
|
|
129
121
|
isSchmidtDecompose = True
|
|
@@ -383,6 +375,9 @@ class QrackAceDevice(QubitDevice):
|
|
|
383
375
|
]:
|
|
384
376
|
raise DeviceError(f"Operation {opname} is not supported on a {self.short_name} device.")
|
|
385
377
|
|
|
378
|
+
def analytic_probability(self, wires=None):
|
|
379
|
+
raise DeviceError(f"analytic_probability is not supported on a {self.short_name} device. (Specify a finite number of shots, instead.)")
|
|
380
|
+
|
|
386
381
|
def expval(self, observable, **kwargs):
|
|
387
382
|
if self.shots is None:
|
|
388
383
|
if isinstance(observable.name, list):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pennylane-qrack
|
|
3
|
-
Version: 0.20.
|
|
3
|
+
Version: 0.20.2
|
|
4
4
|
Summary: PennyLane plugin for Qrack.
|
|
5
5
|
Home-page: http://github.com/vm6502q
|
|
6
6
|
Maintainer: vm6502q
|
|
@@ -65,6 +65,7 @@ Features
|
|
|
65
65
|
|
|
66
66
|
* Provides access to a PyQrack simulator backend via the ``qrack.simulator`` device
|
|
67
67
|
* Provides access to a (C++) Qrack simulator backend for Catalyst (also) via the ``qrack.simulator`` device
|
|
68
|
+
* Provides access to a PyQrack simulator backend optimized for approximate NISQ-scale TFIM via the ``qrack.ace`` device
|
|
68
69
|
|
|
69
70
|
.. installation-start-inclusion-marker-do-not-remove
|
|
70
71
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/DynamicLibraryLoader.hpp
RENAMED
|
File without changes
|
|
File without changes
|
{pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/catalyst/runtime/include/QuantumDevice.hpp
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pennylane_qrack-0.20.0 → pennylane_qrack-0.20.2}/pennylane_qrack.egg-info/dependency_links.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
|
|
File without changes
|