pyphi.macro.estimate#

Analytic pre-flight for the bounded intrinsic-unit search.

Counts the candidate systems a pyphi.macro.complexes() sweep would evaluate, without constructing macro TPMs or computing φₛ. The counting walk mirrors the search’s own control flow and drives the search’s own enumeration functions with lightweight stand-in units, so the counts reflect the implementation exactly.

Because the search prunes adaptively — only decompositions that pass the intrinsic-unit criteria spawn mapped variants — counts beyond the first macroing level assume every candidate passes: an exact worst case. At max_depth=0 no judgment happens and the enumeration is exact. Even then, a candidate whose state is unreachable under its own TPM is discarded at run time, which the enumeration cannot predict, so counts bound the candidates enumerated, and ComplexesResult.records can be smaller.

Functions

estimate_search(substrate, *[, bounds, limit])

Count the candidate systems a grain search over substrate would evaluate under bounds, without running it.

Classes

SearchEstimate(n, bounds, ...)

The size and shape of a grain search, before running it.