pyqrack-cpu 2.7.0__tar.gz → 2.7.1__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.7.0 → pyqrack_cpu-2.7.1}/Makefile +1 -1
- {pyqrack_cpu-2.7.0/pyqrack_cpu.egg-info → pyqrack_cpu-2.7.1}/PKG-INFO +1 -1
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_simulator.py +8 -7
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_system/qrack_system.py +1 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1/pyqrack_cpu.egg-info}/PKG-INFO +1 -1
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/setup.py +1 -1
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/LICENSE +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/MANIFEST.in +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/README.md +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyproject.toml +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/__init__.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/pauli.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_ace_backend.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/SOURCES.txt +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/dependency_links.txt +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/not-zip-safe +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/requires.txt +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/top_level.txt +0 -0
- {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/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 7e770033d64d40fc0169f82fc98de2d76b5f6448; cd ..
|
|
34
34
|
endif
|
|
35
35
|
mkdir -p qrack/build
|
|
36
36
|
ifeq ($(UNAME_S),Linux)
|
|
@@ -3161,7 +3161,7 @@ class QrackSimulator:
|
|
|
3161
3161
|
qi2: second qubit to be decomposed
|
|
3162
3162
|
|
|
3163
3163
|
Raises:
|
|
3164
|
-
|
|
3164
|
+
RuntimeError: QrackSimulator raised an exception.
|
|
3165
3165
|
|
|
3166
3166
|
Returns:
|
|
3167
3167
|
State of both the qubits.
|
|
@@ -3180,7 +3180,7 @@ class QrackSimulator:
|
|
|
3180
3180
|
t: allowed tolerance
|
|
3181
3181
|
|
|
3182
3182
|
Raises:
|
|
3183
|
-
|
|
3183
|
+
RuntimeError: QrackSimulator raised an exception.
|
|
3184
3184
|
|
|
3185
3185
|
Returns:
|
|
3186
3186
|
State of all the qubits.
|
|
@@ -3200,24 +3200,25 @@ class QrackSimulator:
|
|
|
3200
3200
|
qs: list of qubits to be decomposed
|
|
3201
3201
|
|
|
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):
|
|
3208
|
+
def are_factorized(self, a, b, fc = False):
|
|
3209
3209
|
"""Check whether bits in "a" are factorized from bits in "b"
|
|
3210
3210
|
|
|
3211
|
-
After flushing
|
|
3211
|
+
After optionally flushing buffers, check whether "a" set of qubits is factorized separate from "b" set of qubits
|
|
3212
3212
|
|
|
3213
3213
|
Args:
|
|
3214
3214
|
a: first list of qubits
|
|
3215
3215
|
b: second list of qubits
|
|
3216
|
+
fc: bool, whether to flush cache
|
|
3216
3217
|
|
|
3217
3218
|
Raises:
|
|
3218
|
-
|
|
3219
|
+
RuntimeError: QrackSimulator raised an exception.
|
|
3219
3220
|
"""
|
|
3220
|
-
result = Qrack.qrack_lib.AreFactorized(self.sid, len(a), QrackSimulator._ulonglong_byref(a), len(b), QrackSimulator._ulonglong_byref(b))
|
|
3221
|
+
result = Qrack.qrack_lib.AreFactorized(self.sid, len(a), QrackSimulator._ulonglong_byref(a), len(b), QrackSimulator._ulonglong_byref(b), fc)
|
|
3221
3222
|
self._throw_if_error()
|
|
3222
3223
|
|
|
3223
3224
|
return result
|
|
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
|