pyqrack-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.
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/Makefile +1 -1
- {pyqrack_complex128-2.0.2/pyqrack_complex128.egg-info → pyqrack_complex128-2.1.1}/PKG-INFO +1 -1
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_ace_backend.py +5 -7
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_simulator.py +2 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1/pyqrack_complex128.egg-info}/PKG-INFO +1 -1
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/setup.py +1 -1
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/LICENSE +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/MANIFEST.in +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/README.md +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyproject.toml +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/__init__.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/pauli.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/SOURCES.txt +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/dependency_links.txt +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/not-zip-safe +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/requires.txt +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/top_level.txt +0 -0
- {pyqrack_complex128-2.0.2 → pyqrack_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
|
|
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)
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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.0.2 → pyqrack_complex128-2.1.1}/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
|
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/requires.txt
RENAMED
|
File without changes
|
{pyqrack_complex128-2.0.2 → pyqrack_complex128-2.1.1}/pyqrack_complex128.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|