StageInfo

class StageInfo(name: str, axis: str | None, factor: float, metadata: dict[str, Any])[source]

Bases: NamedTuple

Per-stage dry-run report.

factor is the ratio of logical circuits after this stage to circuits before it. factor > 1 is a fan-out (e.g. ParameterBindingStage, PauliTwirlStage); factor < 1 is a reduction (e.g. observable grouping in MeasurementStage collapsing N Pauli terms into M ≤ N commuting groups yields factor = M / N).

Create new instance of StageInfo(name, axis, factor, metadata)

Attributes Summary

axis

Alias for field number 1

factor

Alias for field number 2

metadata

Alias for field number 3

name

Alias for field number 0

Attributes Documentation

axis: str | None

Alias for field number 1

factor: float

Alias for field number 2

metadata: dict[str, Any]

Alias for field number 3

name: str

Alias for field number 0