Skip to content
/ pythib Public

Python binding for TwoHadronsInBox library.

Notifications You must be signed in to change notification settings

ebatz/pythib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python binding for TwoHadronsInBox

Introduction

This package contains Python3 bindings for the TwoHadronsInBox library used for the calculation of scattering amplitudes from Lattice QCD spectra.

Setup

Prerequisites

The following libraries need to be accessible:

  • TwoHadronsInBox built as a shared library using make lib

    Note: Currently the particular branch of TwoHadronsInBox linked above has to be used until those changes have been merged back into the master branch. The branch in question facilitates K matrix parametrizations that need access to both the center-of-mass energy and scattering momentum. This functionality is not currently part of the master branch.

  • Pybind11

Installation

Only manual installation is available at this point. Adjust the paths to pybind11 as well as TwoHadronsInBox as necessary in build.sh. The build script then produces a Python module that can be imported and used by any Python3 code.

Note: The TwoHadronsInBox library is linked dynamically when the Python module is imported. Therefore you need to make sure that libBox.so created by TwoHadronsInBox is accessible to the linker either by putting it into one of the standard search paths, or by adding the path to the shared library to LD_LIBRARY_PATH.

About

Python binding for TwoHadronsInBox library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published