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.
Files changed (30) hide show
  1. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/Makefile +1 -1
  2. {pyqrack_cpu-2.7.0/pyqrack_cpu.egg-info → pyqrack_cpu-2.7.1}/PKG-INFO +1 -1
  3. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_simulator.py +8 -7
  4. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_system/qrack_system.py +1 -0
  5. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1/pyqrack_cpu.egg-info}/PKG-INFO +1 -1
  6. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/setup.py +1 -1
  7. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/LICENSE +0 -0
  8. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/MANIFEST.in +0 -0
  9. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/README.md +0 -0
  10. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyproject.toml +0 -0
  11. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/__init__.py +0 -0
  12. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/neuron_activation_fn.py +0 -0
  13. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/pauli.py +0 -0
  14. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_ace_backend.py +0 -0
  15. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_circuit.py +0 -0
  16. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
  17. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_neuron.py +0 -0
  18. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_neuron_torch_layer.py +0 -0
  19. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_stabilizer.py +0 -0
  20. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/qrack_system/__init__.py +0 -0
  21. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/quimb_circuit_type.py +0 -0
  22. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/stats/__init__.py +0 -0
  23. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/stats/load_quantized_data.py +0 -0
  24. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack/stats/quantize_by_range.py +0 -0
  25. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/SOURCES.txt +0 -0
  26. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/dependency_links.txt +0 -0
  27. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/not-zip-safe +0 -0
  28. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/requires.txt +0 -0
  29. {pyqrack_cpu-2.7.0 → pyqrack_cpu-2.7.1}/pyqrack_cpu.egg-info/top_level.txt +0 -0
  30. {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 f407a468fa81ccb47e1a8ace3514ec689d03de4c; cd ..
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)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu
3
- Version: 2.7.0
3
+ Version: 2.7.1
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -3161,7 +3161,7 @@ class QrackSimulator:
3161
3161
  qi2: second qubit to be decomposed
3162
3162
 
3163
3163
  Raises:
3164
- Runtimeerror: QrackSimulator raised an exception.
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
- Runtimeerror: QrackSimulator raised an exception.
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
- Runtimeerror: QrackSimulator raised an exception.
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 all buffers, check whether "a" set of qubits is factorized separate from "b" set of qubits
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
- Runtimeerror: QrackSimulator raised an exception.
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
@@ -1211,6 +1211,7 @@ class QrackSystem:
1211
1211
  POINTER(c_ulonglong),
1212
1212
  c_ulonglong,
1213
1213
  POINTER(c_ulonglong),
1214
+ c_bool,
1214
1215
  ]
1215
1216
 
1216
1217
  self.qrack_lib.GetUnitaryFidelity.restype = c_double
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu
3
- Version: 2.7.0
3
+ Version: 2.7.1
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.7.0"
10
+ VERSION = "2.7.1"
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')
File without changes
File without changes
File without changes
File without changes
File without changes