Commit ae3716b
committed
Rebase realtime_decoding_demo onto the refactored surface_code-1 app
Replace the example source with the surface_code-1.cpp from #685 (new syndrome
format, decoder_context_from_memory_circuit, seeded runs) and adapt the driver
script, build, docs, and CI to its interface. The example copy differs from the
in-tree file only in the header comment, the usage line, and the
--save_syndrome capture, which now emits true-width groups (the packed bytes
are byte-padded; the FPGA playback tool sets each replayed frame's
num_syndromes from the group's line count, and the decoder's per-shot
measurement capacity is the exact sum, so padded groups overran it).
- run_realtime_decoding.sh: --p-cnot replaces --p-spam (two-qubit depolarizing
on the CNOTs, default 0.001); new --seed (default 42 -- runs and pass/fail
counts are reproducible); config/kernel phases use --save_dem / --load_dem;
the kernel needs only QEC_DECODING_SERVER_PORT (the app brings up the udp
channel itself in its QEC_APP_CQR build). Decoders: pymatching,
nv-qldpc-decoder, multi_error_lut (trt_decoder is not supported by the new
app and is dropped; sliding_window exists in the app but is not exposed --
over device calls it needs matching updates to the proprietary cudevice
archive).
- Pass/fail criteria keep the surface-code test checks (hard decoder-failure
greps, corrections-line completion proof, num_shots/50 residual ceiling,
num_shots*(num_rounds+3) server dispatch floor) and adopt the two-process
test's server-ownership proof: the app's in-process dispatch count must be 0.
- CMakeLists.txt: -DQEC_APP_CQR; link cudaq-qec-realtime-decoding +
cudaq-qec-realtime-decoding-server-cqr (exports the dispatch-count symbol).
- Docs: decoder tables/text updated (3 decoders, --p-cnot/--seed, criteria);
the FPGA-predecoder page's pointer at this example is removed (trt dropped).
- CI (lib_qec.yaml): the gpu-test trt step and its artifact plumbing are
removed (trt dropped); the CPU job's pymatching decode now runs the seeded
200-shot default, making the ceiling check deterministic (the 50-shot
unseeded run could statistically exceed a ceiling of 1 -- the amd64-12.6
failure on the previous run).
Signed-off-by: Chuck Ketcham <cketcham@nvidia.com>1 parent 11108a4 commit ae3716b
7 files changed
Lines changed: 842 additions & 1391 deletions
File tree
- .github/workflows
- docs/sphinx
- examples_rst/qec
- examples/qec/realtime_decoding_demo
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | | - | |
| 167 | + | |
169 | 168 | | |
170 | 169 | | |
171 | 170 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | | - | |
180 | 177 | | |
181 | 178 | | |
182 | 179 | | |
| |||
274 | 271 | | |
275 | 272 | | |
276 | 273 | | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | 274 | | |
301 | 275 | | |
302 | 276 | | |
| |||
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
146 | | - | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
155 | | - | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
156 | 163 | | |
157 | 164 | | |
158 | 165 | | |
| |||
Lines changed: 10 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | | - | |
| 58 | + | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | | - | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
83 | | - | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 89 | + | |
91 | 90 | | |
92 | 91 | | |
93 | 92 | | |
| |||
0 commit comments