pyqrack-cpu 2.6.1__tar.gz → 2.7.0__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.
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/Makefile +1 -1
- {pyqrack_cpu-2.6.1/pyqrack_cpu.egg-info → pyqrack_cpu-2.7.0}/PKG-INFO +1 -1
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_simulator.py +18 -1
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_system/qrack_system.py +9 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0/pyqrack_cpu.egg-info}/PKG-INFO +1 -1
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/setup.py +1 -1
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/LICENSE +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/MANIFEST.in +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/README.md +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyproject.toml +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/__init__.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/pauli.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_ace_backend.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack_cpu.egg-info/SOURCES.txt +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack_cpu.egg-info/dependency_links.txt +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack_cpu.egg-info/not-zip-safe +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack_cpu.egg-info/requires.txt +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/pyqrack_cpu.egg-info/top_level.txt +0 -0
- {pyqrack_cpu-2.6.1 → pyqrack_cpu-2.7.0}/setup.cfg +0 -0
|
@@ -30,7 +30,7 @@ build-deps:
|
|
|
30
30
|
rm -rf pyqrack/qrack_system/qrack_cl_precompile
|
|
31
31
|
ifneq ($(OS),Windows_NT)
|
|
32
32
|
ifeq ($(QRACK_PRESENT),)
|
|
33
|
-
git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout
|
|
33
|
+
git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout f407a468fa81ccb47e1a8ace3514ec689d03de4c; cd ..
|
|
34
34
|
endif
|
|
35
35
|
mkdir -p qrack/build
|
|
36
36
|
ifeq ($(UNAME_S),Linux)
|
|
@@ -3202,9 +3202,26 @@ class QrackSimulator:
|
|
|
3202
3202
|
Raises:
|
|
3203
3203
|
Runtimeerror: QrackSimulator raised an exception.
|
|
3204
3204
|
"""
|
|
3205
|
-
|
|
3205
|
+
Qrack.qrack_lib.Separate(self.sid, len(qs), QrackSimulator._ulonglong_byref(qs))
|
|
3206
3206
|
self._throw_if_error()
|
|
3207
3207
|
|
|
3208
|
+
def are_factorized(self, a, b):
|
|
3209
|
+
"""Check whether bits in "a" are factorized from bits in "b"
|
|
3210
|
+
|
|
3211
|
+
After flushing all buffers, check whether "a" set of qubits is factorized separate from "b" set of qubits
|
|
3212
|
+
|
|
3213
|
+
Args:
|
|
3214
|
+
a: first list of qubits
|
|
3215
|
+
b: second list of qubits
|
|
3216
|
+
|
|
3217
|
+
Raises:
|
|
3218
|
+
Runtimeerror: QrackSimulator raised an exception.
|
|
3219
|
+
"""
|
|
3220
|
+
result = Qrack.qrack_lib.AreFactorized(self.sid, len(a), QrackSimulator._ulonglong_byref(a), len(b), QrackSimulator._ulonglong_byref(b))
|
|
3221
|
+
self._throw_if_error()
|
|
3222
|
+
|
|
3223
|
+
return result
|
|
3224
|
+
|
|
3208
3225
|
def get_unitary_fidelity(self):
|
|
3209
3226
|
"""Get fidelity estimate
|
|
3210
3227
|
|
|
@@ -1204,6 +1204,15 @@ class QrackSystem:
|
|
|
1204
1204
|
POINTER(c_ulonglong),
|
|
1205
1205
|
]
|
|
1206
1206
|
|
|
1207
|
+
self.qrack_lib.AreFactorized.restype = c_bool
|
|
1208
|
+
self.qrack_lib.AreFactorized.argtypes = [
|
|
1209
|
+
c_ulonglong,
|
|
1210
|
+
c_ulonglong,
|
|
1211
|
+
POINTER(c_ulonglong),
|
|
1212
|
+
c_ulonglong,
|
|
1213
|
+
POINTER(c_ulonglong),
|
|
1214
|
+
]
|
|
1215
|
+
|
|
1207
1216
|
self.qrack_lib.GetUnitaryFidelity.restype = c_double
|
|
1208
1217
|
self.qrack_lib.GetUnitaryFidelity.argtypes = [c_ulonglong]
|
|
1209
1218
|
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|