pyqrack-cpu 1.54.3__tar.gz → 1.54.4__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.
Potentially problematic release.
This version of pyqrack-cpu might be problematic. Click here for more details.
- {pyqrack_cpu-1.54.3/pyqrack_cpu.egg-info → pyqrack_cpu-1.54.4}/PKG-INFO +1 -1
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_ace_backend.py +4 -4
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4/pyqrack_cpu.egg-info}/PKG-INFO +1 -1
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/setup.py +1 -1
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/LICENSE +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/MANIFEST.in +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/Makefile +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/README.md +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyproject.toml +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/__init__.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/pauli.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack_cpu.egg-info/SOURCES.txt +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack_cpu.egg-info/dependency_links.txt +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack_cpu.egg-info/not-zip-safe +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack_cpu.egg-info/requires.txt +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/pyqrack_cpu.egg-info/top_level.txt +0 -0
- {pyqrack_cpu-1.54.3 → pyqrack_cpu-1.54.4}/setup.cfg +0 -0
|
@@ -133,7 +133,7 @@ def _cpauli_lhv(prob, targ, axis, anti, theta=math.pi):
|
|
|
133
133
|
targ.rx(effective_theta)
|
|
134
134
|
elif axis == Pauli.PauliY:
|
|
135
135
|
targ.ry(effective_theta)
|
|
136
|
-
elif axis ==
|
|
136
|
+
elif axis == Pauli.PauliZ:
|
|
137
137
|
targ.rz(effective_theta)
|
|
138
138
|
|
|
139
139
|
class QrackAceBackend:
|
|
@@ -288,13 +288,13 @@ class QrackAceBackend:
|
|
|
288
288
|
|
|
289
289
|
def _qec_s(self, t):
|
|
290
290
|
if isinstance(t, tuple):
|
|
291
|
-
self.sim[
|
|
291
|
+
self.sim[t[0]].s(t[1])
|
|
292
292
|
else:
|
|
293
293
|
t.s()
|
|
294
294
|
|
|
295
295
|
def _qec_adjs(self, t):
|
|
296
296
|
if isinstance(t, tuple):
|
|
297
|
-
self.sim[
|
|
297
|
+
self.sim[t[0]].adjs(t[1])
|
|
298
298
|
else:
|
|
299
299
|
t.adjs()
|
|
300
300
|
|
|
@@ -654,7 +654,7 @@ class QrackAceBackend:
|
|
|
654
654
|
if pauli != Pauli.PauliZ:
|
|
655
655
|
self._correct(lq2, False)
|
|
656
656
|
if pauli != Pauli.PauliX:
|
|
657
|
-
self.
|
|
657
|
+
self._correct(lq2, True)
|
|
658
658
|
|
|
659
659
|
def cx(self, lq1, lq2):
|
|
660
660
|
self._cpauli(lq1, lq2, False, Pauli.PauliX)
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|