pyqrack-cpu-complex128 2.0.2__tar.gz → 2.1.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_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/Makefile +1 -1
  2. {pyqrack_cpu_complex128-2.0.2/pyqrack_cpu_complex128.egg-info → pyqrack_cpu_complex128-2.1.1}/PKG-INFO +1 -1
  3. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_ace_backend.py +5 -7
  4. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_simulator.py +2 -0
  5. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1/pyqrack_cpu_complex128.egg-info}/PKG-INFO +1 -1
  6. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/setup.py +1 -1
  7. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/LICENSE +0 -0
  8. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/MANIFEST.in +0 -0
  9. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/README.md +0 -0
  10. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyproject.toml +0 -0
  11. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/__init__.py +0 -0
  12. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/neuron_activation_fn.py +0 -0
  13. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/pauli.py +0 -0
  14. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_circuit.py +0 -0
  15. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
  16. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_neuron.py +0 -0
  17. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_neuron_torch_layer.py +0 -0
  18. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_stabilizer.py +0 -0
  19. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_system/__init__.py +0 -0
  20. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/qrack_system/qrack_system.py +0 -0
  21. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/quimb_circuit_type.py +0 -0
  22. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/stats/__init__.py +0 -0
  23. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/stats/load_quantized_data.py +0 -0
  24. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack/stats/quantize_by_range.py +0 -0
  25. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack_cpu_complex128.egg-info/SOURCES.txt +0 -0
  26. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack_cpu_complex128.egg-info/dependency_links.txt +0 -0
  27. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack_cpu_complex128.egg-info/not-zip-safe +0 -0
  28. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack_cpu_complex128.egg-info/requires.txt +0 -0
  29. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.1}/pyqrack_cpu_complex128.egg-info/top_level.txt +0 -0
  30. {pyqrack_cpu_complex128-2.0.2 → pyqrack_cpu_complex128-2.1.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 37c6b75d1dec09b8f7e18ccf35b12de5633fce24; cd ..
33
+ git clone https://github.com/unitaryfund/qrack.git; cd qrack; git checkout 7df813ab81978d06decac14b1744b19a9b0cadee; 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.0.2
3
+ Version: 2.1.1
4
4
  Summary: pyqrack - Pure Python vm6502q/qrack Wrapper
5
5
  Home-page: https://github.com/vm6502q/pyqrack
6
6
  Author: Daniel Strano
@@ -2,6 +2,8 @@
2
2
  #
3
3
  # Use of this source code is governed by an MIT-style license that can be
4
4
  # found in the LICENSE file or at https://opensource.org/licenses/MIT.
5
+ #
6
+ # Produced with input from (OpenAI) ChatGPT and (Anthropic) Claude
5
7
  import math
6
8
  import os
7
9
  import random
@@ -672,8 +674,7 @@ class QrackAceBackend:
672
674
  b = hq[lhv]
673
675
  b.u(th, ph, lm)
674
676
 
675
- self._correct(lq, False, True)
676
- self._correct(lq, True, False)
677
+ # Correction deferred to next 2-qubit gate (_cpauli calls _correct)
677
678
 
678
679
  def r(self, p, th, lq):
679
680
  hq = self._unpack(lq)
@@ -696,10 +697,7 @@ class QrackAceBackend:
696
697
  elif p == Pauli.PauliZ:
697
698
  b.rz(th)
698
699
 
699
- if p != Pauli.PauliZ:
700
- self._correct(lq, False, p != Pauli.PauliX)
701
- if p != Pauli.PauliX:
702
- self._correct(lq, True)
700
+ # Correction deferred to next 2-qubit gate (_cpauli calls _correct)
703
701
 
704
702
  def h(self, lq):
705
703
  hq = self._unpack(lq)
@@ -719,7 +717,7 @@ class QrackAceBackend:
719
717
  b = hq[lhv]
720
718
  b.h()
721
719
 
722
- self._correct(lq)
720
+ # Correction deferred to next 2-qubit gate (_cpauli calls _correct)
723
721
 
724
722
  def s(self, lq):
725
723
  hq = self._unpack(lq)
@@ -1750,6 +1750,7 @@ class QrackSimulator:
1750
1750
  the length `2 ** len(qi)`.
1751
1751
 
1752
1752
  Args:
1753
+ s: qubit register for carry bit
1753
1754
  qi: qubit register for index
1754
1755
  qv: qubit register for value
1755
1756
  t: list of values
@@ -1781,6 +1782,7 @@ class QrackSimulator:
1781
1782
  the length `2 ** len(qi)`
1782
1783
 
1783
1784
  Args:
1785
+ s: qubit register for carry bit
1784
1786
  qi: qubit register for index
1785
1787
  qv: qubit register for value
1786
1788
  t: list of values
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyqrack-cpu-complex128
3
- Version: 2.0.2
3
+ Version: 2.1.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.0.2"
10
+ VERSION = "2.1.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')