# interactive_report_extras — linked mode, contribution, orbital and packing exports

Additional data for the interactive report on *"A five-week multi-agent search predicts longer spin lifetimes in molecular
qubits"* (parent salt (PPh4)2[VO(dmit)2]). This package holds **only new exports**; everything else comes from the public
deposit, referenced by Borealis file ID and SHA-256 in `manifest/`.

- Deposit: doi:10.5683/SP4/SG6QHU, version 1.0 (released 2026-11-25, 411 files, 605.7 MB; inventory read 2026-11-27).
- Physics code: the deposited `t1_gamma2_core.py` / `t1_recompute.py` (El Agente commit 91594fcc), imported unchanged.
- Exporter version: 1.0.0 (all scripts in `scripts/`). Environment: Python 3.12.13, numpy 2.4.6, phonopy 4.4.0, ORCA 6.0.1 (orca_plot).
- Scope: T1 only (300 K, 0.345 T, σ = 2, 3, 5, 7, 10, 15, 20, 30 cm⁻¹). No T2, Ramsey or Hahn-echo results. No new DFT, ORCA,
  MD or packing calculation was run; every number is post-processing of deposited inputs or retained campaign files.
- `validation.json`: every check, with tolerance and the actual deviation. `missing_assets.json`: everything that was not
  delivered and what it would take.

## Layout
```
README.md                     this file (schemas + conventions)
validation.json               all checks (deposited tests, table reproduction, additivity, links, cubes, packings)
missing_assets.json           unresolved gaps, each with reason and what would be needed
manifest/manifest.json        every package file (bytes, sha256) + the deposit files used (Borealis id, md5, sha256, release path)
manifest/deposit_index.json   the full deposit inventory with sha256 and the recompute-release path recovered for each file
scripts/                      exporters + checks (rerun commands at the end)
modes/<salt>/                 Extra 1: mode index, eigenvectors, cluster vectors, animations, excluded-mode ledger
modes/cross_salt_family_correspondence.json
contributions/conditions_all.csv        Extra 2: one row per (salt, sampling, coupling set, σ)
contributions/<salt>/                   Extra 2: pairs, Bloch-group pairs, mode marginals, heatmaps, mismatch curves
orbitals/<salt>/                        Extra 3: spin-density and ligand-field-orbital CUBE files + metadata
packings/                               Extra 4: candidate index, DFT runs, funnel summary, structures
```
Salts covered by Extras 1–3: `SEED`, `R3_F`, `R4_pCl`, `R4_pBr`, `R5_pI` (the five priority crystal models; each is one
ordered crystal model, so no m1/m2 merging arises). Extra 4 covers every CSP funnel on disk (22 cations).

## Identifiers (stable, no private paths)
| ID | Grammar | Example |
|---|---|---|
| `structure_id` | `<salt>:phonopy:<first 12 hex of the phonopy_params.yaml sha256>` | `SEED:phonopy:ff0379d8d888` |
| `mode_id` | `<salt>:<set>:q<i>.<j>.<k>:b<band>:<part>`; set `G111` = Γ of the phonon cell, `D<n1n2n3>` = dense q-grid | `R5_pI:D322:q1.0.1:b57:cos` |
| `bloch_group` | `mode_id` without the part: one Bloch wave (q, band) | `R5_pI:D322:q1.0.1:b57` |
| `degeneracy_group` | modes at the same q within 1e-3 cm⁻¹ | `SEED:G111:q0.0.0:g154` |
| `condition_id` | `<salt>|<sampling>|<coupling_set>|s<σ>` | `R4_pCl|gamma|validator_cut800|s5` |
| `candidate_id` | `<funnel>:Z<formula units>:s<CLARI sample index, 6 digits>` | `R5_pI:Z1:s000080` |

- `q<i>.<j>.<k>`: integer q index; the reduced wavevector is q = (i/n1, j/n2, k/n3) (`q_frac_reduced`). Only one of ±q is
  enumerated (the deposited loop order).
- `b<band>`: **0-based** phonopy band index at that q, ascending ω², acoustic bands included in the count. Γ bands of a salt
  are the indices used by the campaign (`modes.indices` of the couplings files and the validator's `designed_modes`).
- `part`: `re` (q with 2q = G, real eigenvector), `cos` = √2·Re and `sin` = √2·Im standing waves of a complex Bloch wave.
- The same physical Γ mode has the same `mode_id` in the `main` and `validator_cut800` coupling sets. A dense-grid mode at
  q = 0 lists its Γ twin in `same_eigenvector_as` (same eigenvector, supercell-normalised).
- All atom, band, cluster and coupling-row indices are **0-based**.

## Extra 1 — animation-ready vibrations (`modes/<salt>/`)
Source: the deposited `phonopy_params.yaml` force constants (no new DFT), enumerated with the deposited
`t1_recompute.cluster_modes` loop; the exported mode list is checked to be **identical** (frequencies and vectors) to it.

| File | Content |
|---|---|
| `mode_index.csv` | One row per mode per (sampling, coupling set): IDs, q, band, part, frequency, groups, coupling row, descriptors, motion description |
| `cluster_vectors_<sampling>_<set>.json` | For **every** mode: the 54-component cluster vector `x` the couplings were projected on, plus the cluster definition and mappings |
| `selected_modes_<sampling>_<set>.json` | Full unit-cell complex eigenvectors for the selected modes + the crystal structure (= deposited `<salt>.extxyz`) |
| `anim_cluster_<sampling>_<set>/<mode_id>.xyz` | 20-frame XYZ animations of the embedded anion for the selected modes (metal frame) |
| `anim_supercell/*.extxyz` | Example supercell animations of non-Γ modes (any selected mode: `scripts/build_supercell_animation.py`) |
| `excluded_modes.json` | Γ acoustic and imaginary modes excluded from every rate, per grid, with frequencies |

**Selected modes** (`selection_reason`): modes of the top-50 ordered pairs at any σ, the campaign's target family
(parent Γ bands 154–157; for variants the bands the validator matched to them), and the three largest per descriptor
(V=O stretch, V=O tilt, V–S stretch, dithiolene fold) at the 300 K rms amplitude. Every other mode still has its cluster
vector, so every pair in the pair tables can be animated at the anion level.

**Conventions**
- Cell frame = the deposited `<salt>.extxyz` (identical atom order and Cartesian frame; checked). Units Å, amu, cm⁻¹.
- Eigenvectors `eig_re`, `eig_im`: rows = cell atoms, columns x, y, z; eigenvectors of the lattice-phase dynamical matrix
  D^L(q) = P D_phonopy(q) P†, P = diag(exp(2πi q·frac_k)); **mass-weighted, unit norm over the unit cell**. `eig_im` is
  null for real modes. Their phase is the eigensolver's (arbitrary global phase; Γ vectors are sign-aligned to the
  campaign's own vectors, overlap +1).
- Normal coordinate Q in amu^½·Å. Displacement of atom k in supercell cell n per unit Q:
  `re`: Re(e_k e^{2πi q·n})/√(N m_k); `cos`: √(2/N) Re(e_k e^{2πi q·n})/√m_k; `sin`: √(2/N) Im(e_k e^{2πi q·n})/√m_k;
  N = n1·n2·n3 (the q-grid), n integer cell vector. For q ≠ 0 this is the full physical standing wave of the supercell —
  never take the real part of the unit-cell eigenvector alone. `scripts/build_supercell_animation.py` implements it and
  `scripts/test_supercell_builder.py` checks that the pattern, read at the carved anion, reproduces the coupling vector.
- cos/sin are degenerate partners: their split depends on the phase origin; sums over a `bloch_group` do not.
- Cluster (embedded anion, 18 atoms) = deposited `<salt>_anion_embedded_cluster.xyz`, same order. Mapping in
  `cluster_vectors_*.json → cluster`: `cluster_to_cell_atom_0based`, `cluster_lattice_offset` (integer image vector),
  `rotation_rows_new_axes` R. Metal frame: r_frame = R (r_cell − r_V,cell), V at origin, z = V=O axis.
- Cluster vector `x`: mass-weighted, metal frame, rigid translations projected out, normalised with the mode over the
  whole supercell (so dense-grid vectors are smaller by √N or √(N/2) than a single-cell wave). Displacement u_i = x_i/√m_i.
- Coupling indices: row j of the deposited `directions_mass_weighted` / `direction_couplings` is a 54-vector over the 18
  cluster atoms (x, y, z per atom, metal frame); a mode's coupling is Σ_j c_j dV_j with c_j = x·direction_j. For Γ sets the
  exported `coupling_row` is the row of the stored `mode_couplings`.
- Descriptors (per unit Q of the exported mode): `dR_VO_A_per_Q`, `VO_tilt_rad_per_Q`, `dR_VS_A_per_Q` (4 donors, cluster
  order), `dfold_deg_per_Q` (two dithiolene folds, deposited fold definition, central difference), `first_shell_weight`
  (Σ|x|² over V, O and the 4 donor S), `cluster_weight`, `w_anion_cell` (Σ|e|² over all anion atoms of the cell),
  `Q_rms_300K_amu05A` (quantum harmonic rms Q). `cell_normalization_factor` converts a dense vector to single-cell
  normalisation. `motion_description` is generated from these at the 300 K rms amplitude after that conversion, with fixed
  thresholds: V=O stretch > 0.003 Å, tilt > 0.5°, V–S stretch > 0.003 Å (symmetric if all large components share a sign),
  fold > 0.5°, "mainly cation/lattice motion" if w_anion_cell < 0.2. It is a label of computed motion, not an assignment.
- Animations: frame f has Q = A sin(2πf/20); A makes the largest displayed atomic displacement 0.25 Å (stated in each
  comment line together with the physical 300 K rms Q). This exaggerates the motion for visibility.
- Imaginary modes (ω² < 0) and the three Γ acoustic modes are excluded from all rates (deposited rule); see
  `excluded_modes.json` and `conditions_all.csv → n_excluded_imaginary, most_negative_excluded_cm1`.

**Cross-salt correspondence** (`modes/cross_salt_family_correspondence.json`): copied from the signed validator receipts,
not re-derived. It matches the parent's target family (SEED Γ bands 154–157) to variant Γ modes by first-shell subspace
overlap after a Kabsch alignment (principal-angle cosines; "conserved" needs all ≥ 0.7), reports the number of
equivalent first-shell labelings, the frequency window and the spread. No correspondence is proposed from frequency proximity.
The validator found the family *not conserved* in all four variants (R3_F, R4_pBr, R5_pI: the matched variant subspace has fewer than four dimensions; R4_pCl: fourth cosine 0.55 < 0.7), so no one-to-one mode match is claimed; the matched variant bands are listed as the validator's family members only.

## Extra 2 — mode-linked relaxation contributions (`contributions/`)
Conditions: 5 salts × {gamma, dense} × 8 σ with the **main** coupling set (the set behind the deposited
`t1_vs_sigma.csv`), plus Γ with the **validator_cut800** set for R4_pCl and R4_pBr (modes to 800 cm⁻¹, the set in their
validator receipts). Dense grids are the deposited rule (every equivalent-supercell width ≥ 21 Å; modes ≤ 500 cm⁻¹).

| File | Content |
|---|---|
| `conditions_all.csv` | Per condition: total rate (s⁻¹), W_down, W_up, T1 (µs) recomputed; reported T1 and ratio from the deposited table and validator receipts with deviations; parent-matched ratio; grid, mode count, cutoff, T, B, σ, averaging; captured/omitted shares; source files (Borealis id, sha256); excluded imaginary modes; exporter version |
| `<salt>/conditions.csv` | The same rows before the reported values were attached |
| `<salt>/top_pairs.csv` | Top ordered pairs (300 per Γ condition, 1000 per dense condition): both mode IDs, frequencies, q, mismatch, rate, W_down/W_up parts, fraction of total, cumulative fraction, reverse-pair rate, rank |
| `<salt>/top_bloch_group_pairs.csv` | Top unordered Bloch-group pairs (both orders and all standing-wave parts summed; gauge-invariant) with a representative mode ID |
| `<salt>/mode_marginals.csv` | For every mode and σ: rate summed over all pairs in which it is absorbed, and in which it is emitted (complete, additive) |
| `<salt>/heatmaps.json` | 5 cm⁻¹ heatmap on (ω_absorbed, ω_emitted) per condition: sparse cells [i, j, rate s⁻¹], bin edges, total, dropped remainder |
| `<salt>/mismatch_cumulative.csv` | Rate and cumulative share vs |ω_absorbed − ω_emitted|, 0.5 cm⁻¹ bins to 150 cm⁻¹ + overflow bin |

**Decomposition and counting.** The deposited `gamma2_powder` already returns, for each field orientation, the rate of
every **ordered** pair (α absorbed, β emitted) for both spin flips (down = upper→lower Kramers state, up = lower→upper),
averages them over the 14-point Lebedev grid (6 × 1/15, 8 × 3/40) and sums. This package keeps that matrix:
- total rate W = Σ_αβ (W_down + W_up)(α, β) = 1/T1 (powder: rates averaged, then inverted — never averaged T1s);
- each ordered pair is one physical process; (α, β) and (β, α) are different processes and both are counted once;
  no pair is double counted. α = β is excluded by the deposited code (applied in the standing-wave basis);
- every contribution is non-negative (|amplitude|² × positive factors), so shares are true fractions of the total;
  there are no signed terms in this decomposition;
- sampling weights: each mode is normalised over its own supercell, so every enumerated standing wave enters with
  weight 1 (no extra q weights); the q-grid is the supercell's commensurate set with one of ±q enumerated;
- top pairs + `omitted_remainder_s_1` = total; mode marginals sum to the total (absorbed and emitted separately);
  heatmap cells + `dropped_cells_sum_s_1` = total; the mismatch curve reaches 1. All checked in `validation.json`.
- `mismatch_cm1` uses the bare mode frequencies (ω_α − ω_β); the code's energy-conserving phonon energies shift each by
  half the mismatch minus the Zeeman gap (≈ 0.32 cm⁻¹).
- The deposited electronic-pathway table is a non-additive diagnostic (pathways interfere); nothing here is derived from it.

**Ratios.** `ratio_to_parent_recomputed` = T1(salt)/T1(SEED) at identical sampling, σ, T and B. SEED has a single coupling
set, so the validator_cut800 ratios also divide by SEED's judged set (as the validator did).

**Dense pairs are diffuse.** With 1,237–3,343 modes, the top 1,000 ordered pairs carry only 13–59 % of the dense rate
(top 1,000 Bloch-group pairs: 20–72 %); use the Bloch-group table and the mode marginals (complete) for dense views.
Γ top-300 ordered lists carry 47–100 % (`captured_fraction`, `group_pairs_captured_fraction` per condition).

## Extra 3 — spin-density and orbital surfaces (`orbitals/<salt>/`)
Source: the retained ORCA 6.0.1 reference wavefunctions of the judged Γ_II references (copies; sources untouched):
SA-CASSCF(1,5) over the 5 doublet roots (equal weights) / SC-NEVPT2 / AILFT, SOC by RI-SOMF(1X) (QDPT); def2-TZVP on V,
O, S and def2-SVP elsewhere; Ewald-fitted point-charge embedding.
- `spin_root0.cube`: **state-specific, spin-free** spin density (ρα − ρβ, e bohr⁻³) of CASSCF root 0 (the ground doublet),
  ORCA density `reference.mult.2.root.0.casscf.r`. The sign is physical; within CAS(1,5) it is non-negative.
- `lf<k>_mo<n>.cube`: the five **AILFT ligand-field eigenorbitals** (amplitude, bohr⁻³ᐟ²) from `reference.nevpt2.lft.gbw`,
  MOs 114–118, ordered by NEVPT2 ligand-field energy. They are neither canonical, natural nor SCF orbitals, and no SOMO is
  assigned: the metadata gives each orbital's NEVPT2 and CASSCF LF energy, its ideal-d coefficients, and the evidence that
  CASSCF root 0 maps onto LF root 0 with overlap 1.000. Numerically |LF orbital 1|² equals the root-0 spin density on the
  grid (checked). Orbital phase is arbitrary — draw ± lobes at the same |isovalue|. NEVPT2 and CASSCF orders differ for the
  three middle levels; `lf4` (NEVPT2 order) is the "upper dπ" level used in the paper's descriptor tables.
- SOC: no SOC-derived spin density was stored by ORCA (only SOC ground-state *electron* densities); see `missing_assets.json`.
- Grids: orca_plot default box (atoms ± 7 bohr), 80 × 80 × 80 points, bohr, the cluster's metal frame (V at origin,
  z = V=O); atom coordinates in the cube headers are bohr in that frame. Values carry the 5 significant digits orca_plot
  writes. `*_browser_stride2.cube`: every second point (40³), same origin, documented in the cube's second comment line.
- Suggested isovalues in `cubes_metadata.json`: the |values| enclosing 50 % and 80 % of the integrated spin density
  (or squared orbital amplitude) on the grid.
- SEED: the judged reference folder kept only `reference.gbw`; its cubes come from the independent start-orbital
  replicate with a byte-identical input (same geometry, basis, embedding), identical final CASSCF energy and NEVPT2 LF
  levels within 0.6 cm⁻¹ (metadata `note`).

## Extra 4 — alternative-packing records (`packings/`)
| File | Content |
|---|---|
| `candidate_index.csv` | One row per CLARI sample of every funnel (22 cations): population, Z, UMA relaxation status/energies, identity check, space group, density, rank and ΔE within the salt, shortlist/selection status and reason, UMA free energy (300 K) where computed, DFT status and ΔE, T1 model link |
| `dft_runs.csv` | Every CP2K relaxation of a shortlisted packing: protocol key, k-mesh, status, convergence, stationarity, energy per formula unit, ΔE within the same protocol, final structure path; status is the last collected `periodic_crystal_results.json` (some 'running' entries are stale snapshots of chains stopped after stage 1), so the latest CP2K output's last energy and optimisation-completed flag are added as informational columns, never ranked |
| `funnel_summary.csv` | Counts per funnel (samples, converged, identity-ok, shortlisted, passed the UMA free-energy prefilter, DFT-relaxed) |
| `structures_index.csv`, `structures/<funnel>/` | UMA-relaxed CIFs of the top 15 packings per funnel (by UMA energy per formula unit) and the final DFT structures of shortlisted packings, with max dithiolene fold (the screen's own `fold_screen.folds`) |

- Populations are kept apart: `campaign_loop_csp` (11 loop funnels) and `flat_ligand_screen` (11 cations). The round-6
  funnels `clari_R6_4CCH` / `clari_R6_mBr` are byte-identical copies of screen funnels `S_4CCH` / `S_3Br`; those rows
  appear once, under the screen ID, with `campaign_salt_alias`.
- Energies are ranked only within one chemical composition (one funnel) and per formula unit: UMA ΔE in kJ mol⁻¹ FU⁻¹
  from the UMA-relaxed lattice energy; UMA ΔF(300 K) is the funnel's own harmonic UMA free-energy re-ranking (only for
  shortlisted packings); DFT ΔE (CP2K PBE-D3) is compared only among converged, stationary runs that share the protocol key
  (functional, dispersion, cutoff, relative cutoff, XC grid, basis family). UMA and DFT values are never mixed.
- Selection reasons are those recorded by the funnel (convergence, identity, dedup, energy window, shortlist rank); when
  the funnel recorded none the row says so.
- Counts: see `funnel_summary.csv` and `validation.json → reconciliations` (the on-disk count does not reproduce the
  paper's 6,798).

## CSV conventions
Empty cell = null; the row's status/reason/source column says why (e.g. `T1_reported_source`, `selection_reason`,
`ranking_note`). Numbers are written with full double precision (Python `repr`). Booleans are `True`/`False`.

## Rerun
```
python scripts/rebuild_release_layout.py DEPOSIT_DIR RELEASE            # Borealis files -> inputs/<salt>/ layout by sha256
python RELEASE/tests/test_parent_iodine.py; python RELEASE/tests/check_all_gamma.py
python scripts/export_modes_pairs.py RELEASE . SEED R3_F R4_pCl R4_pBr R5_pI   # ~3-15 min per salt
python scripts/export_excluded_modes.py RELEASE . SEED R3_F R4_pCl R4_pBr R5_pI
python scripts/export_cubes.py CAMPAIGN_ROOT WORKDIR orbitals            # needs ORCA 6.0.1 and the retained .gbw/.densities
python scripts/export_packings.py CAMPAIGN_ROOT SCREEN_ROOT RELEASE .
python scripts/make_supercell_examples.py .
python scripts/merge_and_validate.py RELEASE DEPOSIT_DIR . LOGDIR; python scripts/test_supercell_builder.py
python scripts/write_manifest.py . DEPOSIT_DIR
```
The two campaign-file exporters (cubes, packings) need the original campaign filesystem; their inputs are identified by
path and sha256 in the metadata. Everything else needs only the public deposit.
