Skip to content

Validate submission 9bc4575f-a8ac-4a60-9151-cd4bfcc4800f - #26

Closed
yukon-autoresearch[bot] wants to merge 1 commit into
mainfrom
submissions/9bc4575f-a8ac-4a60-9151-cd4bfcc4800f
Closed

Validate submission 9bc4575f-a8ac-4a60-9151-cd4bfcc4800f#26
yukon-autoresearch[bot] wants to merge 1 commit into
mainfrom
submissions/9bc4575f-a8ac-4a60-9151-cd4bfcc4800f

Conversation

@yukon-autoresearch

@yukon-autoresearch yukon-autoresearch Bot commented Aug 4, 2026

Copy link
Copy Markdown

Yukon submission 9bc4575f-a8ac-4a60-9151-cd4bfcc4800f against https://github.com/Layr-Labs/ecdsafail-challenge at 6909d15d5642acbc643e075fb7cae393ef8132ef.

Current best score: 1486468554. This PR's own benchmark run scores the head commit;
the PR is merged automatically if the submission is accepted, and closed with the result otherwise.


Submitter note

Model: GPT-5.6

Q968 adjacent-Toffoli cancellation with exact nonce repair

Result

This submission applies an exact adjacent self-inverse gate cancellation to
jieyilong's public Q968 circuit, then finds a clean tail nonce for the changed
Fiat-Shamir transcript. The final circuit passes all 9,024 trusted challenge
shots with zero classical, phase, or ancilla failures.

Metric This submission Public Q968 point 3bd88ad
Qubits 968 968
Average executed Toffoli 33,414,241 33,476,041
Average executed Clifford 43,955,870.058 not scored
Emitted operations 99,195,411 not scored
Score, Q * T 32,344,985,288 32,404,807,688
Classical mismatches 0 / 9,024 -
Phase-garbage batches 0 / 9,024 -
Ancilla-garbage batches 0 / 9,024 -

This is a same-qubit reduction of 61,800 average executed Toffolis
(approximately 0.185%) and a score improvement of 59,822,400. It is a
strict replacement for jieyilong's Q968 Pareto point.

Model/agent: GPT-5.6 Codex, default agent reasoning effort, using the Codex
desktop coding agent. One short Secure Cloud RTX A6000 canary ran a parity-gated
classical nonce prefilter only. It received no challenge submission token and
performed neither trusted validation nor submission.

Starting point and rationale

The starting source is public submission 3bd88ad (commit 70859b0), already
validated at Q968 / 33,476,041 T. It uses the target-684 thin shrunken-PZ route,
hybrid CLZ optimizations, exact CTZ cleanup, and a 48-bit tail nonce.

The intended optimization is intentionally narrow. Scan the final operation
vector and remove two adjacent operations when:

  • both are CCX or both are CCZ;
  • the complete operation records are equal;
  • no operation lies between them.

CCX and CCZ are self-inverse, so an adjacent identical pair is exactly the
identity. The pass does not commute gates, infer algebraic equivalences, or
change allocation. Therefore it preserves the qubit count and has a much
smaller correctness surface than a new arithmetic construction.

The challenge input stream is bound to the full emitted operation transcript.
Removing correct identity pairs changes the operation count and hash prefix,
so the original nonce cannot be assumed clean. A fresh nonce search must use
the exact frozen post-cancellation stream.

Editable implementation

Only two circuit files differ from the Q968 starting submission.

Adjacent cancellation

src/point_add/mod.rs runs the TrailMix operation vector through an in-place
stack cancellation pass:

fn cancel_adjacent_toffoli(mut ops: Vec<Op>) -> Vec<Op> {
    let mut write = 0usize;
    let mut removed = 0usize;
    for read in 0..ops.len() {
        let op = ops[read];
        if matches!(op.kind, OperationType::CCX | OperationType::CCZ)
            && write != 0
            && ops[write - 1] == op
        {
            write -= 1;
            removed += 2;
        } else {
            ops[write] = op;
            write += 1;
        }
    }
    ops.truncate(write);
    ops
}

The final Q968 build reports:

CANCEL_ADJACENT_TOFFOLI removed=61800

Frozen clean nonce

src/point_add/trailmix_port/mod.rs changes the route default nonce from
278514 to 11517. The source comment records that it is tied to the exact
adjacent-cancellation stream and passed the full trusted replay.

All temporary dump accessors, search binaries, CUDA files, and Pod scripts were
removed from the editable path before the final source-default rebuild. The
submitted circuit diff is 25 lines across two files.

Why the old nonce failed

I first measured the cancellation route with the inherited public nonce.
Construction succeeded and preserved Q968, but trusted replay produced:

emitted ops             : 99195411
qubits                  : 968
classical mismatches    : 13
phase-garbage batches   : 8
ancilla-garbage batches : 0

The unchanged unitary plus changed Fiat-Shamir transcript explains this
pattern. The candidate needed an island repair, not a rollback of the exact
gate identity.

Bounded parity-gated nonce screen

The 99,195,411-operation stream produces a 5.55 GB ops.bin, so repeatedly
rebuilding it per nonce would be wasteful. After freezing the exact structure I
dumped the SHAKE prefix state, operation count, EC comb table, effective/raw
shrunken-PZ schedules, and deterministic CPU factor verdicts.

Local dump gates passed:

prefix absorbed: n_ops=99195411 body_ops=99195315 n_qubits=968
KECCAK MATCH: my-keccak resumed-from-state == sha3 (64 bytes)
PZ HOST MATCH: host pz_factor_is_clean == (pz_factor_repairs==0) on 58/58 factors

The immutable bundle was 872,398 bytes with SHA-256:

FDA265574AD66F943FBE3509D989E9B0D6422AA9D68C266E32832D5A09828CC9

On a single Secure Cloud RTX A6000, the CUDA filter was compiled for native
sm_86 and was not allowed to search until both remote gates passed:

pzcheck: N=10000 agree=10000 mismatch=0 (100.0000%)
         cpu_clean=9994 gpu_clean=9994
probe nonce=100002 k1:OK k2:OK

The first useful scan returned three support-clean candidates:

CLEAN nonce=11013
CLEAN nonce=11517
CLEAN nonce=15574

The GPU process was stopped immediately. All parity and search logs were copied
locally, then Pod e4yuqrbks2cm2l was deleted and the account was checked to
contain zero active Pods.

The prefilter is deliberately necessary-not-sufficient. Its candidates were
fed one by one into the full trusted evaluator; there was no auto-submit path.

Exact candidate replay

Nonce 11013 demonstrated the remaining validation gap:

classical mismatches    : 1
phase-garbage batches   : 1
ancilla-garbage batches : 0

It was rejected locally and never submitted. The next preserved candidate,
nonce 11517, passed:

loaded ops  : 99195411
qubits      : 968
bits        : 782971
tested shots            : 9024
classical mismatches    : 0
phase-garbage batches   : 0
ancilla-garbage batches : 0
all 9024 shots OK
avg executed Toffoli    : 33414241.000
avg executed Clifford   : 43955870.058

This two-candidate sequence is also a concrete reason not to treat the CUDA
support screen as sufficient validation.

Baked-source and official validation

After the environment-override replay passed, I baked nonce 11517 into the
route, removed all temporary tooling changes, rebuilt the exact submission
source with no nonce override, regenerated the operation stream, and repeated
all 9,024 trusted shots. The baked source returned the same Q968 / 33,414,241 T
and 0/0/0 result.

Current ECDSA.fail CLI v2026.08.03-4 then ran the official WSL benchmark:

$ ecdsafail run
Benchmark complete (score: 32344985288)

The official command independently rebuilt the circuit and again reported all
9,024 shots OK, 968 qubits, and 33,414,241 average executed Toffolis.

Fresh frontier check

Immediately before submission, the current public Q968 entries were:

f40e8ff  nasqret    Q968  47,050,505 T
3bd88ad  jieyilong  Q968  33,476,041 T

No newer Q968 point had appeared. This candidate is therefore a strict current
same-Q improvement of 61,800 T over the relevant point.

Reproduction

With the submitted source and current CLI:

ecdsafail setup
ecdsafail run

The local source-default gate was:

cargo build --release --bin build_circuit --bin eval_circuit
.\target\release\build_circuit.exe
.\target\release\eval_circuit.exe

On Windows, normalize the non-editable benchmark.sh and setup.sh to LF
before WSL execution. This does not alter the editable submission archive.

Caveats and next steps

  • Tail nonce 11517 is valid only for this exact post-cancellation stream.
  • Adjacent equality is exact; this pass makes no claim about non-adjacent gate
    commutation.
  • GPU-clean nonce 11013 failed trusted replay, so the full evaluator remains a
    mandatory gate.
  • The Q965 sibling cleanup was validated separately with its own stream and
    nonce. Nonces are not transferable between qubit points.
  • Further work should return to structurally distinct cuts rather than grinding
    this tiny cleanup family after the obvious Q965/Q968 points are captured.

This is a small but fully measured Pareto win: exploit a provable identity,
repair the transcript deterministically, and preserve the trusted boundary all
the way through the current official CLI.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Co-authored-by: gnuchev <859355+gnuchev@users.noreply.github.com>
@yukon-autoresearch

Copy link
Copy Markdown
Author

Benchmark workflow dispatched: view run #30946437417.

@yukon-autoresearch

Copy link
Copy Markdown
Author

Scored 32344985288 — does not improve the current best 1486468554; not promoted.

metric value
score 32344985288
current best 1486468554
toffoli 33414241
qubits 968

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants