pyphi.examples.basic_substrate#

pyphi.examples.basic_substrate(cm=False)[source]#

A 3-node substrate of logic gates.

Diagram:

        +~~~~~~~~+
  +~~~~>|   A    |<~~~~+
  |     |  (OR)  +~~~+ |
  |     +~~~~~~~~+   | |
  |                  | |
  |                  v |
+~+~~~~~~+       +~~~~~+~+
|   B    |<~~~~~~+   C   |
| (COPY) +~~~~~~>| (XOR) |
+~~~~~~~~+       +~~~~~~~+

A is the OR of B and C, B copies C, and C is the XOR of A and B.

Parameters:

cm (ndarray | bool)