pygsti.models.layerrules
Defines the LayerLizard class and supporting functionality.
Module Contents
Classes
Rules for composing a layer operation from the elements stored within a model. |
- class pygsti.models.layerrules.LayerRules
Bases:
pygsti.baseobjs.nicelyserializable.NicelySerializable
Rules for composing a layer operation from the elements stored within a model.
A
LayerRules
object serves as an intermediary between aImplicitModel
object and aForwardSimulator
. It contains the logic for creating layer operations based on the partial/fundamental operation “blocks” stored within the model. Since different models hold different operation blocks, layer rules are usually tailored to a specific models.- prep_layer_operator(model, layerlbl, cache)
Create the operator corresponding to layerlbl.
Parameters
- layerlblLabel
A circuit layer label.
Returns
State