pyqrack-complex128 2.30.4__tar.gz → 2.30.5__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_complex128-2.30.4 → pyqrack_complex128-2.30.5}/Makefile +1 -1
- {pyqrack_complex128-2.30.4/pyqrack_complex128.egg-info → pyqrack_complex128-2.30.5}/PKG-INFO +1 -1
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_bridge.py +11 -2
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_system/qrack_system.py +4 -2
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5/pyqrack_complex128.egg-info}/PKG-INFO +1 -1
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/setup.py +1 -1
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/LICENSE +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/MANIFEST.in +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/README.md +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyproject.toml +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/__init__.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/pauli.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_ace_backend.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_ace_mps_backend.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/SOURCES.txt +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/dependency_links.txt +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/not-zip-safe +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/requires.txt +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/top_level.txt +0 -0
- {pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/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 db84c82095c92cb02b1bc005133c6ee09f1d11cb; cd ..
|
|
34
34
|
endif
|
|
35
35
|
mkdir -p qrack/build
|
|
36
36
|
ifeq ($(UNAME_S),Linux)
|
|
@@ -8,8 +8,10 @@
|
|
|
8
8
|
# qubit_count % patches blocks get one more), each simulated exactly by its own Qrack engine. Patches
|
|
9
9
|
# sit on a 1D chain (a ring with wrap=True and 3+ patches) and share "bond" qubits only with their
|
|
10
10
|
# nearest neighbours: the state is a matrix-product state whose sites are whole state-vector simulators.
|
|
11
|
-
# Gates within a patch run natively
|
|
12
|
-
#
|
|
11
|
+
# Gates within a patch run natively. A gate between patches is split exactly into at most 4 products of
|
|
12
|
+
# one-qubit operators and applied to the patch tensors on the host, growing the bonds there; each cut is
|
|
13
|
+
# then recompressed to at most 2^max_bonds Schmidt components (greedy, or Born-rule groups) before being
|
|
14
|
+
# written back, so patch engines never need ancilla qubits beyond their bonds.
|
|
13
15
|
#
|
|
14
16
|
# Same API as the pure-Python reference implementation (pyqrack.QrackPyBridge), plus pauli_expectation().
|
|
15
17
|
# If the loaded Qrack library predates QBridge, pyqrack.QrackBridge is QrackPyBridge instead.
|
|
@@ -168,6 +170,13 @@ class QrackBridge:
|
|
|
168
170
|
def peak_bonds(self):
|
|
169
171
|
return Qrack.qrack_lib.qbridge_get_peak_bonds(self.bid)
|
|
170
172
|
|
|
173
|
+
@property
|
|
174
|
+
def peak_patch_qubits(self):
|
|
175
|
+
"""Widest patch engine allocated so far (data + bond qubits). Bridged gates grow bonds on the
|
|
176
|
+
host, so this stays at most data qubits + max_bonds per cut, except when an in-patch gate
|
|
177
|
+
lands inside an open deferred() block or lazy buffer."""
|
|
178
|
+
return Qrack.qrack_lib.qbridge_get_peak_patch_qubits(self.bid)
|
|
179
|
+
|
|
171
180
|
@property
|
|
172
181
|
def bond(self):
|
|
173
182
|
"""Live bond qubits per cut (cut c joins patch c to patch c + 1, mod P on a ring)."""
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_system/qrack_system.py
RENAMED
|
@@ -1478,9 +1478,11 @@ class QrackSystem:
|
|
|
1478
1478
|
"qbridge_get_truncations",
|
|
1479
1479
|
"qbridge_get_flushes",
|
|
1480
1480
|
"qbridge_get_peak_bonds",
|
|
1481
|
+
"qbridge_get_peak_patch_qubits",
|
|
1481
1482
|
"qbridge_get_cut_count",
|
|
1482
1483
|
):
|
|
1483
|
-
|
|
1484
|
-
|
|
1484
|
+
if hasattr(self.qrack_lib, fn):
|
|
1485
|
+
getattr(self.qrack_lib, fn).restype = c_ulonglong
|
|
1486
|
+
getattr(self.qrack_lib, fn).argtypes = [c_ulonglong]
|
|
1485
1487
|
self.qrack_lib.qbridge_get_bonds.restype = None
|
|
1486
1488
|
self.qrack_lib.qbridge_get_bonds.argtypes = [c_ulonglong, POINTER(c_ulonglong)]
|
|
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
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/qrack_near_clifford_qec_backend.py
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
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack/stats/load_quantized_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/requires.txt
RENAMED
|
File without changes
|
{pyqrack_complex128-2.30.4 → pyqrack_complex128-2.30.5}/pyqrack_complex128.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|