This tutorial fits the simplest model, a Cornell potential with a constant coupling (model A), to charmonium, and reads the output line by line. It takes under a second.
./build/release/qs fit --pdg tests/data/pdg-subset.sqlite --systems ccbar --out fit.json
# qs fit: model A, alpha_s constant, additive constant c fixed to 0
# basis: n = 37 Gaussians, ranges 0.05 ... 15 GeV^-1 (geometric, ratio 1.172)
The wave functions are expanded in 37 Gaussians per partial wave whose widths run geometrically from 0.05 to 15 GeV⁻¹ (0.01 to 3 fm). The Gaussian expansion explains why this works so well.
8 fitted states, 4 free parameters, nu = 4
theory floor sigma_th = 8.344 MeV (chi2/nu = 1 by construction)
experimental errors only (sigma_th = 0): chi2 = 699467.1 for nu = 4
The PDG knows the (J/\psi) mass to a few keV. No potential model is that accurate, so a fit with experimental errors alone has a meaningless (\chi^2) of (7\times10^5) and is dominated by the best-measured state. The fit therefore adds one common model error (\sigma_{\rm th}) to every state and solves for the value that makes (\chi^2 = \nu). Here the model is good to about 8 MeV. See the theory floor.
free parameters:
m1 1.46701 +- 0.02089
alpha_s 0.53395 +- 0.02425
b 0.14855 +- 0.00715
sigma 1.13013 +- 0.10719
fixed parameters: c=0 mu_s=0.1
m1 is the charm quark mass (GeV), alpha_s the coupling, b the string tension (GeV²) and sigma the width
(GeV) of the Gaussian that smears the contact spin-spin term. The correlation matrix printed below shows that m1
and b are almost anti-correlated (−0.97): a heavier quark needs a weaker string to give the same masses. The
condition number of the Fisher matrix, (8\times10^3), says how elongated the error ellipsoid is.
state channel PDG (GeV) model (GeV) M-PDG(MeV) par(MeV) num(MeV) pull lever. role
eta_c(1S) 1S0 2.98409 2.98199 -2.1 7.9 0.000 0.78 0.89 fit
J/psi(1S) 3S1 3.09690 3.09237 -4.5 6.8 0.000 0.94 0.67 fit
chi_c0(1P) 3P0 3.41550 3.42933 13.8 4.0 0.000 -1.89 0.23 fit
psi(3770) 3D1 3.77368 3.79513 21.5 6.5 0.000 -2.03 - prediction
| column | meaning |
|---|---|
par |
parametric error of the model mass, from the parameter covariance |
num |
change of the mass when the basis is doubled: the numerical error |
pull |
(PDG − model) over the combined error; for a fitted state the leave-one-out pull, as if it had not been fitted |
lever. |
leverage (h_i), between 0 and 1: how strongly the state pins its own prediction. The (\eta_c) (0.89) nearly determines one parameter alone |
role |
fit states lie below the open-charm threshold; the rest are predictions |
The numerical error is zero to the printed digit: the basis is converged.
<v^2> is (\langle p^2\rangle/m_Q^2). A non-relativistic model is trustworthy only when it is small; in
charmonium it is 0.25–0.42, which is why the neglected (p^4) term is tens of MeV.state process LO NLO +-par +-th band [M/4, M] PDG pull
J/psi(1S) e+ e- 11.5165 4.9512 0.4933 3.3265 [ 0.5193, 6.6613] 5.5276 +- 0.0986 0.17
psi(3770) e+ e- 0.0587 0.0284 0.0018 0.0141 [ 0.0125, 0.0357] 0.2616 +- 0.0178 10.25
The widths never entered the fit, so they are a test. The one-loop QCD correction is large (11.5 keV becomes 4.95),
so the theory error is large. The (\psi(3770)) is far off because with first-order spin terms it is a pure D wave;
a model with S–D mixing in the Hamiltonian (--spin smeared) addresses that. See decays.
Q="./build/release/qs fit --pdg tests/data/pdg-subset.sqlite"
$Q # c c-bar, b b-bar and the B_c prediction
$Q --model B # screened confinement
$Q --running apt --spin smeared --multistart 6 # running coupling, all spin terms in H
$Q --shared b # one string tension for c and b
$Q --systems ccbar --loo --lmo # cross-validation
$Q --systems ccbar --bootstrap 200 --mcmc 4000 --threads 4
!!! warning “One start is not enough”
Without `--multistart 6` the running-coupling fit of charmonium stops in a poor local minimum: the smearing width
runs into its largest allowed value and \(\sigma_{\rm th}\) comes out as 186 MeV. Six extra starts find the minimum
at 7.3 MeV. A fit with a parameter on its bound, or with errors hundreds of times the value, should always be
restarted from elsewhere.
Sharing the string tension (--shared b) is a physics question put to the data: the joint fit needs
(\sigma_{\rm th} = 24.2) MeV in charmonium against 8.3 MeV when the two systems are fitted separately.
With both systems the (B_c) is predicted by interpolating the parameters in the reduced mass: 6.2354 GeV against the PDG 6.2745 GeV for model A.
--out fit.json stores everything printed, and more: parameters with covariance, every state with its wave-function
coefficients, widths, and the settings needed to repeat the run. Its layout is described in
files and formats.