tqec.plaquette.plaquette.RepeatedPlaquettes

class RepeatedPlaquettes(collection: dict[int, Plaquette] | defaultdict[int, Plaquette], repetitions: LinearFunction)[source]

Represent plaquettes that should be repeated for several rounds.

__init__(collection: dict[int, Plaquette] | defaultdict[int, Plaquette], repetitions: LinearFunction) None

Methods

__init__(collection, repetitions)

num_rounds(k)

repeat(repetitions)

with_updated_plaquettes(plaquettes_to_update)

Attributes

has_default

repetitions

collection