# PyPhi ```{raw} html
The toolbox for Integrated Information Theory
``` PyPhi 2.0 is out as a release candidate. Until the final release, give the version when installing; a bare `pip install pyphi` installs 1.2 instead. ```bash pip install "pyphi>=2.0.0rc1" ``` ```python import pyphi # The IIT 4.0 paper's Fig. 1A network, analyzing units A and B substrate = pyphi.examples.iit4_2023_fig1a_substrate() analysis = pyphi.analyze(substrate, state=(0, 1, 1), subset=(0, 1)) analysis.phi # φₛ ≈ 0.04, system integrated information analysis.big_phi # Φ ≈ 1.56, structure integrated information ``` ::::{grid} 1 2 3 3 :gutter: 3 :::{grid-item-card} {octicon}`rocket` Getting started :link: getting-started/index :link-type: doc Install PyPhi and compute your first φ. ::: :::{grid-item-card} {octicon}`book` Tutorials :link: tutorials/index :link-type: doc Learn the library through worked, executable examples. ::: :::{grid-item-card} {octicon}`tools` How-to guides :link: howto/index :link-type: doc Build a substrate, read a result, size a run, configure, parallelize, export. ::: :::{grid-item-card} {octicon}`beaker` Theory :link: theory/index :link-type: doc How IIT's mathematics maps onto PyPhi's types and functions. ::: :::{grid-item-card} {octicon}`list-unordered` Reference :link: reference/index :link-type: doc The API reference, the glossary, configuration options, and conventions. ::: :::{grid-item-card} {octicon}`arrow-switch` Migration :link: migration/index :link-type: doc Moving to PyPhi 2.0 from earlier versions and related tools. ::: :::: ::::{grid} 1 1 2 2 :gutter: 3 :::{grid-item-card} {octicon}`book` Learn IIT with an AI assistant :link: howto/ai-assistants :link-type: doc IIT Expert answers questions about the theory from its primary literature, with citations. A work in progress. ::: :::{grid-item-card} {octicon}`dependabot` Compute with an AI assistant :link: howto/mcp-server :link-type: doc PyPhi's MCP server lets an assistant build substrates, size runs, and analyze them. This site is also readable by AI agents. ::: :::: --- If you use this software in your research, please cite the software paper: > Mayner WGP, Marshall W, Albantakis L, Findlay G, Marchman R, Tononi G. (2018). > PyPhi: A toolbox for integrated information theory. > *PLOS Computational Biology* 14(7): e1006343. >