Flopscope primitives
Budgets, symmetry helpers, public objects, and configuration primitives exposed from the top-level flopscope package.
Budgets & configuration
Control runtime budgets, namespace accounting, and process-wide configuration.
flopscope.BudgetContext
Context manager for FLOP budget enforcement.
flopscope.budget
Create a ``BudgetContext`` usable as a context manager or decorator.
flopscope.budget_live
Return a live-updating budget summary context manager.
flopscope.budget_reset
Clear accumulated session-wide budget data.
flopscope.budget_summary
Render the session-wide budget summary.
flopscope.budget_summary_dict
Return aggregated budget data across all recorded contexts.
flopscope.configure
Update flopscope global settings.
flopscope.namespace
Create a nested namespace scope for the active budget context.
Symmetry & permutations
Represent and preserve symmetry structure explicitly across counted workflows.
flopscope.as_symmetric
Wrap *data* as a :class:`SymmetricTensor` after validating symmetry.
flopscope.is_symmetric
Check whether *data* is invariant under the given symmetry.
flopscope.symmetrize
Project an array onto the invariant subspace of a permutation group.
Objects & types
Public result objects and tensor wrappers exposed by Flopscope itself.
flopscope.FlopscopeArray
A numpy ndarray subclass with FLOP-tracked operators.
flopscope.PathInfo
Information about a contraction path with per-step symmetry diagnostics.
flopscope.StepInfo
Per-step diagnostics for a contraction path.
flopscope.SymmetricTensor
An ndarray that carries symmetry metadata.