tqecd.flow.FragmentLoopFlows#

class FragmentLoopFlows(fragment_flows: list[FragmentFlows | FragmentLoopFlows], repeat: int)[source]#

Store stabilizer flows for a FragmentLoop instance.

This class is currently quite dumb and does not provide a sufficient API for generic stabilizer matching, but is enough for detectors that only include measurements from the current round and from the previous round.

__init__(fragment_flows: list[FragmentFlows | FragmentLoopFlows], repeat: int) None#

Methods

__init__(fragment_flows, repeat)

remove_creation(index)

remove_creations(indices)

remove_destruction(index)

remove_destructions(indices)

try_merge_anticommuting_flows()

without_trivial_flows()

Attributes

all_flows

creation

destruction

total_number_of_measurements

fragment_flows

repeat