pyqrack-cuda 1.44.17__tar.gz → 1.44.18__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_cuda-1.44.17/pyqrack_cuda.egg-info → pyqrack_cuda-1.44.18}/PKG-INFO +1 -1
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18/pyqrack_cuda.egg-info}/PKG-INFO +1 -1
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/setup.py +1 -1
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/LICENSE +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/MANIFEST.in +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/Makefile +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/README.md +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyproject.toml +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/__init__.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/pauli.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_ace_backend.py +7 -7
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack_cuda.egg-info/SOURCES.txt +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack_cuda.egg-info/dependency_links.txt +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack_cuda.egg-info/not-zip-safe +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack_cuda.egg-info/requires.txt +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/pyqrack_cuda.egg-info/top_level.txt +0 -0
- {pyqrack_cuda-1.44.17 → pyqrack_cuda-1.44.18}/setup.cfg +0 -0
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -193,10 +193,6 @@ class QrackAceBackend:
|
|
193
193
|
|
194
194
|
|
195
195
|
def u(self, th, ph, lm, lq):
|
196
|
-
hq = self._unpack(lq)
|
197
|
-
self._decode(hq)
|
198
|
-
self.sim.u(hq[0], th, ph, lm)
|
199
|
-
self._encode(hq)
|
200
196
|
while ph > math.pi:
|
201
197
|
ph -= 2 * math.pi
|
202
198
|
while ph <= -math.pi:
|
@@ -207,14 +203,18 @@ class QrackAceBackend:
|
|
207
203
|
lm += 2 * math.pi
|
208
204
|
if not math.isclose(ph, -lm) and not math.isclose(abs(ph), math.pi / 2):
|
209
205
|
self._correct_if_like_h(th, lq)
|
206
|
+
hq = self._unpack(lq)
|
207
|
+
self._decode(hq)
|
208
|
+
self.sim.u(hq[0], th, ph, lm)
|
209
|
+
self._encode(hq)
|
210
210
|
|
211
211
|
def r(self, p, th, lq):
|
212
|
+
if p == Pauli.PauliY:
|
213
|
+
self._correct_if_like_h(th, lq)
|
212
214
|
hq = self._unpack(lq)
|
213
215
|
self._decode(hq)
|
214
216
|
self.sim.r(p, th, hq[0])
|
215
217
|
self._encode(hq)
|
216
|
-
if p == Pauli.PauliY:
|
217
|
-
self._correct_if_like_h(th, lq)
|
218
218
|
|
219
219
|
def s(self, lq):
|
220
220
|
hq = self._unpack(lq)
|
@@ -247,11 +247,11 @@ class QrackAceBackend:
|
|
247
247
|
self._encode(hq)
|
248
248
|
|
249
249
|
def h(self, lq):
|
250
|
+
self._correct(lq)
|
250
251
|
hq = self._unpack(lq)
|
251
252
|
self._decode(hq)
|
252
253
|
self.sim.h(hq[0])
|
253
254
|
self._encode(hq)
|
254
|
-
self._correct(lq)
|
255
255
|
|
256
256
|
def t(self, lq):
|
257
257
|
hq = self._unpack(lq)
|
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
|