Skip to content

qmlcode/qmllib

Repository files navigation

What is qmllib?

qmllib is a Python/Fortran toolkit for representation of molecules and solids for machine learning of properties of molecules and solids. The library is not a high-level framework where you can do model.train(), but supplies the building blocks to carry out efficient and accurate machine learning. As such, the goal is to provide usable and efficient implementations of concepts such as representations and kernels.

QML or qmllib?

qmllib represents the core library functionality derived from the original QML package, providing a powerful toolkit for quantum machine learning applications, but without the high-level abstraction, for example SKLearn.

This package is and should stay free-function design oriented.

If you are moving from qml to qmllib, note that there are breaking changes to the interface to make it more consistent with both argument orders and function naming.

How to install

You need a fortran compiler, OpenMP and a math library. Default is gfortran and openblas.

sudo apt install gcc libomp-dev libopenblas-dev

If you are on mac, you can install gcc, OpenML and BLAS/Lapack via brew

brew install gcc libomp openblas lapack

You can then install via PyPi

pip install qmllib

or directly from github

pip install git+https://github.com/qmlcode/qmllib

or if you want a specific feature branch

pip install git+https://github.com/qmlcode/qmllib@feature_branch

How to contribute

Know a issue and want to get started developing? Fork it, clone it, make it , test it.

git clone your_repo qmllib.git
cd qmllib.git
make # setup env
make compile # compile

You know have a conda environment in ./env and are ready to run

make test

happy developing

How to use

Notebook examples are coming. For now, see test files in tests/*.

How to cite

Please cite the representation that you are using accordingly.

What is left to do?

  • Compile based on FCC env variable
  • if ifort find the right flags
  • Find MKL from env (for example conda)
  • Find what numpy has been linked too (lapack or mkl)
  • Notebook examples

About

Quantum machine learning (QML) molecular representations and core functions

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •