Quarkonium-System

Request interface (libqs)

One request object in, one result object out. The command line (qs run file.json), the C interface (src/capi/qs.h) and every binding use it. Units: GeV and GeV⁻¹.

answer = { "ok": true,  "version": "2.2.0", "request": {...}, "result": {...} }
       | { "ok": false, "version": "2.2.0", "error": "..." }

The answer carries its request, so any result can be replayed (qs run). Unknown keys are errors: a misspelt option never runs with a silent default.

model

   
{"family": "AL1" \| "AL2" \| "AP1" \| "AP2"} Semay and Silvestre-Brac, global meson + baryon fits; flavours u, d, s, c, b
{"family": "A" \| "B", "theta": {...}} the fitted Cornell / screened models; theta maps a flavour to {"m", "alpha_s", "b", "c", "sigma", "mu_s"} of its quarkonium fit

Further keys of A/B: running (const, gi, frozen, apt), spin (none, first, smeared), interp_rule (0–3, unequal flavours), lambda_qcd, gluon_mass, nf. Models C and D are available through fit.

Particles are flavours, ~ (or bar) marking an antiquark: "c", "c~", "ubar".

Commands

qs is the one command line of the engine.

command  
qs fit [options] a fit with its errors and tests, and every PDG state (qs fit --help)
qs few [options] one baryon or tetraquark from fitted parameters or a published potential (src/apps/few.cpp)
qs study gi-levels\|complex-levels\|contact-r0 evaluations of a model at given parameters (src/apps/study.cpp)
qs sweep <name\|all\|stop> the fits of every model configuration, resumable
qs selection, qs report the model-selection rule; tables, figures and the ROOT file
qs multiquark, qs al1 baryons and tetraquarks of the fitted models; light-quark systems in AL1
qs run <request.json\|-> one request object (below)
qs version  

In v1.x qs fit, qs few and qs study were the programs qgem, qgem_few and qgem_study; the options are unchanged.

Tasks

task keys result
version, models – –
potential model, particles (q, q̄), r (array) central_GeV, spin_coefficient_GeV: V(r) = central + s₁·s₂ coefficient (colour singlet)
spectrum model, particles (q, q̄), L_max (2), levels (3), basis states: state, n, L, S, J, P, C, mass_GeV, rms_fm, weights; jm_degenerate is true for potentials without spin-orbit and tensor terms
system model, particles (2–5), S, isospin0 ([[i, j]]), basis, rmax_cluster, random, seed, mass_scale, csm_theta, levels (4) L = 0 correlated Gaussians: levels (mass_GeV, colour_weight, rms_fm), dim, kept, n_spatial, threshold_masses_GeV (sum of quark masses), colour_labels, rms_pairs, csm_E_GeV
selection results (directory of a sweep), pdg, rule (pm, apriori, apriori_half, apriori_double) the model-selection rule: floors_mev, physical_set, rows (every check of every model), winner, best_compromise, csv
fit options the end-to-end run of qs fit: status, log (text), record (the JSON run record)

basis is {"n", "r1", "rmax", "eta"}: the geometric Gaussian ranges of every coordinate.

fit.options mirrors the options of qs fit: model, running, spin, kinetic, systems, root, pdg, basis, c, mu_s, fit_mu_s, floor_GeV, fix (object), free, shared, multistart, fit_widths, loo, lmo, kfold, learning_curve, bootstrap, mcmc, threads, seed, optimize_basis, one_loop, mu_ref, lambda_qcd, gluon_mass, nf. root is the repository (for config/ and data/).

Selection

qs selection results --rule apriori --csv selection.csv applies the model-selection rule (src/analysis/selection.hpp) to the records of a sweep: results/main, results/nested and the fits at the declared mass error (results/floor2 for pm, else results/<rule>).

Run record

The JSON of a run (qs fit --out, task fit, every sweep) is run record 2 (config.record). It keeps every key of version 1 and adds:

where key meaning
fitted system sigma_th_GeV the mass error the fit used (as before)
fitted system floor_mode paule-mandel (iterated to χ²/ν = 1) or declared (held fixed, --floor)
fitted system sigma_pm_GeV the Paule–Mandel error of the model; at a declared error it is iterated from the fit’s minimum
fitted system converged 1 if the minimiser converged
state jpc J^PC, e.g. 1--; J^P for B_c

Report

qs report <results> writes the tables of a sweep to --out (docs/report): data/*.csv, tables.md, apriori.md (when the a-priori sweeps were run), states.md and data/states.csv (every state of every model: J^PC, datum, model, the declared error σ_th and σ_PM, the pull at each, convergence flag) and, when built with CERN ROOT, figures/ and <results>/qgem_sweep.root. Records of version 1 are read too. qs multiquark and qs al1 run the baryons and tetraquarks and write their tables.

Example

{"task": "system", "model": {"family": "AL1"}, "particles": ["b", "b", "u~", "d~"],
 "S": 1, "isospin0": [[2, 3]], "basis": {"n": 6, "r1": 0.1, "rmax": 12}, "levels": 2}

Languages

  file test
C++ link qgem, api/engine.hpp (bindings/cpp/example.cpp) ctest binding_cpp
C src/capi/qs.h, libqs.so tests/test_api.cpp
Python bindings/python/qs.py (ctypes, standard library only) ctest binding_python
Julia bindings/julia/QuarkStructures.jl (ccall, no packages) ctest binding_julia (when Julia is installed)
Wolfram bindings/wolfram/QuarkStructures.wl (ForeignFunctionLoad, 13.3+) wolframscript -file bindings/wolfram/test.wls

Set QS_LIBRARY to use a libqs.so outside build/release.