:py:mod:`pygsti.models.layerrules` ================================== .. py:module:: pygsti.models.layerrules .. autoapi-nested-parse:: Defines the LayerLizard class and supporting functionality. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: pygsti.models.layerrules.LayerRules .. py:class:: LayerRules Bases: :py:obj:`pygsti.baseobjs.nicelyserializable.NicelySerializable` Rules for composing a layer operation from the elements stored within a model. A :class:`LayerRules` object serves as an intermediary between a :class:`ImplicitModel` object and a :class:`ForwardSimulator`. 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. .. py:method:: prep_layer_operator(model, layerlbl, cache) Create the operator corresponding to `layerlbl`. Parameters ---------- layerlbl : Label A circuit layer label. Returns ------- State .. py:method:: povm_layer_operator(model, layerlbl, cache) Create the operator corresponding to `layerlbl`. Parameters ---------- layerlbl : Label A circuit layer label. Returns ------- POVM or POVMEffect .. py:method:: operation_layer_operator(model, layerlbl, cache) Create the operator corresponding to `layerlbl`. Parameters ---------- layerlbl : Label A circuit layer label. Returns ------- LinearOperator