| path | contents |
|---|---|
src/core, math, linalg |
types and errors; special functions, quadrature, simplex; generalized eigenproblem |
src/basis, me, spin |
Gaussian basis; matrix elements; spin algebra |
src/models, solve, obs |
potential models A–D; spectrum solver; widths and transitions |
src/data, fit, stats, hyper |
PDG reader; fits; resampling and criteria; basis optimisation |
src/few |
correlated Gaussians for 2–5 bodies |
src/report, analysis, root |
the fit run; sweeps, selection, tables; ROOT output |
src/api, capi, apps |
request objects; C interface; the qs program |
config/ |
which PDG state is which model level |
tests/ |
unit tests; tests/validation/ slow convergence checks |
bindings/, examples/ |
C++, Python, Julia, Wolfram; a worked application; a program using the installed library |
cmake/, scripts/ |
install and package rules; bootstrap, background runs, install test |
docs/ |
these pages and the generated report |
data/, results/ and logs/ are created locally and not committed.
config/ccbar_fit.states, bbar_fit.states, bc.states: one measured state per line.
# mcid channel n fit|predict [group]
441 1S0 0 fit # eta_c(1S)
30443 3D1 0 predict # psi(3770)
10551 3P0 0 fit chib1P # chi_b0(1P)
| field | meaning |
|---|---|
mcid |
PDG Monte Carlo number; the mass and its error are read from the PDG file |
channel |
the model channel, ({}^{2S+1}L_J) |
n |
radial index in that channel, from 0 |
fit / predict |
whether the state enters (\chi^2) |
group |
states sharing a common systematic error (read from the PDG display value) |
Which measured state is which level of a model is a physics assignment, so it lives in a file and not in the code.
The SQLite file of the PDG API. The reader uses the summary-table value of each mass (tables pdgparticle, pdgid,
pdgdata), symmetrises asymmetric errors, and converts MeV to GeV. Partial widths are read directly, or formed from
a branching fraction times the total width when PDG lists no partial width (marked * in printed tables); limits are
ignored.
qs fit --out fit.json, the task fit, and every sweep write the same layout.
{
"config": { "record": 2, "model", "running", "spin", "c_free", "kinetic",
"basis_n", "basis_r1", "basis_rmax", "seed", ... },
"systems": [ {
"system": "ccbar", "model",
"chi2", "nu", "n_data", "n_free",
"sigma_th_GeV", "floor_mode", "sigma_pm_GeV", "converged",
"theta_names", "theta", "theta_cov",
"pred_cov_GeV2", "V_exp_GeV2",
"basis": { "n", "r1_GeVinv", "rmax_GeVinv", "nu_GeV2", "norm_by_L" },
"analysis": { "names", "value", "sigma", "corr", "condition",
"leverage", "loo_pull", "sigma_th_ci68_GeV", "sigma_th_ci95_GeV",
"chi2_exp_only", "truncation", "decay_benchmark", ... },
"states": [ { "label", "channel", "jpc", "n", "pdg_GeV", "model_GeV",
"sigma_par_GeV", "sigma_num_GeV", "sigma_exp_GeV",
"pull", "in_fit", "v2", "r_rms_fm", "p4_term_GeV",
"wavefunction": { "norm", "nodes", "components" } } ],
"widths": [ { "label", "process", "lo_keV", "nlo_keV", "nlo_err_par_keV",
"nlo_err_th_keV", "nlo_band_lo_keV", "nlo_band_hi_keV",
"alpha_s_mu", "v2", "pdg_keV", "pdg_err_keV", "pull" } ]
} ]
}
Optional studies (--loo, --bootstrap, --mcmc, …) add their own keys under analysis. Records are
self-contained: the ranges and norms of the basis are stored with the coefficients, so a wave function can be
rebuilt without the engine (see examples/medium_dissociation.py). Record version 1 (v1.x) is still read.
| file | contents |
|---|---|
data/*.csv |
one table per file: selection, goodness of fit, information criteria, cross-validation, … |
tables.md |
the same tables, readable |
apriori.md |
the a-priori model error and its sensitivity |
states.md, data/states.csv |
every state of every model |
figures/*.pdf, *.png |
figures (ROOT build) |
<results>/qgem_sweep.root |
trees of all records (ROOT build) |