Installing the library¶
Using pip
¶
PySmeQcd is available on PyPI. To install it, run
$ pip install PySmeQcd
From source¶
To use PySmeQcd from the source code:
Download the source code from GitHub.
$ wget https://github.com/GComitini/PySmeQcd/releases/download/v1.1.0-alpha/PySmeQcd-1.1.0a0.tar.gz
Unpack the archive and
cd
into thePySmeQcd-1.1.0a0/src
directory.
$ tar -xzvf PySmeQcd-1.1.0a0.tar.gz $ cd PySmeQcd-1.1.0a0/src
Copy the
PySmeQcd
directory to the main directory of your project.
$ cp PySmeQcd <MY_PROJECT>
Note
PySmeQcd depends on the following Python packages:
matplotlib
numpy
scipy
When using PySmeQcd from source, make sure that you have these dependencies installed.
Using the library¶
To use the PySmeQcd library:
import
thePySmeQcd
package into an interactive Python session or into a Python script:
>>> import PySmeQcd
The functions and routines contained in the
PySmeQcd
package can be accessed by using the point notation:
>>> PySmeQcd.<module_name>.<function_name>()
Alternatively, you can import the submodules you need using
from .. import ..
. For example,
>>> from PySmeQcd import gluonwill make the functions and routines contained in the
PySmeQcd.gluon
submodule accessible by using the dot notation ongluon
:>>> gluon.<function_name>()
See the examples for practical use-cases or the API Reference for an in-depth description of the available functions.