pyphi.actual.transitions#

pyphi.actual.transitions(substrate, before_state, after_state)[source]#

Return a generator over all realizable transitions of a substrate.

Candidate cause sets are subsets of the units with outputs; candidate effect sets are subsets of the units with inputs. The observed state pair is validated eagerly: calling this function on an impossible pair raises immediately, before any iteration.

Raises:

TransitionUnreachableError – If p(after_state | before_state) = 0 under the substrate dynamics (Albantakis et al. 2019, Realization).