CircuitSpecStage¶
- class CircuitSpecStage[source]¶
Bases:
SpecStage[MetaCircuit|Sequence[MetaCircuit] |Mapping[str,MetaCircuit]]SpecStage that wraps one or more pre-built MetaCircuits into a batch.
Accepts three input shapes:
A single
MetaCircuit→{(("circuit", 0),): meta}A
Sequence[MetaCircuit]→ indexed by positionA
Mapping[str, MetaCircuit]→ indexed by key name
Use this when the MetaCircuit(s) are already constructed and don’t need Hamiltonian decomposition.
Attributes Summary
Axis name introduced by this stage.
Methods Summary
expand(batch, env)Wrap input MetaCircuit(s) into a keyed batch.
introspect(batch, env, token)Return stage-specific metadata for dry-run reporting.
reduce(results, env, token)Strip the
'circuit'axis from result keys.Attributes Documentation
- axis_name¶
Methods Documentation