qecx.VariantGroup¶
- class qecx.VariantGroup(variants, default)¶
Bases:
Mapping[str,V],GenericFrozen read view of one variant group.
A group holds the named variants registered for one grouping key (target state, measurement basis, gate or observable with operand shape, or the single syndrome-measurement group) plus the group’s default. The view is a mapping from variant name to variant:
group["ft"]looks up a variant, iteration yields names in insertion order,lencounts variants.- Variables:
variants (Mapping[str, V]) – Variants keyed by name, in registration (insertion) order; frozen into a read-only
MappingProxyTypeview at construction.default (V) – The variant selected when no explicit choice is made.