Quarkonium-System

P0c: one engine in C++ (plan and progress)

Goal (PLAN.md): one model layer, the two-body GEM and the N-body correlated-Gaussian solver behind one system layer, one command line, one C ABI with bindings, the Python analysis ported to C++, run record v2, parity with v1.4.

Increments, each merged only with green CI

  Content Release  
1 Model layer (fitted A/B and AL1, AL2, AP1, AP2) for 2–4 bodies; request interface (docs/API.md); libqs + qs.h; C++, Python, Julia, Wolfram bindings; qs run v1.5.0 [x]
2 Statistics of the analysis (model_selection.py, selection.py, the declared errors of sweep.py) in C++, checked against the Python results v1.6.0 [x]
3 Sweep runner in C++ (replaces sweep.py), resumable, one JSON per run v1.7.0 [x]
4 Run record v2 and the report columns (state, J^PC, data, pull, σ_th, σ_PM, convergence flag); tables and figures v1.8.0 [x]
5 One qs command line absorbing qgem, qgem_few, qgem_study; remove the Python analysis v2.0.0 [x]
6 N = 5 in the correlated-Gaussian engine (PLAN.md: numerics for N = 2–5) v2.1.0 [x]

Decisions taken in increment 1

Increment 2

src/analysis: statistics (the functions of model_selection.py; Shapiro-Wilk and the beta and normal distributions without scipy), records (records, configurations, physical set, declared errors) and selection. qs selection on the records of the v1.4 sweep gives docs/report/data/selection.csv byte for byte; the declared errors agree with analysis/apriori.py (the test fixture tests/data/selection is cut from those records). The Python scripts stay until the report and the sweeps are ported (increments 3-5).

Increment 3

src/analysis/sweeps, qs sweep. Parity: the job lists of all 24 sweeps (1065 command lines, seeds included) equal those of analysis/sweep.py on the records of the v1.4 sweep; tests/data/selection/jobs keeps three of them. One difference: a failed studies run is kept as <tag>.failed, so that it is run again (Python marked it as done).

Increment 4

qs report, qs multiquark, qs al1 (src/analysis) and the figures (src/root/figures.cpp, built with ROOT).

Increment 5

qs fit, qs few and qs study (src/apps) replace qgem, qgem_few and qgem_study; the options are unchanged. The sweeps and the multiquark runs start qs again with these commands (the sweeps from a copy of the binary kept beside the results). analysis/ is removed; its checks are GoogleTest cases (test_statistics, test_selection, test_apriori, test_sd_sign). The Python binding and examples/ stay. docs/report/ is the report of v1.4 and is not regenerated.

Increment 6

Five bodies, L = 0, for the order q q q q q̄ (src/few): Jacobi sets of baryon + meson and pair + pair + antiquark form, the three colour singlets (|1 1⟩ and |8 8⟩ with the pair 01 in 3̄ or 6), the spin states of five spin-1/2, and a limit on the dimension of the dense matrices. The colour weights are now the expectation values of the projectors averaged over the exchange group, which is exact for any set of identical particles (for N ≤ 4 the numbers are unchanged: three reference runs, with three and four bodies, agree to every printed digit). Tests (test_few_five): harmonic forces with unequal masses, the baryon + meson threshold, a basis closed under the 24 permutations in which the antisymmetrised levels are levels of the unsymmetrised problem. Not done: a convergence study, pentaquark spectra, the orders with more than one antiquark (colour singlets of other particle types).

Parity of the reruns

Every sweep was rerun with the C++ runner (laptop, 26 jobs, 5.9 h) and compared record by record with the released archives of version 1. A record agrees if every state mass and σ_th are within 0.05 MeV (and χ², for the v1.1.0 archive, within 0.05).

sweep archive records agree
lm v1.1.0 80 80
minuit v1.1.0 80 68
main v1.1.0 80 74
floor0 v1.1.0 19 19
floor v1.1.0 80 74
floor2 v1.1.0 160 158
joint, joint2, widths v1.1.0 53 53
cv v1.1.0 80 74
stats v1.1.0 21 21
nested v1.1.0 80 74
bopt, bgrid, shape, rel v1.1.0 127 127
rep, oneloop, screen v1.2.0 28 28
cx (all of A and B) v1.2.0 56 52
apriori, apriori_half, apriori_double v1.3.0 114 114

The numbers printed by the studies runs are the same as in the v1.2.0 archive.

The differences do not come from the rewrite. 26 of the runs concerned were repeated with a version 1.4.0 build on exactly the inputs of the version 2 run: all differing records of main (6), minuit (12) and cx (4), and four further ones (of main, floor and cv) whose decay widths differ from the archive. 24 of them are identical to version 2 in every number. The other two, B-apt-con-none-cx and B-frozen-con-none-cx, agree in the fitted masses within 3 × 10⁻⁴ MeV; their B_c “predictions” of 30 and 38 GeV, which come from a runaway direction (the b b̄ quark mass against the constant c, with no spin terms), agree within 0.34 MeV. So the archived records differ from what version 1.4.0 itself gives today.

Where the differing records are:

The report regenerated from the new records (docs/report) agrees with the v1.4 tables in the selection, the a-priori verdicts and the level tables; its header says what differs. The multiquark and AL1 tables had been compared earlier and agree.

Open