PyCCE: A Python Package for CCE Simulations


PyCCE is an open source Python library to simulate the dynamics of a spin qubit interacting with a spin bath using the cluster-correlation expansion (CCE) method.


The recommended way to install PyCCE is to use pip:

$ pip install pycce

Otherwise you can install PyCCE directly using the source code. First copy the repository to the desired folder:

$ git clone

Then, execute pip in the folder containing

$ pip install .

or run the python install command:

$ python install


The following modules are required to run PyCCE.

PyCCE inherently supports parallelization with the mpi4py package, which requires the installation of MPI. However, for serial implementation the mpi4py is not required.

How to cite

If you make use of PyCCE in a scientific publication, please cite the following paper:

Mykyta Onizhuk and Giulia Galli. “PyCCE: A Python Package for Cluster Correlation Expansion Simulations of Spin Qubit Dynamic” Adv. Theory Simul. 2021, 2100254