1"""High-level Python access to QCD running quantities from the C++ core.
3The :class:`QCDProvider` wrapper delegates to the C++ ``QCDProvider`` and
4exposes the few operations needed by Python workflows: running coupling,
5running quark masses, and backend QCD constants.
8from pyhyperiso.phyperiso.pyhyperiso.core
import QCDProvider
as _CppQCDProvider
14 """Compute QCD quantities through the bound C++ provider.
16 The provider expects the global Hyperiso state to have been initialized
17 before use, typically through ``HyperisoMaster.init(...)``. The exact
18 numerical scheme and thresholds are managed by the C++ backend.
21 >>> qcd = QCDProvider()
22 >>> alpha_s = qcd.get_alphas(AlphasConfig(42.0))
23 >>> mt_run = qcd.get_qcd_masses(MassConfig(5.0, pdg_id=6))
24 >>> constants = qcd.get_qcd_constants()
28 """Create a Python wrapper around the C++ ``QCDProvider``."""
32 """Compute the strong coupling for the requested configuration.
35 alpha_config: Python configuration object describing the scale and
36 any backend-specific options required by the C++ provider.
39 float: The value returned by ``QCDProvider::compute_alphas``.
41 return self.
_cpp_obj.compute_alphas(alpha_config.to_cpp())
44 """Compute a running QCD mass for the requested configuration.
47 mass_config: Python configuration object containing the scale, PDG
48 identifier, and mass convention expected by the C++ backend.
51 float: The value returned by ``QCDProvider::compute_mass``.
53 return self.
_cpp_obj.compute_mass(mass_config.to_cpp())
56 """Return QCD constants used internally by the backend.
59 QCDConstants: Read-only Python wrapper around the C++ constants
62 cpp_constants = self.
_cpp_obj.get_constants()
66__all__ = [
"QCDProvider"]
get_qcd_masses(self, MassConfig mass_config)
get_alphas(self, AlphasConfig alpha_config)
QCDConstants get_qcd_constants(self)