tqecd.flow.FragmentFlows#
- class FragmentFlows(creation: list[BoundaryStabilizer], destruction: list[BoundaryStabilizer], total_number_of_measurements: int)[source]#
Stores stabilizer flows for a
Fragment
instance.- creation#
stabilizer flows that are created by the
Fragment
. These flows originate from a single reset instruction contained in theFragment
instance.- Type:
- destruction#
stabilizer flows that end in the
Fragment
. These flows are generated by propagating backwards the Pauli string stabilized by a measurement operation contained in theFragment
.- Type:
- total_number_of_measurements#
the total number of measurements contained in the represented
Fragment
. Might be used to offset measurement offsets by this amount when the measurement is located on aFragment
instance before the one represented by self.- Type:
int
- __init__(creation: list[BoundaryStabilizer], destruction: list[BoundaryStabilizer], total_number_of_measurements: int) None #
Methods
__init__
(creation, destruction, ...)remove_creation
(index)remove_creations
(indices)remove_destruction
(index)remove_destructions
(indices)try_merge_anticommuting_flows
()without_trivial_flows
()Attributes
all_flows