Commit e797acc
committed
Land wave-B: belief-matching fix, v2 licence tokens, E/S/C wave work
Built on top of origin/main rather than force-pushed. The local snapshot repo
shares NO merge base with this history (156 commits, `git diff` reports "no
merge base"), so a force-push would have destroyed all of it. These changes are
applied as an ordinary commit on top instead.
fix(belief-matching): decode returned an empty array for EVERY syndrome.
`from_numpy_h` built `hyper_obs = zeros((0, nH))` and `decode` returns
`hyper_obs @ hard`, so a decoder constructed from a raw parity-check matrix was
silently useless and reported no error. `edge_obs` had the same defect, breaking
the matching fallback for exactly the syndromes BP found hardest. Both now carry
qubit incidence, so decode returns a length-n_qubits correction. Verified
faithful on all 16 repetition-code d=5 syndromes.
fix(license): malformed tokens raised instead of returning False. The
`except RuntimeError` clauses caught neither binascii.Error nor
UnicodeDecodeError (both ValueError subclasses), so garbage input crashed the
caller. Now catches (InvalidSignature, ValueError, TypeError).
feat(license): v2 tokens carrying tier + expiry inside the signature. Legacy
tokens sign only `receipt_id:email`, so a 60-day evaluation was
cryptographically identical to a perpetual licence. Signature is verified BEFORE
claims are parsed. Legacy 2- and 3-part tokens still verify; v2 fails closed on
older installs.
fix(stripe): stop pinning payment_method_types=["card"], which disabled Link,
wallets and local payment methods.
Lands the E1-E6 / S1 / S5 / C1-C6 work that K3dev.md recorded as complete but
which had never been committed (ler.py, bench.py, codes.py CSS logicals, the DEM
path, and their test modules).
Licensing notice now reaches non-interactive runs -- scripts and services, where
commercial users actually are; previously only a REPL saw it. One stderr message
at import, never repeats, never gates functionality, suppressed by
QECTOR_SILENT=1 and silent when licensed.
Docs: five tuning environment variables documented with which ones change
RESULTS rather than only throughput; docs/RELEASING.md records why an sdist must
never be published (.gitignore excludes src/, maturin sdist honours git, so the
tarball ships Cargo.toml with no .rs sources and cannot build).
Gates: ruff check clean; ruff format clean (172 files); 107 passed across the
licence/stripe/comprehensive suites on this tree; full local suite 1237 passed,
1 skipped, 0 failed; cargo test 203 passed; clippy 0 warnings.1 parent 89c8ee4 commit e797acc
216 files changed
Lines changed: 17762 additions & 40765 deletions
File tree
- benchmark_results
- docs
- python
- qector_decoder_v3
- qector
- tests
- scripts
- src
- test-results
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | | - | |
72 | | - | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
| |||
95 | 101 | | |
96 | 102 | | |
97 | 103 | | |
| 104 | + | |
| 105 | + | |
98 | 106 | | |
99 | 107 | | |
100 | 108 | | |
| |||
147 | 155 | | |
148 | 156 | | |
149 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
150 | 163 | | |
151 | 164 | | |
152 | 165 | | |
| |||
157 | 170 | | |
158 | 171 | | |
159 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
160 | 180 | | |
161 | 181 | | |
162 | 182 | | |
| |||
174 | 194 | | |
175 | 195 | | |
176 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
10 | 38 | | |
11 | 39 | | |
12 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
13 | 57 | | |
14 | 58 | | |
15 | 59 | | |
| |||
0 commit comments