vibe-sketcherDocumentation

vibesketcher.inputs.aiccm_replay

Replay an AICCM torus series from the vibe-qc result QVFs of its members (#194).

vibesketcher.inputs.aiccm.compare_series() reads the small .aiccm-result.json each generated script writes. That record is written by our own script, so it repeats what the script was told rather than what the engine did. A replay reads each member’s vibe-qc result QVF instead and checks the engine’s own record against the plan before any energy is compared:

  • the archive is intact (every member’s SHA-256 matches its manifest entry);

  • it was written by vibe-qc, and source.version is the planned release;

  • provenance.jk_method_executed is the planned variant’s route;

  • the run converged (run_status and scf_converged);

  • the job spec’s SCF reference, functional, basis, charge and multiplicity are the plan’s;

  • the embedded input (run_record/input.txt) is byte-identical to a planned member script (by SHA-256 when the plan records it), and its TORUS and HAMILTONIAN_DIGEST constants are the plan’s.

vibe-qc’s QVF records neither the torus nor a Hamiltonian digest, so the torus is taken from the embedded script and nowhere else; a QVF without the embedded input is refused rather than matched by file name. The energy is provenance.scf_energy, which vibe-qc writes from the SCF (orbital) reference; a correlated series is therefore refused here and stays with the script-written results. For SCF series on vibe-qc 0.19.2 that value equals the script’s result.energy per input cell on tori (1,1,1), (2,1,1) and (2,2,1) (LiH four-center, checked 2026-11-20).

The route labels are those of PeriodicJKMethod in vibe-qc python/vibeqc/periodic_jk_method.py, identical at tags v0.18.11 through v0.19.2; the provenance fields are written by python/vibeqc/output/formats/qvf.py at the same tags.

Module Attributes

EXECUTED_ROUTES

jk_method_executed for each front-door variant (vibe-qc v0.18.11-v0.19.2).

Functions

replay_series(plan, qvfs)

compare_series() over members read from their result QVFs.

result_from_qvf(plan, data, *[, label])

One series member's result, read from its vibe-qc result QVF.

vibesketcher.inputs.aiccm_replay.EXECUTED_ROUTES: dict[str, str] = {'chi': 'aiccm2026dev-b', 'four-center': 'aiccm2026dev-a', 'neutral-bloch': 'neutral-bloch', 'real-gamma': 'real-gamma'}

jk_method_executed for each front-door variant (vibe-qc v0.18.11-v0.19.2).

vibesketcher.inputs.aiccm_replay.replay_series(plan, qvfs)[source]

compare_series() over members read from their result QVFs.

Every QVF is checked first and all refusals are reported together.

Parameters:
Return type:

dict[str, Any]

vibesketcher.inputs.aiccm_replay.result_from_qvf(plan, data, *, label='QVF')[source]

One series member’s result, read from its vibe-qc result QVF.

Returns a record in the .aiccm-result.json shape (plus source and script_sha256) that compare_series() accepts, or raises ValueError naming every way the QVF differs from the plan.

Parameters:
Return type:

dict[str, Any]