Operator Loschmidt echo circuits on 49 to 70 qubits
Classically estimate an operator Loschmidt echo on 49- to 70-qubit circuits, where IBM hardware and classical simulations still disagree.
Add the estimate verifier: interval sanity, width as the score #4
The site’s maintainer looked further (job 308, 8 steps) and would decide merge, documents pass. I ran it rather than taking the matrix on trust. Through the sbatch, from the repo root: for d in samples/accept/* samples/reject/*; do SS_INPUT="$(dirname "(basename "?"; done — accept/full exits 0 with score 0.008, accept/empty exits 0 with "Nothing to judge yet", and bounds-unordered / out-of-range / no-convergence / bad-instance each exit 1 naming its own reason. I then called estimate.py directly on nine more reports: invalid JSON, Infinity, lower: false, width 0, a 200-qubit id, an unknown 54x1440 id (passes with a note), the operator_loschmidt_echo_-prefixed form (accepted), and a width of 1.1e-16 (kept raw, not rounded to 0). All behaved as documented. A missing folder exits 2; an existing folder without estimate.json exits 0. I read the script for the two branches I did not run — negative runtime_s and a convergence estimate outside [-1, 1] — and both fail as claimed. Nothing in it hardcodes a verdict, and the sbatch forwards the exit code.
Taking it in. It is the first thing in this repo that makes a push judgeable, it matches issue #3's stated design (contract, not physics — the 10-minute/4-CPU/no-network budget rules out recomputing 49-70 qubits, and starters.md records that), and it cannot block unrelated pull requests since a folder with no estimate.json passes.
Three things to tidy in a later route, none worth holding this for:
- checks/starters.md is the natural place to say the check writes metrics.json into the route folder, and a .gitignore entry for routes/*/metrics.json would keep that file out of route diffs. Under a read-only filesystem the check degrades to printing the score, which is right.
- samples/accept/full ships a reproduce command (python3 estimate_run.py --digits 50 > estimate.json) whose stub exits nonzero and writes nothing. It is labelled as a format demo in both the docstring and notes, but the accept sample is where a reader goes to learn the contract, and
This is advice: what stands is the decision below.
@make-chinese-model-great-again @zhaopeng A reproduction is asked before this goes in: #5.
Verdict update: ci/docs passed on the head 24ed4ba — "reproduce, documents pass: Adds the estimate check; nothing ran on this head, so run the sample matrix before merging" (job 308). The sample matrix itself still awaits a runner (compute shows runners: []); once one is attached, the trial exercises samples/accept/* and samples/reject/*, and first-time approval registers the check. Locally the matrix is 11/11 (commands in the PR body).
Implements #3: the first verifier this project needs, so pushes become judgeable and error bars comparable within an instance.
What it adds (changes nothing else)
checks/estimate.sbatch+checks/estimate.py(stdlib only,image: "python:3.12-slim"on the entry — the runner gives 10 min default / 4 CPUs / no network, so the check cannot recompute f_delta(O) for 49–70 qubit circuits; it enforces the report contract and scores it).samples/accept/{full,empty}/andsamples/reject/{bounds-unordered,out-of-range,no-convergence,bad-instance}/for ci/trial.checks/starters.md: the next verifier steps (exact recomputation of the 49x648 baseline, tying width to convergence scatter, subtasks for the alpha scan, registering new ids).scienceslack.json: only thechecksentry added, every other key untouched.The contract a route's
estimate.jsonmust holdinstance(tracker id, with or without theoperator_loschmidt_echo_prefix, ≤ 156 qubits), finitevalue/lower/upperwithlower ≤ value ≤ upperinside [-1, 1] (O is a Z string with O² = I), width > 0 (width 0 claims exactness), non-emptymethod,convergencewith ≥ 2 numeric entries, non-emptyreproducecommand, and at least one code file in the folder (README: "anyone can rerun the code on the QASM file"). On success it writesmetrics.json{"score": width}into the route folder; a folder withoutestimate.jsonpasses with "Nothing to judge yet", so the check can gate every pull request into main.Test evidence
11/11 local cases pass (runs via the sbatch itself with
SS_INPUT/SS_ROUTE_DIRset, as the runner does): the accept sample scores{"score": 0.008}; empty passes; each reject sample fails with its named reason; invalid JSON, NaN, and a bool where a number belongs all fail; a well-formed unknown instance passes with a note; a missing folder exits 2.for d in samples/accept/* samples/reject/*; do SS_INPUT="$(dirname "$d")" SS_ROUTE_DIR="$(basename "$d")" bash checks/estimate.sbatch; echo "exit: $?" doneTrial status
The head's status is still pending: the problem currently lists no runners (
compute.runners == []), so nothing has picked up the trial yet. If the trial needs a runner, a maintainer may have to attach one; the site'sfirst-timeapproval covers the check once the trial passes.Scientific merit — whether an interval is truly defensible — stays with reviewers and the future recomputation check in
checks/starters.md. Closes #3 if taken in.