pyqrack-cuda-complex128 2.2.2__tar.gz → 2.2.3__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 (30) hide show
  1. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/Makefile +1 -1
  2. {pyqrack_cuda_complex128-2.2.2/pyqrack_cuda_complex128.egg-info → pyqrack_cuda_complex128-2.2.3}/PKG-INFO +1 -1
  3. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_ace_backend.py +3 -3
  4. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3/pyqrack_cuda_complex128.egg-info}/PKG-INFO +1 -1
  5. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/setup.py +1 -1
  6. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/LICENSE +0 -0
  7. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/MANIFEST.in +0 -0
  8. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/README.md +0 -0
  9. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyproject.toml +0 -0
  10. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/__init__.py +0 -0
  11. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/neuron_activation_fn.py +0 -0
  12. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/pauli.py +0 -0
  13. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_circuit.py +0 -0
  14. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
  15. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_neuron.py +0 -0
  16. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_neuron_torch_layer.py +0 -0
  17. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_simulator.py +0 -0
  18. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_stabilizer.py +0 -0
  19. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_system/__init__.py +0 -0
  20. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/qrack_system/qrack_system.py +0 -0
  21. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/quimb_circuit_type.py +0 -0
  22. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/stats/__init__.py +0 -0
  23. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/stats/load_quantized_data.py +0 -0
  24. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack/stats/quantize_by_range.py +0 -0
  25. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack_cuda_complex128.egg-info/SOURCES.txt +0 -0
  26. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack_cuda_complex128.egg-info/dependency_links.txt +0 -0
  27. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack_cuda_complex128.egg-info/not-zip-safe +0 -0
  28. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack_cuda_complex128.egg-info/requires.txt +0 -0
  29. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/pyqrack_cuda_complex128.egg-info/top_level.txt +0 -0
  30. {pyqrack_cuda_complex128-2.2.2 → pyqrack_cuda_complex128-2.2.3}/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 ccb9cca0726e48c598696b51a66fb984ff8ab0f1; cd ..
33
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout 01dbf96198e4df51cebcf23e506571cee0927244; 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-cuda-complex128
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -597,7 +597,7 @@ class QrackAceBackend:
597
597
  eff_prob = (prms + (1 - qrms)) / 2
598
598
  result = (
599
599
  (random.random() < 0.5)
600
- if (eff_prob - 0.5) == 0.0
600
+ if abs(eff_prob - 0.5) <= self._epsilon
601
601
  else (eff_prob > 0.5)
602
602
  )
603
603
  syndrome = (
@@ -651,7 +651,7 @@ class QrackAceBackend:
651
651
  eff_prob = (prms + (1 - qrms)) / 2
652
652
  result = (
653
653
  (random.random() < 0.5)
654
- if (eff_prob - 0.5) == 0.0
654
+ if abs(eff_prob - 0.5) <= self._epsilon
655
655
  else (eff_prob > 0.5)
656
656
  )
657
657
  syndrome = [1 - p[0], 1 - p[1], 1 - p[2]] if result else [p[0], p[1], p[2]]
@@ -1100,7 +1100,7 @@ class QrackAceBackend:
1100
1100
  return self.sim[b[0]].m(b[1])
1101
1101
 
1102
1102
  p = self.prob(lq)
1103
- result = ((p + self._epsilon) >= 1) or (random.random() < p)
1103
+ result = ((p + self._epsilon) >= 1.0) or (random.random() < p)
1104
1104
 
1105
1105
  qb, lhv = QrackAceBackend._get_qb_lhv_indices(hq)
1106
1106
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cuda-complex128
3
- Version: 2.2.2
3
+ Version: 2.2.3
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.2.2"
10
+ VERSION = "2.2.3"
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')