pyqrack-cpu-complex128 2.29.1__tar.gz → 2.29.2__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_cpu_complex128-2.29.1/pyqrack_cpu_complex128.egg-info → pyqrack_cpu_complex128-2.29.2}/PKG-INFO +1 -1
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_ace_backend.py +50 -6
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2/pyqrack_cpu_complex128.egg-info}/PKG-INFO +1 -1
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/setup.py +1 -1
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/LICENSE +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/MANIFEST.in +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/Makefile +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/README.md +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyproject.toml +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/__init__.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/pauli.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_ace_mps_backend.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack_cpu_complex128.egg-info/SOURCES.txt +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack_cpu_complex128.egg-info/dependency_links.txt +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack_cpu_complex128.egg-info/not-zip-safe +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack_cpu_complex128.egg-info/requires.txt +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack_cpu_complex128.egg-info/top_level.txt +0 -0
- {pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/setup.cfg +0 -0
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_ace_backend.py
RENAMED
|
@@ -2209,14 +2209,58 @@ class QrackAceBackend:
|
|
|
2209
2209
|
self.t(c1)
|
|
2210
2210
|
self.adjt(c2)
|
|
2211
2211
|
self.cx(c1, c2)
|
|
2212
|
-
else:
|
|
2213
|
-
self.correct(c1)
|
|
2214
|
-
self.correct(c2)
|
|
2215
2212
|
|
|
2216
|
-
|
|
2217
|
-
|
|
2213
|
+
return
|
|
2214
|
+
|
|
2215
|
+
anc_and = None
|
|
2216
|
+
if self.is_error_detection and not self._in_gadget_capture and ((len(hqt) > 1) or (len(hq1) > 1) or (len(hq2) > 1)):
|
|
2217
|
+
found = False
|
|
2218
|
+
anc_sim = hq1[0][0]
|
|
2219
|
+
t_sims = {y[0] for y in hqt if y[0] >= 0}
|
|
2220
|
+
for x in hq1:
|
|
2221
|
+
if (x[0] < 0) or (x[0] not in t_sims):
|
|
2222
|
+
continue
|
|
2223
|
+
anc_sim = x[0]
|
|
2224
|
+
for y in hq2:
|
|
2225
|
+
if (y[0] < 0) or (y[0] not in t_sims):
|
|
2226
|
+
continue
|
|
2227
|
+
if anc_sim == y[0]:
|
|
2228
|
+
found = True
|
|
2229
|
+
break
|
|
2230
|
+
if found:
|
|
2231
|
+
break
|
|
2232
|
+
anc_and = self.detect_ancilla_lq[anc_sim]
|
|
2233
|
+
self.cx(t, anc_and)
|
|
2234
|
+
c1_idx = next((r[1] for r in hq1 if r[0] == anc_sim), None)
|
|
2235
|
+
c2_idx = next((r[1] for r in hq2 if r[0] == anc_sim), None)
|
|
2236
|
+
if (c1_idx is not None) and (c2_idx is not None):
|
|
2237
|
+
_, anc_and_idx = self.qubits[anc_and][0]
|
|
2238
|
+
self.sim[anc_sim].mcx([c1_idx, c2_idx], anc_and_idx)
|
|
2239
|
+
else:
|
|
2240
|
+
self._in_gadget_capture = True
|
|
2241
|
+
self.ccx(c1, c2, anc_and)
|
|
2242
|
+
self._in_gadget_capture = False
|
|
2218
2243
|
|
|
2219
|
-
|
|
2244
|
+
self.correct(c1)
|
|
2245
|
+
self.correct(c2)
|
|
2246
|
+
|
|
2247
|
+
for (b1, b2, bt) in witnesses:
|
|
2248
|
+
self.sim[b1[0]].mcx([b1[1], b2[1]], bt[1])
|
|
2249
|
+
|
|
2250
|
+
self.correct(t)
|
|
2251
|
+
|
|
2252
|
+
if anc_and is not None:
|
|
2253
|
+
self.cx(t, anc_and)
|
|
2254
|
+
anc_sim, anc_idx = self.qubits[anc_and][0]
|
|
2255
|
+
p = self.sim[anc_sim].prob(anc_idx)
|
|
2256
|
+
p = 1.0 - p
|
|
2257
|
+
if self._ps_epsilon >= p:
|
|
2258
|
+
b = self.m(anc_and)
|
|
2259
|
+
else:
|
|
2260
|
+
b = self.force_m(anc_and, False)
|
|
2261
|
+
if b:
|
|
2262
|
+
self.x(anc_and)
|
|
2263
|
+
self.x(t)
|
|
2220
2264
|
|
|
2221
2265
|
def ccz(self, c1, c2, t):
|
|
2222
2266
|
self.h(t)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/neuron_activation_fn.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_ace_mps_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_neuron_torch_layer.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_system/__init__.py
RENAMED
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/qrack_system/qrack_system.py
RENAMED
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/quimb_circuit_type.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/stats/load_quantized_data.py
RENAMED
|
File without changes
|
{pyqrack_cpu_complex128-2.29.1 → pyqrack_cpu_complex128-2.29.2}/pyqrack/stats/quantize_by_range.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|