pyphi.macro.estimate.estimate_search#
- pyphi.macro.estimate.estimate_search(substrate, *, bounds=None, limit=1000000)[source]#
Count the candidate systems a grain search over
substratewould evaluate underbounds, without running it.The same estimate as
SearchBounds.estimate. Only the substrate’s size is read: no TPM is constructed and no φₛ is computed.- Parameters:
substrate (Substrate) – The micro substrate the search would run over.
bounds (SearchBounds, optional) – The search bounds.
Noneuses the defaultSearchBounds(), aspyphi.macro.complexes()does.limit (int, optional) – The count at which the walk stops and the estimate is reported as truncated.
- Returns:
SearchEstimate – The counts of candidate systems and partitions.
- Return type:
Notes
limitbounds the reported counts and stops the walk at enumeration-phase granularity (truncated=True): one_assemble_systemscall completes before the limit is checked, so wall time is not strictly bounded bylimit.mappings="EXHAUSTIVE"aboveexhaustive_capraises aValueError. The search itself raises only when such a decomposition passes judgment; the estimate assumes every decomposition passes, so it raises unconditionally.