PyPhi is a Python library for computing integrated information.

To report issues, please use the issue tracker on the GitHub repository. Bug reports and pull requests are welcome.

Getting started

The Network object is the main object on which computations are performed. It represents the network of interest.

The Subsystem object is the secondary object; it represents a subsystem of a network. \(\Phi\) is defined on subsystems.

The compute module is the main entry-point for the library. It contains methods for calculating concepts, constellations, complexes, etc.

The best way to familiarize yourself with the software is to go through the examples. All the examples dicussed are available in the examples module, so you can follow along in a REPL. The relevant functions are listed at the beginning of each example.


PyPhi can be configured in various important ways; see the config module for details.


PyPhi uses some conventions for TPM and connectivity matrix formats. These are important to keep in mind when setting up networks.