pyqrack-cpu-complex128 2.30.4__tar.gz → 2.30.6__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.
Files changed (32) hide show
  1. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/Makefile +1 -1
  2. {pyqrack_cpu_complex128-2.30.4/pyqrack_cpu_complex128.egg-info → pyqrack_cpu_complex128-2.30.6}/PKG-INFO +1 -1
  3. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_bridge.py +11 -2
  4. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_system/qrack_system.py +4 -2
  5. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6/pyqrack_cpu_complex128.egg-info}/PKG-INFO +1 -1
  6. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/setup.py +1 -1
  7. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/LICENSE +0 -0
  8. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/MANIFEST.in +0 -0
  9. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/README.md +0 -0
  10. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyproject.toml +0 -0
  11. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/__init__.py +0 -0
  12. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/neuron_activation_fn.py +0 -0
  13. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/pauli.py +0 -0
  14. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_ace_backend.py +0 -0
  15. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_ace_mps_backend.py +0 -0
  16. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_circuit.py +0 -0
  17. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
  18. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_neuron.py +0 -0
  19. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_neuron_torch_layer.py +0 -0
  20. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_simulator.py +0 -0
  21. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_stabilizer.py +0 -0
  22. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/qrack_system/__init__.py +0 -0
  23. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/quimb_circuit_type.py +0 -0
  24. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/stats/__init__.py +0 -0
  25. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/stats/load_quantized_data.py +0 -0
  26. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack/stats/quantize_by_range.py +0 -0
  27. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack_cpu_complex128.egg-info/SOURCES.txt +0 -0
  28. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack_cpu_complex128.egg-info/dependency_links.txt +0 -0
  29. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack_cpu_complex128.egg-info/not-zip-safe +0 -0
  30. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack_cpu_complex128.egg-info/requires.txt +0 -0
  31. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/pyqrack_cpu_complex128.egg-info/top_level.txt +0 -0
  32. {pyqrack_cpu_complex128-2.30.4 → pyqrack_cpu_complex128-2.30.6}/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 2fda2a7cebcff4c6e0a2c500380a30cf0e11c6ae; cd ..
33
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout 4e51e068abbaf5eb20455d560c24f02ddb2ed1e4; cd ..
34
34
  endif
35
35
  mkdir -p qrack/build
36
36
  ifeq ($(UNAME_S),Linux)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu-complex128
3
- Version: 2.30.4
3
+ Version: 2.30.6
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -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; gates between patches are teleported through fresh bond pairs and
12
- # each cut is recompressed to at most 2^max_bonds Schmidt components (greedy, or Born-rule groups).
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)."""
@@ -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
- getattr(self.qrack_lib, fn).restype = c_ulonglong
1484
- getattr(self.qrack_lib, fn).argtypes = [c_ulonglong]
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)]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu-complex128
3
- Version: 2.30.4
3
+ Version: 2.30.6
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -7,7 +7,7 @@ from setuptools import setup
7
7
  from setuptools.command.build_py import build_py
8
8
 
9
9
 
10
- VERSION = "2.30.4"
10
+ VERSION = "2.30.6"
11
11
 
12
12
  # Read long description from README.
13
13
  README_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'README.md')