StageInfo¶
- class StageInfo(name: str, axis: str | None, factor: float, metadata: dict[str, Any])[source]¶
Bases:
NamedTuplePer-stage dry-run report.
Create new instance of StageInfo(name, axis, factor, metadata)
Attributes Summary
The result-key axis this stage fans out over (the stage's
axis_name, e.g."param_set","twirl","obs_group"), orNonefor stages that add no axis.Ratio of logical circuits after this stage to circuits before it.
Stage-specific introspection rendered by
format_dry_run()— e.g.strategy/n_groupsforMeasurementStage,n_twirlsforPauliTwirlStage.Stage identifier —
type(stage).__name__(e.g."CircuitSpecStage","MeasurementStage").Attributes Documentation
- axis: str | None¶
The result-key axis this stage fans out over (the stage’s
axis_name, e.g."param_set","twirl","obs_group"), orNonefor stages that add no axis.
- factor: float¶
Ratio of logical circuits after this stage to circuits before it.
factor > 1is a fan-out (e.g.ParameterBindingStage,PauliTwirlStage);factor < 1is a reduction (e.g. observable grouping inMeasurementStagecollapsing N Pauli terms into M ≤ N commuting groups yieldsfactor = M / N).
- metadata: dict[str, Any]¶
Stage-specific introspection rendered by
format_dry_run()— e.g.strategy/n_groupsforMeasurementStage,n_twirlsforPauliTwirlStage.