pyqrack-complex128 2.25.1__tar.gz → 2.25.3__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.25.1 → pyqrack_complex128-2.25.3}/Makefile +1 -1
- {pyqrack_complex128-2.25.1/pyqrack_complex128.egg-info → pyqrack_complex128-2.25.3}/PKG-INFO +1 -1
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_ace_backend.py +54 -1
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3/pyqrack_complex128.egg-info}/PKG-INFO +1 -1
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/setup.py +1 -1
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/LICENSE +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/MANIFEST.in +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/README.md +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyproject.toml +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/__init__.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/neuron_activation_fn.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/pauli.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_circuit.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_near_clifford_qec_backend.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_neuron.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_neuron_torch_layer.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_simulator.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_stabilizer.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_system/__init__.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_system/qrack_system.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/quimb_circuit_type.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/stats/__init__.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/stats/load_quantized_data.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/stats/quantize_by_range.py +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/SOURCES.txt +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/dependency_links.txt +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/not-zip-safe +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/requires.txt +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/top_level.txt +0 -0
- {pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/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 b140695ddde41ecd9099bad08e9cc0a32a46a9f9; cd ..
|
|
34
34
|
endif
|
|
35
35
|
mkdir -p qrack/build
|
|
36
36
|
ifeq ($(UNAME_S),Linux)
|
|
@@ -3081,7 +3081,60 @@ class QrackAceBackend:
|
|
|
3081
3081
|
if a != b:
|
|
3082
3082
|
coupling_map.add((a, b))
|
|
3083
3083
|
|
|
3084
|
-
|
|
3084
|
+
# BUGFIX (per Dan): distant boundary-to-boundary couplings -- two
|
|
3085
|
+
# boundary qubits sharing a simulator id even when they're
|
|
3086
|
+
# nowhere near each other. Tried re-deriving adjacency from
|
|
3087
|
+
# sim_id arithmetic several ways; none held up, because sim_id
|
|
3088
|
+
# doesn't decompose cleanly back into a geometric position.
|
|
3089
|
+
# Dropping that entirely: the patch grid is a plain, regular
|
|
3090
|
+
# series of rectangles by construction, and that geometry is
|
|
3091
|
+
# already sitting in self._is_row_long_range /
|
|
3092
|
+
# self._is_col_long_range (True = bulk, False = boundary). Two
|
|
3093
|
+
# boundary qubits are kept coupled only when they lie on the
|
|
3094
|
+
# SAME boundary row or column AND bound (or lie within) one
|
|
3095
|
+
# single contiguous bulk run along it -- i.e. no OTHER boundary
|
|
3096
|
+
# crossing lies strictly between them -- which is exactly "the
|
|
3097
|
+
# same single side of one rectangular patch." A corner
|
|
3098
|
+
# naturally keeps this relationship along both its own row and
|
|
3099
|
+
# its own column (its real spokes to the nearest patch in each
|
|
3100
|
+
# of the four directions), while corner-to-distant-corner (or
|
|
3101
|
+
# any other boundary-to-boundary pair separated by an
|
|
3102
|
+
# intervening boundary, or lying on neither a shared row nor a
|
|
3103
|
+
# shared column at all) correctly drops out. Bulk-involved pairs
|
|
3104
|
+
# are untouched -- a bulk qubit's single simulator membership
|
|
3105
|
+
# was never ambiguous.
|
|
3106
|
+
def is_boundary(lq):
|
|
3107
|
+
return len(self._qubits[lq]) > 1
|
|
3108
|
+
|
|
3109
|
+
def same_single_side(idx_a, idx_b, long_range_arr, length):
|
|
3110
|
+
if idx_a == idx_b:
|
|
3111
|
+
return True
|
|
3112
|
+
lo, hi = min(idx_a, idx_b), max(idx_a, idx_b)
|
|
3113
|
+
if all(long_range_arr[i] for i in range(lo + 1, hi)):
|
|
3114
|
+
return True
|
|
3115
|
+
if self.is_torus:
|
|
3116
|
+
wrapped = list(range(hi + 1, length)) + list(range(0, lo))
|
|
3117
|
+
if all(long_range_arr[i] for i in wrapped):
|
|
3118
|
+
return True
|
|
3119
|
+
return False
|
|
3120
|
+
|
|
3121
|
+
filtered_map = set()
|
|
3122
|
+
for a, b in coupling_map:
|
|
3123
|
+
if is_boundary(a) and is_boundary(b):
|
|
3124
|
+
a_row, a_col = a // self._row_length, a % self._row_length
|
|
3125
|
+
b_row, b_col = b // self._row_length, b % self._row_length
|
|
3126
|
+
keep = False
|
|
3127
|
+
if (a_row == b_row) and (not self._is_row_long_range[a_row]):
|
|
3128
|
+
if same_single_side(a_col, b_col, self._is_col_long_range, self._row_length):
|
|
3129
|
+
keep = True
|
|
3130
|
+
if (a_col == b_col) and (not self._is_col_long_range[a_col]):
|
|
3131
|
+
if same_single_side(a_row, b_row, self._is_row_long_range, self._col_length):
|
|
3132
|
+
keep = True
|
|
3133
|
+
if not keep:
|
|
3134
|
+
continue
|
|
3135
|
+
filtered_map.add((a, b))
|
|
3136
|
+
|
|
3137
|
+
self._coupling_map = sorted(filtered_map)
|
|
3085
3138
|
|
|
3086
3139
|
return self._coupling_map
|
|
3087
3140
|
|
|
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.25.1 → pyqrack_complex128-2.25.3}/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
|
{pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/qrack_system/qrack_system.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack/stats/load_quantized_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/not-zip-safe
RENAMED
|
File without changes
|
{pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/requires.txt
RENAMED
|
File without changes
|
{pyqrack_complex128-2.25.1 → pyqrack_complex128-2.25.3}/pyqrack_complex128.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|